Get Block 图标

Get Block

作者:rebot | 分类:模组

价格:0 墨喵币 下载量:0 点赞:0 版本 1.0.2+mc1.21.5
本资源为搬运资源,原资源地址: https://modrinth.com/mod/getblock
资源信息

Minecraft 版本: 1.21 1.21.1 1.21.2 1.21.3 1.21.4 1.21.5

平台: datapack

标签: library

资源介绍

Get Block

This library allows to get block placed at current execution context.

banner

Usage

All functions return result to storage getblock:.

getblock:block

Input: None
Output:

  • id: ID of the block
  • short_id: Un-namespaced ID of the block
  • state: State of the block
  • data: Data obtained by command data get block ~ ~ ~
  • x, y, z: Coordinates of the block
function getblock:block
data get storage getblock: output
{
  "id": "minecraft:dispenser",
  "short_id": "dispenser",
  "state": {
    "triggered": "false",
    "facing": "north"
  },
  "data": {
    "Items": [],
    "x": 0,
    "y": 56,
    "z": 0,
    "id": "minecraft:dispenser"
  },
  "x": 0,
  "y": 56,
  "z": 0
}

getblock:id

Get only id
Input: None
Output:

  • id: ID of the block
{
  "id": "minecraft:dispenser"
}

getblock:state

Get only state
Input: None
Output:

  • state: State of the block
{
  "state": {
    "triggered": "false",
    "facing": "north"
  }
}
下载太慢?试试 墨喵加速站,支持 Modrinth 和外网直链高速下载! 用的人越多,下载的越快!
下载与版本
评论(0)
登录 后发表评论。

暂无评论,抢个沙发吧~

举报此资源

请登录后举报

🔥 相关推荐
Nether Flask

价格:0 墨喵币
下载量:0

查看详情
Random drop mod

价格:0 墨喵币
下载量:0

查看详情
Fire Spread Tweaks

价格:0 墨喵币
下载量:0

查看详情
BTA Whitelist

价格:0 墨喵币
下载量:0

查看详情