|
|
@@ -2,14 +2,14 @@
|
|
|
execute as @a[tag=mini_running] if score @s use_trident matches 1.. run function mini:phantom/game/use_trident
|
|
|
|
|
|
# 给予三叉戟
|
|
|
-execute as @a[tag=mini_running] unless data entity @s Inventory[{id:"minecraft:trident",tag:{GameItem:1b}}] unless score @s countdown_fast matches 1.. run function mini:phantom/game/give_trident
|
|
|
+execute as @a[tag=mini_running] unless data entity @s Inventory[{id:"minecraft:trident",tag:{game_item:1b}}] unless score @s countdown_fast matches 1.. run function mini:phantom/game/give_trident
|
|
|
|
|
|
# 清理错位的三叉戟
|
|
|
-execute as @a[tag=mini_running] unless score @s countdown_fast matches 1.. unless data entity @s Inventory[{id:"minecraft:trident",Slot:8b,tag:{GameItem:1b}}] if data entity @s Inventory[{id:"minecraft:trident",tag:{GameItem:1b}}] run function mini:phantom/game/give_trident
|
|
|
+execute as @a[tag=mini_running] unless score @s countdown_fast matches 1.. unless data entity @s Inventory[{id:"minecraft:trident",Slot:8b,tag:{game_item:1b}}] if data entity @s Inventory[{id:"minecraft:trident",tag:{game_item:1b}}] run function mini:phantom/game/give_trident
|
|
|
|
|
|
# 更改丢出的三叉戟的nbt
|
|
|
execute as @e[type=trident,tag=!fixed_trident] run function mini:phantom/game/fix_trident
|
|
|
|
|
|
# 删除掉在地上的三叉戟
|
|
|
kill @e[type=trident,nbt={inGround:1b}]
|
|
|
-kill @e[type=item,nbt={Item:{id:"minecraft:trident",tag:{GameItem:1b}}}]
|
|
|
+kill @e[type=item,nbt={Item:{id:"minecraft:trident",tag:{game_item:1b}}}]
|