Zevn
1.如果某箱子第一格不是空的就say 1                     2.有很多堆as,每堆很多as重叠在一起互相之间没有区分度,如何让每堆只剩一个as




chyx
/execute if data block 15 1 11 Items[{Slot:0b}] run say 1

ruhuasiyu
1
  1. /execute if data block x y z Items[{Slot:0b}] run say 1
复制代码
  1. /execute if block x y z chest{Items:[{Slot:0b}]} run say 1
复制代码

2
  1. execute as @e[type=armor_stand,limit=1] at @s run function foo:bar
复制代码
foo:bar
  1. tag @s add marked
  2. kill @e[type=armor_stand,tag=!marked,distance=..0.00000001]
  3. execute as @e[type=armor_stand,tag=!marked,limit=1] at @s run function foo:bar
复制代码