tick5.mcfunction 427 B

12345678
  1. # 更新铁锭数量
  2. execute as @a[team=playing] store result score @s iron_count run clear @s iron_ingot 0
  3. execute as @a[team=playing] run scoreboard players operation @s iron_disp = @s iron_count
  4. execute if score $countdown mem matches ..60 run effect give @a[team=playing] glowing 1000000 0 true
  5. # 铁锭发光
  6. execute as @e[type=item,nbt={Item:{id:"minecraft:iron_ingot"}}] run data modify entity @s Glowing set value 1b