Goance


1.怎么检测实体头部/胸部/腿部/脚部穿戴指定物品?
2.怎么让盔甲架面向玩家向后传送?【方向也可能是斜向】
3.怎么把盔甲架的^-1 ^ ^-1 ^1 ^2 ^1填充方块?



这样会有bug


renyunzhong
1.execute as @e[nbt={ArmorItems:[{id:"diamond_chestplate"}]}]
2.execute as @e[type=minecraft:armor_stand,sort=nearest,limit=1] at @s facing entity @p feet run tp ^ ^ ^-1
3.execute at @e[type=minecraft:armor_stand,limit=1,sort=nearest] run fill ^-1 ^ ^-1 ^1 ^2 ^1 glass keep
我测试能正常工作,不知道有什么bug

Goance
renyunzhong 发表于 2021-4-17 10:31
1.execute as @e[nbt={ArmorItems:[{id:"diamond_chestplate"}]}]
2.execute as @e[type=minecraft:armor_s ...

第一个我是想检测指定穿在头部或胸部或腿部或脚部或副手的物品啊【可能是方块】

renyunzhong
Goance 发表于 2021-4-17 23:12
第一个我是想检测指定穿在头部或胸部或腿部或脚部或副手的物品啊【可能是方块】 ...

/execute as @e[type=zombie,nbt={ArmorItems:[{tag:{a:0b}}]}] if data entity @s ArmorItems[2].tag.a run say 1
最多只能到这了,目标选择器+NBT路径

下一页 最后一页