Parcourir la source

血量上限修复

HerobrineXia il y a 6 ans
Parent
commit
b578caa01a
1 fichiers modifiés avec 3 ajouts et 0 suppressions
  1. 3 0
      data/ltw/functions/state/0/player_enter.mcfunction

+ 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