mojira.dev
MC-196202

Mobs not receiving attributes properly

When using commands to summon a mob or make a spawn egg for a mob with attributes that exceed that of the mob's vanilla stats (At least Health and Damage) it does not apply them, and rounds it back to the mob's vanilla statistics. It works properly when reducing them though (Example: You can make a 5 health 1 damage wither skeleton, but not a 50 health 20 damage one).

Linked issues

Comments 3

Please provide the exact command used

Not working on /summon or /give, minecraft 1.16.1

Example command :

 

/summon minecraft:horse ~ ~1 ~ {Health:50,Attributes:[{Name:"generic.maxHealth",Base:50}
,{Name:"generic.movementSpeed",Base:10f},{Name:"horse.jumpStrength",Base:2f}],SaddleItem:{id:saddle,Count:1},Tame:1}

 

 

 

/give @p horse_spawn_egg{EntityTag:{id:"minecraft:horse",Health:50,Attributes:[{Name:"generic.maxHealth",Base:50}
,{Name:"generic.movementSpeed",Base:10f},{Name:"horse.jumpStrength",Base:2f}],SaddleItem:{id:saddle,Count:1},Tame:1}}

 

 Logs :

[Server thread/WARN] [minecraft/AttributeModifierManager]: Ignoring unknown attribute 'generic.maxHealth'
[Server thread/WARN] [minecraft/AttributeModifierManager]: Ignoring unknown attribute 'generic.movementSpeed'
[Server thread/WARN] [minecraft/AttributeModifierManager]: Ignoring unknown attribute 'horse.jumpStrength'

SheZow Hamdon

(Unassigned)

Unconfirmed

(Unassigned)

1.16.1

Retrieved