- Greatly optimized modify builder initialization to only fire once upon base Entity init
- Changed
createCustom
method adding a 3rd parameter giving direct access to the respective entity's modification event. This also avoids weird Rhino ambiguity issues with the KubeJS defaultcreateCustom
method. Reference the updated wiki page for the example of the revision
- Greatly optimized modify builder initialization to only fire once upon base Entity init
- Changed
createCustom
method adding a 3rd parameter giving direct access to the respective entity's modification event. This also avoids weird Rhino ambiguity issues with the KubeJS defaultcreateCustom
method. Reference the updated wiki page for the example of the revision - Moved some synced entity data logic to existing
onAddedToLevel
method
- Added
defineSyncedData()
to ModifyEntityBuilder allowing for auto client/server synced data on entities - Added
entity.addSyncedData()
,entity.setSyncedData()
&entity.getSyncedData
to Entity class - Added most vanilla entity geo models in kubejs assets namespace
- Added
addRenderItemLayer
method to living entity builders giving scripters the choice to render hand items on their models - Added
addArmorItemLayer
method to living entity builders allowing for armor rendering capabilities - Modified sasuke.geo.json to handle armor/hand held items
- Added the GeoRenderer to all living entity render callbacks as an extra available field
- Fixed
addGoals
event inputting the wrong event handler in entities
-
Living Entity Builder Improvements
- Added
canRide
option - Added
renderFinal
method - Added
applyRotations
method - Added
setNavigation()
method - Added
setMoveControl()
method
- Added
-
Goals
- Added
NearestAttackableTargetGoalJS
with support for custom AABB
- Added
-
Synced Data
Vector3
synced data now optionally acceptsVec3
instances
- Fixed entity crash with
canAttack()
modifyEntity builder method
- Added
renderType()
&setRenderType()
to non living model layer builders for custom render type implementation - Added
shouldRenderAtSqrDistance
to all living entity builders
- Added
setRenderType
&renderType
functions to thenewGeoLayer
&newGlowingGeoLayer
builders
- The
modifyEntity
event is now only posted during therendertype
event if the registered JS event handler actually definessetTextureLocation
orsetRenderType
- Added
canBeCollidedWith
to all living & nonliving entity builders - Removed old MobBuilder class
- Made
facesTrajectory
method available to all Non-Living entities instead of just animatable projectiles. - Moved
facesTrajectory
render implementation to the entity'srender
method from thescaleModelForRender
method to be a post-render effect - Added
newGeoLayer
&newGlowingGeoLayer
to Non-Living entities instead of just living entities - Added
EntityJSEvents.createAttributes
event to add new attributes to an entity - Removed some accidental comments from a few probejs typings
- Made base non-living entity
facesTrajectory
field default to false while projectiles default to true - Fixed casting error when modifying
createCustom
entities