Przeglądaj źródła

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

LTCatt 5 lat temu
rodzic
commit
0c2ba7b622

+ 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