Added:
isSunSensitive
andconvertsInWater
boolean override to zombie builder.isAlliedTo
override to all living entity builders.setCelebrateSound
in Illusioner builder.modelSize
for scaling the model without messing with hitbox rendering in bothLivingRenderer
andNonLivingRenderer
.scaleModelForRender
method in bothLivingRenderer
andNonLivingRenderer
.- safe callbacks to
.render
method in bothLivingRenderer
andNonLivingRenderer
.
Removed:
- scaling entities down by 0.5 by default if they're a baby.
Changelog
Added
- Non-Living & Water entity builders.
- Missing
mobType
override to Base Living Entity Builder. getDropItem
to boat builder to set the drop item.forwardBoatSpeed
,backwardsBoatSpeed
, andturningBoatSpeed
to boat builder.getItem
to eye of ender builder to set the drop item.signalTo
to the eye of ender item builder along withplaySoundOverride
andtriggersCriteria
.
25 Default Minecraft builders added for the following entities:
- Zombie
- Allay
- Axolotl
- Bat
- Bee
- Blaze
- Boat
- Cat
- Camel
- Chicken
- Cow
- Creeper
- Dolphin
- Donkey
- Enderman
- Evoker
- Ghast
- Goat
- Guardian
- Horse
- Illusioner
- Iron Golem
- Panda
- Parrot
- Eye of Ender
Changed
- Changed
onBlockedByShield
to have LivingEntityContext with entity and target as parameters instead of just attacker. - Added
onHurtTarget
to Base Living Entity Builder. - Changed
.onLivingFall
in non-entity builders to.onFall
. - Added missing base non-living entity overrides to projectile/arrow builders.
- Added safe Consumer callbacks to all builders to prevent errors crashing the game.
Fixed
- Fixed
onLivingFall
andonFall
context with wrong definitions in all builders. - Fixed
isPickable
in partbuilder causingisAttackable
to be true.
Changelog
Added
- Non-Living & Water entity builders.
- Missing
mobType
override to Base Living Entity Builder. getDropItem
to boat builder to set the drop item.forwardBoatSpeed
,backwardsBoatSpeed
, andturningBoatSpeed
to boat builder.getItem
to eye of ender builder to set the drop item.signalTo
to the eye of ender item builder along withplaySoundOverride
andtriggersCriteria
.
24 Default Minecraft builders added for the following entities:
- Zombie
- Allay
- Axolotl
- Bat
- Bee
- Blaze
- Boat
- Cat
- Chicken
- Cow
- Creeper
- Dolphin
- Donkey
- Enderman
- Evoker
- Ghast
- Goat
- Guardian
- Horse
- Illusioner
- Iron Golem
- Panda
- Parrot
- Eye of Ender
Changed
- Changed
onBlockedByShield
to have LivingEntityContext with entity and target as parameters instead of just attacker. - Added
onHurtTarget
to Base Living Entity Builder. - Changed
.onLivingFall
in non-entity builders to.onFall
. - Added missing base non-living entity overrides to projectile/arrow builders.
- Added safe Consumer callbacks to all builders to prevent errors crashing the game.
Removed
- Deprecated
.canCutCorner
&.rideableUnderWater
methods in all mob builders (1.19.2).
Fixed
- Fixed
onLivingFall
andonFall
context with wrong definitions in all builders. - Fixed
isPickable
in partbuilder causingisAttackable
to be true.
-
Added .createNavigation override to mob, animal, and tamable mob builders
-
Added .addPartEntity parameter effectively adding part entity/multi-hitbox support
-
Added .onPartHurt function to the part entity builder
-
Added missing brain overrides for living entity/pathfinder mob/tamable mob builders
-
Added EntityJSUtils binding for various class uses
-
Removed InteractionResult binding as it's no longer needed in the .onInteract method in the builders as .onInteract needs no return value anymore
-
Changed "targetEntity" context to "entity" in .isInvulnerableTo method
- Added Tamable Mob Builder
- Added .onTamed override to new Tamable Mob Builder
- Added .tamableFood method to Tamable Mob Builder(similar to isFood method in animal builder)
- Added .tamableFoodPredicate method to Tamable Mob Builder(similar to isFoodPredicate method in animal builder)
- Added .tameOverride method to Tamable Mob Builder used to determine the uuid to set when the mob is tamed
- Changed .onInteract to a Consumer with no InteractionResult return value needed
- Added .tickDeath method override to entity builders
- Added .canBeLeashed override to entity builders
- Improved .isMoving() method in Arrow builder
- Added .isMoving() method to the arrow entity for easier calculations when the arrow is not moving
- Removed isControlledByLocalInstance override because it's a core method with travel conflicts
- Fixed travel method override to default to super if not on the entity as a mount (this also fixes the mob not being able to move when unmounted even when pathfinding)
- Improved ProbeJS typings
- Various small fixes related to textures
- Hotfix for new keybinding registry crashing in server environment
-
Fixed loop types not being read in triggerable animations
-
Added travel method override
-
Added .cansteer method override to allow controlling of the entity while the player mounts them
-
Added .isControlledByLocalInstance method override
-
Added .defaultDeathPose method override
-
Fixed .defaultHitGroundSoundEvent method in arrow builder where it only played the default sound on block hit
-
Added .mountJumpingEnabled boolean in builders to enable experimental jumping logic along with a custom keybinding for it
- Fixed bug where if you had an item builder with no .texture field set it makes the item texture invisible
- Added .addTriggerableAnimationController to add a triggerable animation that can be called anywhere from the entity with the new .triggerAnimation method
- Added .addTriggerableAnimation to add a triggerable animation directly from a predicate controller
- Fixed various null builder bugs such as .renderatsqrdistance ect
- Projectile/Arrow builders will now auto-create an item on startup instead of having to specify it in the builder unless the .noItem() method is used
- Fixed Arrow/Projectile item texture locations defaulting to kubejs every time even if another namespace is specified.
-
Ported to 1.20.1
-
Removed deprecated methods .rideableUnderwater & .canCutCorner
-
We now use Geckolib as our animation engine in 1.20.1 because it has Oculus Fix and is a supported version
-
Changed getAmbientSound to setAmbientSound
-
Improved ProbeJS typings
-
Added .canCollideWith method to LivingEntity/Mob/Animal builders
-
Changed getBreedOffspring to setBreedOffspring and made it a callback function