mojira.dev
MC-302182

Happy Ghast scale attribute cannot be set to higher than 1.0

When using the following command:

/attribute @e[type=minecraft:happy_ghast, limit=1 , sort=nearest] minecraft:scale base set 2

the nearest happy ghast is expected to double in size. However, despite the console confirming that the entity scale has been set, the creature does not grow. This can be said for any value higher than 1. Alternatively, setting the value to anything below 1 does work, all the way from 0.99 to 0.01.

Similarly, when trying to use the following command:

/summon minecraft:happy_ghast ~ ~ ~ {attributes: [{id:scale,base2f}]}

the summoned entity is expected to be double the size of one summoned at a value of 1f, but this also results in failiure. The Happy Ghast is, of course, summoned, but without being larger. Yet again, a value below 1, however, does not have this issue.

Other mobs do not have this issue, as far as I’ve tested, though I have not tried all of them. I can only assume that this is related to the happy ghast’s ability to be stood on top of; or, perhaps, if this is not actually a bug, I could also assume the value would be capped off for that reason.

Environment

Ive attempted the command on both adult and baby (ghastling) variants of happy ghast.
I've attempted on both adult and ghastling variants while attached to a lead.
I've attempted putting a nametag on both adult and ghastling variants, and changing the command line to '@e[name=example, limit=1]', which also does not work.
Other mobs I've tested are Chicken, Wandering Trader, and Ghast, as well as all other mountable mobs, which have not shared this issue and have worked properly.
Information online is scarce, but it seems this was not an issue of previous stable versions containing the happy ghast.

Linked issues

Comments 0

No comments.

Kira Stewart

(Unassigned)

Unconfirmed

(Unassigned)

1.21.8

Retrieved