When adding animations, the game crashes when I look at the entity. This is code and logs.
StartupEvents.registry('entity_type', event => {
event.create('void_turret', 'entityjs:mob') // AgeableMob Builder
.addAnimationController('exampleController1', 5, event => {
event.addTriggerableAnimation('spawn', 'spawning', 'default')
.onAddedToWorld(entity => {
entity.triggerAnimation('exampleController1', 'spawning')
})
})
})