feat: add NPC scale support for Minecraft 1.20.5+#218
feat: add NPC scale support for Minecraft 1.20.5+#218KevinDavai wants to merge 1 commit intoPyrbu:2.Xfrom
Conversation
KevinDavai
commented
Jan 11, 2026
- Registered new AttributeProperty "scale" in EntityPropertyRegistryImpl
- Only active for versions 1.20.5 and above
|
@KevinDavai Simply adding the property isn’t sufficient. The look system also needs to be updated to account for scale when computing the target yaw and pitch for the NPC to face the player. I’ve tried adjusting this within the current setup, but it doesn’t behave correctly. To fix this properly, the look behavior needs to be reworked on the backend so scale is consistently factored into the calculations. I'll try to work on it today. |
|
I think we should accept this and just forget about look breaking with it for now because it adds a lot of creative possibilities with the plugin. |
|
Give me 1 day. I will try to reimplement the look logic with scale support once more. If it doesn't work, I will add it directly. |
|
To implement it you will need to generate a height value for every possible entity type and subtract that value multiplied by the scale value from the y coordinate in the look calculation. |