- Fixed another server-side issue where in some cases custom entity attribute builders are null on the client
Memory Leak Fix
- Prevent modification builder map from holding onto level in memory
- Fixed entity attributes being null on the client side while on a dedicated server
- Fixed a "casting to T" error when creating new move control/look control in entities
- Updated to KubeJS 7.2
- Greatly optimized modify builder initialization to only fire once upon base Entity init
- Changed
createCustommethod adding a 3rd parameter giving direct access to the respective entity's modification event. This also avoids weird Rhino ambiguity issues with the KubeJS defaultcreateCustommethod. 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
createCustommethod adding a 3rd parameter giving direct access to the respective entity's modification event. This also avoids weird Rhino ambiguity issues with the KubeJS defaultcreateCustommethod. Reference the updated wiki page for the example of the revision - Moved some synced entity data logic to existing
onAddedToLevelmethod
- Added
defineSyncedData()to ModifyEntityBuilder allowing for auto client/server synced data on entities - Added
entity.addSyncedData(),entity.setSyncedData()&entity.getSyncedDatato Entity class - Added most vanilla entity geo models in kubejs assets namespace
- Added
addRenderItemLayermethod to living entity builders giving scripters the choice to render hand items on their models - Added
addArmorItemLayermethod 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
addGoalsevent inputting the wrong event handler in entities
-
Living Entity Builder Improvements
- Added
canRideoption - Added
renderFinalmethod - Added
applyRotationsmethod - Added
setNavigation()method - Added
setMoveControl()method
- Added
-
Goals
- Added
NearestAttackableTargetGoalJSwith support for custom AABB
- Added
-
Synced Data
Vector3synced data now optionally acceptsVec3instances
- Fixed entity crash with
canAttack()modifyEntity builder method
- Added
renderType()&setRenderType()to non living model layer builders for custom render type implementation - Added
shouldRenderAtSqrDistanceto all living entity builders
- Added
setRenderType&renderTypefunctions to thenewGeoLayer&newGlowingGeoLayerbuilders



