|
|
Expanded Data (扩展数据)Github |相关wiki |源站链接支持: fabricExpanded Data对象和NBT访问器用于Minecraft的`data`命令。
Expanded Data是针对Minecraft 1.20.1版本构建的,但在其他版本之间进行翻译非常直接,只需要进行微小的调整。
这是一个服务器端模组,并且设计时充分考虑了与数据包使用的完全兼容性。
使用方法:
获取用于其他数据命令的方块
hs
data get block -188 68 985

js
{block_state: {Properties: {east: \"true\", waterlogged: \"false\", south: \"true\", north: \"false\", west: \"false\"}, Name: \"minecraft:white_stained_glass_pane\"}, x: -188, y: 68, z: 985}
`block_state`属性设计为与Minecraft 1.19.4中引入的`block_display`实体具有1对1的兼容性。这允许将块数据复制到/从真实块和`block_displays`中。
您还可以设置/修改在`block_state`中找到的任何数据,限于通常可用的状态
hs
data modify block -188 68 985 block_state.Name set value \"minecraft:dirt\"
获取CursorItem和CraftingItems
hs
data get @s CursorItem

js
{id: \"minecraft:acacia_planks\", Count: 2b}
hs
data get @s CraftingItems

js
[{Slot: 0b, id: \"minecraft:sand\", Count: 1b}, {Slot: 1b, id: \"minecraft:acacia_planks\", Count: 4b}, {Slot: 2b, id: \"minecraft:dirt\", Count: 1b}, {Slot: 3b, id: \"minecraft:air\", Count: 0b}]
由于这些是与玩家相关联的数据值,您无法修改它们。所提到的所有内容在谓词中也可以正常工作,就像您期望的那样。
截图:
来自Modrinth所有游戏版本1.20.51.20.61.211.21.11.21.21.21.31.20.41.201.20.11.20.2所有类型fabricExpanded Data 1.0.6expandeddata-1.0.6.jar下载1.0.6#ReleaseUpdated to 1.21.3展开版本: 1.0.6支持游戏: 1.20.5, 1.20.6, 1.21, 1.21.1, 1.21.2, 1.21.3类型:FabricRelease下载次数: 75Expanded Data v1.0.5expandeddata-1.0.5.jar下载1.0.5#ReleaseUpdated to 1.20.4展开版本: 1.0.5支持游戏: 1.20.4类型:FabricRelease下载次数: 85Expanded Data v1.0.4expandeddata-1.0.4.jar下载1.0.4#Release* Uploaded to Modrinth展开版本: 1.0.4支持游戏: 1.20, 1.20.1, 1.20.2类型:FabricRelease下载次数: 204全部版本
markdown_parsed
文章类型:收录
layui.use([\'form\'], function(){
var form = layui.form;
});
Expanded Data |
楼主
2025-8-10 17:38:15
回复(0)
收起回复
|