1.如果某箱子第一格不是空的就say 1 2.有很多堆as,每堆很多as重叠在一起互相之间没有区分度,如何让每堆只剩一个as
/execute if data block 15 1 11 Items[{Slot:0b}] run say 1
1
复制代码或复制代码
2
复制代码foo:bar复制代码
- /execute if data block x y z Items[{Slot:0b}] run say 1
- /execute if block x y z chest{Items:[{Slot:0b}]} run say 1
2
- execute as @e[type=armor_stand,limit=1] at @s run function foo:bar
- tag @s add marked
- kill @e[type=armor_stand,tag=!marked,distance=..0.00000001]
- execute as @e[type=armor_stand,tag=!marked,limit=1] at @s run function foo:bar