check_floor.mcfunction 1.6 KB

12345678910
  1. # as player at @s positioned ~ ~-1 ~
  2. # 检测应该消失的方块
  3. execute if block ~ ~ ~ #mini:tntrun_floor align xyz run tag @e[tag=tntrun_edge,dx=0,dy=0,dz=0] remove tntrun_edge
  4. execute if block ~ ~ ~ #mini:tntrun_floor align xyz unless entity @e[tag=tntrun_block,dx=0,dy=0,dz=0] run summon minecraft:area_effect_cloud ~.5 ~ ~.5 {Tags:["tntrun_block"],Age: -2147483648, Duration: -1, WaitTime: -2147483648}
  5. execute positioned ~0.31 ~ ~0.31 if block ~ ~ ~ #mini:tntrun_floor align xyz unless entity @e[tag=tntrun_block,dx=0,dy=0,dz=0] run summon minecraft:area_effect_cloud ~0.5 ~ ~0.5 {Tags:["tntrun_block","tntrun_edge"],Age: -2147483648, Duration: -1, WaitTime: -2147483648}
  6. execute positioned ~-0.31 ~ ~-0.31 if block ~ ~ ~ #mini:tntrun_floor align xyz unless entity @e[tag=tntrun_block,dx=0,dy=0,dz=0] run summon minecraft:area_effect_cloud ~0.5 ~ ~0.5 {Tags:["tntrun_block","tntrun_edge"],Age: -2147483648, Duration: -1, WaitTime: -2147483648}
  7. execute positioned ~0.31 ~ ~-0.31 if block ~ ~ ~ #mini:tntrun_floor align xyz unless entity @e[tag=tntrun_block,dx=0,dy=0,dz=0] run summon minecraft:area_effect_cloud ~0.5 ~ ~0.5 {Tags:["tntrun_block","tntrun_edge"],Age: -2147483648, Duration: -1, WaitTime: -2147483648}
  8. execute positioned ~-0.31 ~ ~0.31 if block ~ ~ ~ #mini:tntrun_floor align xyz unless entity @e[tag=tntrun_block,dx=0,dy=0,dz=0] run summon minecraft:area_effect_cloud ~0.5 ~ ~0.5 {Tags:["tntrun_block","tntrun_edge"],Age: -2147483648, Duration: -1, WaitTime: -2147483648}
  9. execute if block ~ ~ ~ minecraft:air align xyz positioned ~0.5 ~ ~0.5 run tag @e[tag=tntrun_edge,distance=..1.51] remove tntrun_edge