Просмотр исходного кода

修改不停替换三叉戟的bug

HerobrineXia 6 лет назад
Родитель
Сommit
a0f5b83f44
1 измененных файлов с 2 добавлено и 2 удалено
  1. 2 2
      data/mini/functions/phantom/tick2.mcfunction

+ 2 - 2
data/mini/functions/phantom/tick2.mcfunction

@@ -1,6 +1,6 @@
 # 给与玩家三叉戟
-execute as @a[tag=mini_running] unless score @s countdown matches 1.. run function mini:phantom/game/give_trident
-execute as @a[tag=mini_running] unless score @s countdown matches 1.. run scoreboard players set @s countdown 2
+execute as @a[tag=mini_running] unless data entity @s Inventory[{id:"minecraft:trident",tag:{GameItem:1b}}] unless score @s countdown matches 1.. run function mini:phantom/game/give_trident
+execute as @a[tag=mini_running] unless data entity @s Inventory[{id:"minecraft:trident",tag:{GameItem:1b}}] unless score @s countdown matches 1.. run scoreboard players set @s countdown 2
 
 # 清理错位的三叉戟
 execute as @a[tag=mini_running] unless score @s countdown 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