/data

作弊 / OP 2Java版 26.3

读取和编辑方块、实体及命令存储的 NBT 数据。基本格式为 /data get block <target>;共有40 种语法格式和12 个参数。权限:作弊 / OP 2。

使用权限
作弊 / OP 2
语法格式
40
参数
12

/data 语法

游戏数据

游戏接受的所有格式。<尖括号> 中的词是需要你填写的参数,其余部分按原样输入。

/data get block <target>
/data get block <target> <path>
/data get block <target> <path> <scale>
/data get entity <target>
/data get entity <target> <path>
/data get entity <target> <path> <scale>
/data get storage <target>
/data get storage <target> <path>
/data get storage <target> <path> <scale>
/data merge block <target> <nbt>
/data merge entity <target> <nbt>
/data merge storage <target> <nbt>
/data modify block <target> <targetPath> append from block <source>
/data modify block <target> <targetPath> append from entity <source>
/data modify block <target> <targetPath> append from storage <source>
/data modify block <target> <targetPath> append string block <source>
/data modify block <target> <targetPath> append string entity <source>
/data modify block <target> <targetPath> append string storage <source>
/data modify block <target> <targetPath> append value <value>
/data modify block <target> <targetPath> insert <index> value <value>
/data modify block <target> <targetPath> merge from block <source>
/data modify block <target> <targetPath> merge from entity <source>
/data modify block <target> <targetPath> merge from storage <source>
/data modify block <target> <targetPath> merge string block <source>
/data modify block <target> <targetPath> merge string entity <source>
/data modify block <target> <targetPath> merge string storage <source>
/data modify block <target> <targetPath> merge value <value>
/data modify block <target> <targetPath> prepend from block <source>
/data modify block <target> <targetPath> prepend from entity <source>
/data modify block <target> <targetPath> prepend from storage <source>
/data modify block <target> <targetPath> prepend string block <source>
/data modify block <target> <targetPath> prepend string entity <source>
/data modify block <target> <targetPath> prepend string storage <source>
/data modify block <target> <targetPath> prepend value <value>
/data modify block <target> <targetPath> set from block <source>
/data modify block <target> <targetPath> set from entity <source>
/data modify block <target> <targetPath> set from storage <source>
/data modify block <target> <targetPath> set string block <source>
/data modify block <target> <targetPath> set string entity <source>
/data modify block <target> <targetPath> set string storage <source>

/data 示例

可直接粘贴的示例(需开启作弊)。@s 是你自己,@p 是最近的玩家,@a 是所有玩家,@e 是所有实体。

/data get entity @s SelectedItem
显示你手中物品的全部数据。
/data merge entity @e[type=minecraft:zombie,limit=1,sort=nearest] {NoAI:1b}
关闭最近僵尸的 AI,让它定在原地。

/data 参数

每个参数需要填写什么,以及游戏强制的限制。

/data 参数
参数类型限制
<target>方块坐标(x y z,~ 为相对坐标,^ 为局部坐标)—
<path>NBT 路径—
<scale>数字—
<nbt>NBT 复合标签 {…}—
<targetPath>NBT 路径—
<computePos>方块坐标(x y z,~ 为相对坐标,^ 为局部坐标)—
<provider>数字提供器ID—
<computeTarget>目标选择器或玩家名(@s、@p、@a、@e、@r)单个目标
<source>方块坐标(x y z,~ 为相对坐标,^ 为局部坐标)—
<sourcePath>NBT 路径—
<value>NBT 值—
<index>整数—

其他命令

数据来源:我的世界 Java版 26.3 游戏文件。 数据来源说明

读取和编辑方块、实体及命令存储的 NBT 数据。 它有40 种语法格式,可由以下人员执行:作弊 / OP 2。

另请参阅

🔍

帮助我们保持准确性! 如果您发现不正确的统计数据、缺失的数据或任何问题,您的反馈将直接帮助我们提高整个社区的数据质量。

报告问题

/data 常见问题(Java版 26.3)

我的世界中 /data 有什么作用?

读取和编辑方块、实体及命令存储的 NBT 数据。

/data 的语法是什么?

基本格式为 /data get block <target>。所有格式见上方列表。

/data 有什么使用示例?

/data get entity @s SelectedItem — 显示你手中物品的全部数据。

使用 /data 需要开启作弊吗?

需要:作弊 / OP 2。在单人游戏中打开“允许作弊”(或以允许作弊的方式对局域网开放)。