Browse Source

血量上限修复

HerobrineXia 6 years ago
parent
commit
b578caa01a
1 changed files with 3 additions and 0 deletions
  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 night_vision 1000000 0 true
 effect give @s resistance 1000000 4 true
 effect give @s resistance 1000000 4 true
 
 
+# 设置血量上限
+execute as @a run attribute @s generic.max_health base set 20
+
 # 冒险模式
 # 冒险模式
 gamemode adventure
 gamemode adventure