Przeglądaj źródła

血量上限修复

HerobrineXia 6 lat temu
rodzic
commit
b578caa01a

+ 3 - 0
data/ltw/functions/state/0/player_enter.mcfunction

@@ -9,6 +9,9 @@ effect give @s instant_health 10 0 true
 effect give @s night_vision 1000000 0 true
 effect give @s resistance 1000000 4 true
 
+# 设置血量上限
+execute as @a run attribute @s generic.max_health base set 20
+
 # 冒险模式
 gamemode adventure