#How can I change an entity's hitbox and model size using EntityJS?

4 messages · Page 1 of 1 (latest)

night nacelle
#

I'm trying to make spiders small and harmless so they'd be more like props for a map, and I'm currently struggling with that.
I tried figuring out Pehkui but it doesn't use attributes like I assumed it would, and the .scale method doesn't do much.

EntityJSEvents.modifyEntity(event=>{
    event.modify('minecraft:spider', modify =>{
        modify.canAttack(context => false)
        modify.scale(entity => 0.1)
    })
})
turbid warrenBOT
#

Once your ticket has been resolved, please close it with </ticket close:1054771505520717835> command!

wide beacon
#

im fairly certain that running the scale command should shrink the hitbox, so it must be an issue with how you are trying to call it. Is modifyentity supposed to just always run as soon as it spawns?

night nacelle
#

It's a script for game startup, a startup_script