Kaynağa Gözat

修复掉落

HerobrineXia 5 yıl önce
ebeveyn
işleme
f32cb5de5e

+ 0 - 1
data/item/functions/disable_throw.mcfunction

@@ -1,5 +1,4 @@
 # 强制玩家捡起自己丢弃的物品,以物品为执行者
-say 被tp了
 # 更改 NBT
 data modify entity @s PickupDelay set value 0
 data modify entity @s Owner set from entity @s Thrower

+ 2 - 0
data/mini/functions/diamond/game/respawn2.mcfunction

@@ -1,2 +1,4 @@
 tp @a[tag=respawning] ~ 263 ~
+execute as @e[type=item,tag=death_drop] run function item:disable_throw
+tag @e[type=item,tag=death_drop] remove death_drop
 tag @a remove respawning

+ 1 - 3
data/mini/functions/diamond/player_death.mcfunction

@@ -20,6 +20,4 @@ execute if score #total_drop temp matches 1.. run function mini:diamond/game/ite
 # 其余物品丢回背包
 tag @s add dead_player
 execute as @e[type=item,tag=death_drop] run data modify entity @s Thrower set from entity @a[tag=dead_player,limit=1] UUID
-tag @s remove dead_player
-execute as @e[type=item,tag=death_drop] run function item:disable_throw
-tag @e[type=item,tag=death_drop] remove death_drop
+tag @s remove dead_player