Explorar el Código

回滚锁格子

HerobrineXia hace 5 años
padre
commit
a5e8045894
Se han modificado 1 ficheros con 3 adiciones y 4 borrados
  1. 3 4
      data/item/functions/disable_throw.mcfunction

+ 3 - 4
data/item/functions/disable_throw.mcfunction

@@ -5,7 +5,6 @@ data modify entity @s Owner set from entity @s Thrower
 
 # 将物品传送给与丢弃者 UUID 相同的玩家
 execute store result score @s UUID run data get entity @s Thrower[0]
-execute as @a if score @s UUID = @e[type=item,tag=item_force_tp,limit=1] UUID run tag @s add force_tp
-execute if entity @a[tag=force_tp,gamemode=spectator] run kill @s
-tp @s @a[tag=force_tp,limit=1]
-tag @a remove force_tp
+tag @s add item_force_tp
+execute as @a if score @s UUID = @e[type=item,tag=item_force_tp,limit=1] UUID run tp @e[type=item,tag=item_force_tp] @s
+tag @s remove item_force_tp