tick2.mcfunction 732 B

123456789101112131415
  1. # 使用三叉戟调用函数
  2. execute as @a[tag=mini_running] if score @s use_trident matches 1.. run function mini:phantom/game/use_trident
  3. # 给予三叉戟
  4. execute as @a[tag=mini_running,scores={countdown_fast=0}] unless data entity @s Inventory[{Slot:8b,id:"minecraft:trident",tag:{game_item:1b}}] run function mini:phantom/game/give_trident
  5. # 更改丢出的三叉戟的nbt
  6. execute as @e[type=trident,tag=!fixed_trident] run function mini:phantom/game/fix_trident
  7. # 删除掉在地上的三叉戟
  8. kill @e[type=trident,nbt={inGround:1b}]
  9. kill @e[type=item,nbt={Item:{id:"minecraft:trident",tag:{game_item:1b}}}]
  10. # 奖励幻翼特效
  11. execute as @e[tag=bonus_phantom] at @s run particle dust 1 0 0 2 ~ ~ ~ 0.2 0 0.2 0 2 normal