Minecraft Bedrock Edition(堆积岩版):
/effect <玩者ID> health_boost 99999 <品级> true
傍边玩者体力值=20+4×(<品级>+1)
Minecraft Java Edition(Java版):
/effect需用
/attribute <玩者ID> minecraft:generic.armor base set <血构造因子>
以内体例均底子无法施行一场,失踪后需再次接纳指示。
假设想永久性施行(JE),除能用指示魔方屡次反复继续施行下面的指示,还能擅自给玩者所带存取死而复活的兵器配备:
1.15此后:/replaceitem entity <玩者ID> armor.head minecraft:leather_helmet{AttributeModifiers:[{Operation:0,Amount:<血构造因子>,UUID:[I;1,2,3,4],AttributeName:"generic.max_health",Name:"generic.max_health"}],Unbreakable:1b,Enchantments:[{id:"minecraft:binding_curse",lvl:1s}],display:{color:0}} 1
1.14向前:/replaceitem entity <玩者ID> armor.head minecraft:leather_helmet{AttributeModifiers:[{Operation:0,Amount:<血构造因子>,UUIDLeast:1L,UUIDMost:2L,AttributeName:"generic.maxHealth",Name:"generic.maxHealth"}],Unbreakable:1b,Enchantments:[{id:"minecraft:binding_curse",lvl:1s}],display:{color:0}} 1
(给玩者所带无限耐热的布料面罩,存取死而复活)
体力值=血构造因子+20