Explorar o código

Merge branch 'master' of https://github.com/LTCatt/LTW3

LTCatt %!s(int64=5) %!d(string=hai) anos
pai
achega
0c2ba7b622
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  1. 1 0
      data/mini/functions/diamond/player_death.mcfunction

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

@@ -8,6 +8,7 @@ effect give @s blindness 3 0 true
 # 处理玩家掉落物品
 execute at @s as @e[type=item,distance=..100] store result score @s temp run data get entity @s Age
 execute at @s store result score #total_drop temp run tag @e[type=item,scores={temp=..3}] add death_drop
+execute as @e[type=item,tag=death_drop] run data modify entity @s Invulnerable set value 1b
 scoreboard players reset @e[type=item] temp
 # 单独处理钻石还没写
 function mini:diamond/game/drop_diamond