- New Feature: Introduced the
entityjs:geckolib_projectile
builder with GeckoLib model support. - Bug Fixes:
- Resolved startup crash for nonliving builders when the
immuneTo
field is not specified. - Fixed the
ProjectileEntityJS
renderer. - Corrected an issue where the projectile's
ItemStack
wasnull
on entity initialization, preventing spawning. - Fixed
ArrowEntityJS
not spawning when shot from a bow.
- Resolved startup crash for nonliving builders when the
- Change: Moved the
onInteract
entity modification method from the mob modification builder to the entity modification builder.
- Added "entityjs:geckolib_projectile" builder with geckolib model capabilities
- Updated to 1.21
- Improved function error handling in all living entities to prevent crashes when erroring in returnable value functions
- Fixed issue where some mobs wouldn't attack because of
playerTouch
not calling super by default
- Added projectile modification builder
- Added onEntityCollision to base entity modification builder
- Added
Slime
default builder
- Changed
onHitEntity
&onHitBlock
context to take in aProjectile
instead ofThrowableItemProjectile
to 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
PathfinderMobs
due to arefmap
configuration problem, ensuring consistent event behavior across all entity types.
Fixed
- Fixed an issue where
getStandingEyeHeight()
was returning null. - Relocated the goal event in the
MobMixin
entity initialization method to theEntityMixin
onAddedToWorld()
method to ensure values register properly.
Enhanced
- Enhanced
addGoalSelectors
andaddGoals
events, 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
/getBrain
methods in their subclasses.
Added
- Introduced
.removeGoal()
,.removeGoals()
, and.removeAllGoals()
methods to bothaddGoalSelectors
andaddGoals
events, 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
MobMixin
entity initialization method to theEntityMixin
onAddedToWorld()
method to ensure values register properly.