mojira.dev
MC-124090

Illagers will not accept modified NBT Health

Well, I attempted to make an interesting boss fight using the Illusion Illager.
Thing is, the Health on it, and the other Illagers will not change no matter what I do.

In 1.12.2, the /entitydata says it works, but checking, it doesn't.
in 18w01a, it says the /data merge entity works, but checking, it doesn't.

This is very sad.

Attachments

Comments 3

Your 1.12 command contains invalid syntax; you did not specify the "Health" key. Regardless, the Health tag is the current health and cannot exceed their maximum health. You have to change both their current and maximum health:

/data merge entity <target> {Health:64.0f,Attributes:[{Name:"generic.maxHealth",Base:64.0}]}
/data merge entity <target> {Health:64.0f,Attributes:[{Name:"generic.maxHealth",Base:64.0}]}

(and in the future, please provide the commands in text form rather than image form)

/summon minecraft:illusion_illager ~15 ~1 ~ {CustomName:"Head Illusioner",CustomNameVisible:1,PersistenceRequired:1b,FallFlying:1,ArmorItems:[{id:"minecraft:dye",Damage:4,Count:1},{},{id:"minecraft:elytra",Count:1},{id:skull,Damage:3,Count:1b,tag:{SkullOwner:{Id:"a024cb0c-6f05-45e5-b4e3-369984721032",Properties:{textures:[{Value:"eyJ0ZXh0dXJlcyI6eyJTS0lOIjp7InVybCI6Imh0dHA6Ly90ZXh0dXJlcy5taW5lY3JhZnQubmV0L3RleHR1cmUvMWM2NzhjOWY0YzZkZDRkOTkxOTMwZjgyZTZlN2Q4Yjg5YjI4OTFmMzVjYmE0OGE0YjE4NTM5YmJlN2VjOTI3In19fQ=="}]}}}}],Health:500,Attributes:[{Name:"generic.movementSpeed",Base:0.6f},{Name:"generic.attackDamage",Base:7}],HandItems:[{},{id:"minecraft:bow",tag:{ench:[{id:48,lvl:5},{id:49,lvl:2},{id:50,lvl:1}]},Count:1}],HandDropChances:[0.1F,2F],ArmorDropChances:[2F,2F,0F,2F],ActiveEffects:[{Id:3,Amplifier:0,Duration:2147483647,ShowParticles:0b},{Id:5,Amplifier:0,Duration:2147483647,ShowParticles:0b},{Id:8,Amplifier:2,Duration:2147483647,ShowParticles:0b},{Id:10,Amplifier:199,Duration:100},{Id:12,Amplifier:0,Duration:2147483647,ShowParticles:0b},{Id:21,Amplifier:99,Duration:2147483647}]}
/summon minecraft:illusion_illager ~15 ~1 ~ {CustomName:"Head Illusioner",CustomNameVisible:1,PersistenceRequired:1b,FallFlying:1,ArmorItems:[{id:"minecraft:dye",Damage:4,Count:1},{},{id:"minecraft:elytra",Count:1},{id:skull,Damage:3,Count:1b,tag:{SkullOwner:{Id:"a024cb0c-6f05-45e5-b4e3-369984721032",Properties:{textures:[{Value:"eyJ0ZXh0dXJlcyI6eyJTS0lOIjp7InVybCI6Imh0dHA6Ly90ZXh0dXJlcy5taW5lY3JhZnQubmV0L3RleHR1cmUvMWM2NzhjOWY0YzZkZDRkOTkxOTMwZjgyZTZlN2Q4Yjg5YjI4OTFmMzVjYmE0OGE0YjE4NTM5YmJlN2VjOTI3In19fQ=="}]}}}}],Health:500,Attributes:[{Name:"generic.movementSpeed",Base:0.6f},{Name:"generic.attackDamage",Base:7}],HandItems:[{},{id:"minecraft:bow",tag:{ench:[{id:48,lvl:5},{id:49,lvl:2},{id:50,lvl:1}]},Count:1}],HandDropChances:[0.1F,2F],ArmorDropChances:[2F,2F,0F,2F],ActiveEffects:[{Id:3,Amplifier:0,Duration:2147483647,ShowParticles:0b},{Id:5,Amplifier:0,Duration:2147483647,ShowParticles:0b},{Id:8,Amplifier:2,Duration:2147483647,ShowParticles:0b},{Id:10,Amplifier:199,Duration:100},{Id:12,Amplifier:0,Duration:2147483647,ShowParticles:0b},{Id:21,Amplifier:99,Duration:2147483647}]}

There is the Summon command.

I also tried using the Health Boost potion effect, as you can see, which didn't do anything. So possibly still a bug, just not what I thought? Or does this MaxHealth thing block the potion effect from even working as an intended use?

No, health boost applies an attribute modifier normally, but since you're summoning it, it's not applied. You have to add the Attribute named generic.maxHealth.

AceMcCrank

(Unassigned)

Unconfirmed

Minecraft 1.12.2, Minecraft 18w01a

Retrieved