输入
输出
转换规则说明
旧语法新语法
execute <目标> <坐标> <命令>execute as <目标> at @s positioned <坐标> run <命令>
... detect <坐标> <方块> <数据值>if block <坐标> <方块>[states]
坐标为 ~~~/~ ~ ~/^^^(无偏移)省略 positioned
坐标含 ~ 或 ^追加 at @s 提供参照系
数据值 -1(任意数据)新语法无通配,按省略 states 处理(只判方块名)
嵌套旧 execute递归展开为一条子命令链

数据值映射来自站点方块数据表(如 wool 5 → lime_wool、log 2 → birch_log["pillar_axis"="y"]); 映射失败时保留原方块名。旧语法中的 fill/setblock 数据值不做处理(不在 execute 转换范围内)。