kuangsanlaopo
1.16.4怎么让血量一直只有半颗星

Jokey_钥匙
attribute @s generic.max_health base set 1

whatfilmae
本帖最后由 whatfilmae 于 2020-12-26 21:57 编辑

/attribute @p minecraft:generic.max_health base set 1
最大生命值为1(即1❤)
如果你需要0.5❤,可给予玩家一次中毒伤害

jason_sun
上方命令无效(attribute命令最少为1颗心,即2点血,不符合要求)
循环命令方块
/replaceitem entity @a armor.head minecraft:leather_helmet{AttributeModifiers:[{Operation:0,Amount:-19,UUIDLeast:-1711488731538831718L,UUIDMost:2497315228914659831L,Slot:head,AttributeName:"generic.maxHealth",Name:"generic.maxHealth"}],Unbreakable:1,Enchantments:[{id:"minecraft:binding_curse",lvl:1},{id:"minecraft:vanishing_curse",lvl:1}]} 1
该答案原帖地址:https://www.mcbbs.net/forum.php? ... 145595&pid=20544939话说那贴不就是你发的吗

尸先peng
/attribute @s generic.max_health base set 1
(1.16+专属指令,可以将玩家的血量上限定为半颗星)

Jokey_钥匙
本帖最后由 Jokey_钥匙 于 2020-12-27 07:16 编辑
jason_sun 发表于 2020-12-26 21:58
上方命令无效(attribute命令最少为1颗心,即2点血,不符合要求)
循环命令方块
/replaceitem entity @a ar ...

?你在说什么

你们改完属性不知道让它更新吗?