Explorar o código

使用后清理三叉戟

HerobrineXia %!s(int64=6) %!d(string=hai) anos
pai
achega
2684fff29e
Modificáronse 1 ficheiros con 4 adicións e 1 borrados
  1. 4 1
      data/mini/functions/phantom/game/use_trident.mcfunction

+ 4 - 1
data/mini/functions/phantom/game/use_trident.mcfunction

@@ -1,3 +1,6 @@
 # 设置玩家分数
 # 设置玩家分数
 scoreboard players set @s countdown 2
 scoreboard players set @s countdown 2
-scoreboard players reset @s useTrident
+scoreboard players reset @s useTrident
+
+# 清除三叉戟以防bug
+clear @s trident{GameItem:1b}