此条目的(部分)内容需要翻译。
你可以帮助我们来翻译此条目,但请勿使用机器翻译。
新内容
- 一条允许玩家获得、合并和移除实体和方块的NBT数据命令。
/data get block <pos> [<path>] [<scale>]- Will return the NBT data from the block at
pos. Apathcan be specified to only retrieve that nbt data, but this is limited to numeric tags. An optionalscalecan be provided to scale the number retrieved.
- Will return the NBT data from the block at
/data get entity <target> [<path>] [<scale>]- Will return the NBT data from one
targetentity. Apathcan be specified to only retrieve that nbt data, but this is limited to numeric tags. An optionalscalecan be provided to scale the number retrieved.
- Will return the NBT data from one
/data merge block <pos> <nbt>- Will merge the block nbt data at
poswith the specifiednbtdata.
- Will merge the block nbt data at
/data merge entity <target> <nbt>- Will merge the entity nbt data from
targetwith the specifiednbtdata. Merging player nbt data is not allowed.
- Will merge the entity nbt data from
/data remove block <pos> <path>- Will remove nbt data at
pathfrom the block atpos.
- Will remove nbt data at
/data remove entity <target> <path>- Will remove nbt data at
pathfrom onetargetentity. Removing player nbt data is not allowed.
- Will remove nbt data at
更改
- 将
/entitydata和/blockdata命令合并成/data - 重做
/execute store - 使命令函数加载速度更快
- 如果
/execute if <..>使用自身时,会返回相应的值
修复
参考
- ↑ “Minecraft Snapshot 17w45a” – Minecraft.net,2017年11月8日
