- Changed
onHitEntity&onHitBlockcontext to take in aProjectileinstead ofThrowableItemProjectileto be more inclusive for addon compatibility
- Fixed some modifyEntity methods not working in production environment due to failed remappings
Fixed
- Resolved an issue where the goal event was not firing for
PathfinderMobsdue to arefmapconfiguration problem, ensuring consistent event behavior across all entity types.
Fixed
- Fixed an issue where
getStandingEyeHeight()was returning null. - Relocated the goal event in the
MobMixinentity initialization method to theEntityMixinonAddedToWorld()method to ensure values register properly.
Enhanced
- Enhanced
addGoalSelectorsandaddGoalsevents, now capable of modifying all Mob entities. - Enhanced
buildBrain()andbuildBrainProvider()events, which can now modify any entity brain, provided these entities do not override thebrainProvider/getBrainmethods in their subclasses.
Added
- Introduced
.removeGoal(),.removeGoals(), and.removeAllGoals()methods to bothaddGoalSelectorsandaddGoalsevents, enabling the removal of existing goals. - Introduced
getEntity()method to all goal events, granting access to the mob instance involved in the event. - Introduced the
EntityJSEvents.modifyEntity()event, enabling method overrides for entities derived fromPathfinderMob,Mob,LivingEntity, andEntity. (Refer to the new wiki page for examples)
Fixed
- Fixed an issue where
getStandingEyeHeight()was returning null. - Relocated the goal event in the
MobMixinentity initialization method to theEntityMixinonAddedToWorld()method to ensure values register properly.
Fixed
- Resolved an issue where
getTypeIdcould not be accessed due to its private access modifier, enhancing the method's usability. - Addressed a bug causing the goal event to fire twice for EntityJS entities, improving event handling consistency.
Added
- Implemented automatic generation of egg items for entities, streamlining the entity creation process.
- Introduced
.noEggItem()method, allowing developers to opt-out of automatic egg item generation if needed.
New Features
- Enhanced
addGoalSelectorsandaddGoalsevents, now capable of modifying all Mob entities - Introduced
.removeGoal(),.removeGoals(), and.removeAllGoals()methods to bothaddGoalSelectorsandaddGoalsevents, allowing the removal of existing goals. - Enhanced
buildBrain()andbuildBrainProvider()events which can now modify any entity brain, assuming these entities do not override thebrainProvider/getBrainmethods in their subclasses - Introduced
getEntity()method to all goal events, granting access to the mob instance involved in the event
Added
- Introduced the
EntityJSEvents.modifyEntity()event, enabling method overrides for entities derived fromPathfinderMob,Mob,LivingEntity, andEntity. (see new wiki page for examples)
- Changed context from ThrownItemProjectile to Projectile in
ProjectileBlockHitContext&ProjectileEntityHitContextto allow addon mods usage of the onHitEntity & onHitBlock methods
Fixed Issues
- Fixed issue with Corail Tombstone incompatibility when
mobtypeis null on spawn. - Fixed
onRemovedFromWorldnot firing due to superclass method being called before consumer.



