- Added special
createCustom
method in entity registry event giving scripters the ability to dynamically copy/create entities via any LivingEntity class, including modded entities - Added
getAnimatableEntity()
to LivingEntity class to get a custom entity instance if applicable - Added
ignoreExplosion()
override to ModifyEntityBuilder
- Fixed crash when disabling goals for custom Bee entities
- Added
getEntityBuilder
to EntityJSUtils binding class - Added
.attributes()
method to BaseLivingEntityBuilder giving access to entity modification event from custom entity builders - Fixed Attribute Modification Event not working for custom entities
-
Added
setFacesTrajectory
to theProjectileAnimatableJSBuilder
to add implementation forgeckolib_projectile
determining if the projectile's model visually faces the direction it's currently headed in -
Moved some client logic to client side only classes to avoid errors on dedicated servers when modifying certain entity methods.
- Fixed missing collar implementation to WolfEntityJS
- Fixed GeoLayerJS rendering logic not working when builder.render was called
- Fixed entity modification
canAttack
callback resulting in NullPointerException crash - Added client/server synced data methods via
.defineSyncedData
entity modification method.
Example:
builder.defineSyncedData(entity => {
entity.addSyncedData("string", "Variant", "blue")
})
- Added
getSyncedData
to LivingEntities to grab the aforementioned synced data.
Example:
entity.getSyncedData("Variant")
- Added missing arguments to CustomInstructionKeyframeEventJS,ParticleKeyFrameEventJS & SoundKeyFrameEventJS including
entity
,animationTick
,controller
&keyframeData
- Added getCurrentAnimationTick() to Geckolib AnimationController giving the current tick the playing animation is at.
- Made
setCanShootFromDispenser()
in projectile builders return the builder instead of void allowing for proper builder method chaining
- Added missing arguments to CustomInstructionKeyframeEventJS,ParticleKeyFrameEventJS & SoundKeyFrameEventJS including
entity
,animationTick
,controller
&keyframeData
- Added getCurrentAnimationTick() to Geckolib AnimationController giving the current tick the playing animation is at.
- Made
setCanShootFromDispenser()
in projectile builders return the builder instead of void allowing for proper builder method chaining
- Added missing arguments to CustomInstructionKeyframeEventJS,ParticleKeyFrameEventJS & SoundKeyFrameEventJS including
entity
,animationTick
,controller
&keyframeData
- Added getCurrentAnimationTick() to Geckolib AnimationController giving the current tick the playing animation is at.
- Made
setCanShootFromDispenser()
in projectile builders return the builder instead of void allowing for proper builder method chaining
- Added missing arguments to CustomInstructionKeyframeEventJS,ParticleKeyFrameEventJS & SoundKeyFrameEventJS including
entity
,animationTick
,controller
&keyframeData
- Added getCurrentAnimationTick() to Geckolib AnimationController giving the current tick the playing animation is at.
- Added
isMoving()
boolean to Entity universally