#Change mobs attack damage

5 messages · Page 1 of 1 (latest)

mental spruceBOT
#

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

steel badge
#

Simply can't figure out how to change the attack damage an existing mob does

#

this is where im at with my script

EntityEvents.checkSpawn(event => {
    var entity = event.getEntity()
    //Stop the script if the entity that will spawn is above y=0 and isn't one of the listed entities
    if(entity.y >= 1 && entity.entityType != ["minecraft:zombie", "minecraft:skeleton"]) {
        return
    }
    //50% of the zombies that spawn (below y=1) will...
    if (entity.entityType == 'minecraft:zombie' && Math.random() > 0.5) {
        entity.setCustomName('Denizen')
        entity.setMovementSpeedAddition(0.1)
        entity.setMaxHealth(entity.getMaxHealth() * 2)
        entity.setHealth(entity.maxHealth)
    }

})```
#

just want to up the attack damage of the zombie as well

#

figured it out with entityJS