Huge update! Better animations, an actual API system and tons of things
FreeMinecraftModels 2.1.0:
- [New] Rewrote the animation system
- [New] Plugins can now mess with model scale through the API
- [New] Living entities disguised with custom models now tint red when dying, emit particles (imitating Minecraft) and also shrink down at the end to fade away. Red tint is currently not working for Minecraft 1.21.4+
- [New] Added API endpoints for interactions:
- DynamicEntityLeftClickEvent
- DynamicEntityRightClickEvent
- DynamicEntityHitboxContactEvent
- StaticEntityLeftClickEvent
- StaticEntityRightClickEvent
- StaticEntityHitboxContactEvent (entity must be set to tick collision checks)
- PropEntityLeftClickEvent
- PropEntityRightClickEvent
- PropEntityHitboxContactEvent (entity must be set to tick collision checks)
- ModeledEntityLeftClickEvent
- ModeledEntityRightClickEvent
- ModeledEntityHitboxContactEvent (entity must be set to tick collision checks is not dynamic)
- [New] Dynamic Entities now scale up with the scale attribute in the underlying vanilla minecraft boss
- [New] Custom hitboxes now scale correctly with the current scale setting of the underlying entity or with the scale setting set by other plugins (they do not scale based on animations)
- [Fix] Death animations should now play once more
- [Fix] Fixed entity desync when entities teleport
- [Fix] Fixed hitboxes being halfway buried into the floor
- [Fix] Heads now cause bodies to rotate in a way very similar to Minecraft's, avoiding the issue where heads would sometimes rotate up to 180 degrees away from the body
- [Optimization] Now avoiding recalculating hitboxes when possible
- [Optimization] Now only calculating packet-related math when necessary
- [Refactor] Remade shutdown sequence to systematize it and prevent memory leaks
- [Fix] Static entities can now be killed by punching them as intended
- [Fix] Fixed bug where projectiles would incorrectly remove models
- [Fix] Fixed problem where x and z axis sizes for hitboxes were flipped around
- [Tweak] Hitbox debug command now also shows underlying entity, if any
- [Tweak] Capped resync at 1 second, to avoid entities flickering too much while doing tricky behavior that can cause desyncs