Warning: file_put_contents(/www/wwwroot/nmbt.106988770/cache/modrinth_versions_tVUawz1v.json): Failed to open stream: Permission denied in /www/wwwroot/nmbt.106988770/resource_detail.php on line 53
Get Block - 墨喵 Minecraft 资源
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"
  }
}
下载与版本
评论(0)
请 登录 后发表评论。

暂无评论,抢个沙发吧~

举报此资源

请登录后举报

赞助作者

请 登录 后赞助作者。

🔥 相关推荐
Strong Grass Sounds

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

查看详情
Create: Logic

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

查看详情
Cobblemon Create Compat

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

查看详情
Villager music disc

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

查看详情