#how do i customize entity armor with EntityJS?

15 messages · Page 1 of 1 (latest)

neon sedge
#

i want to buff a ton of monsters in my modpack that im making and i dont know how to edit armor properties for monsters

rose yarrowBOT
#

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

tacit dawn
#

I summon thee @alpine wharf

alpine wharf
#

i've risen yet again

alpine wharf
neon sedge
#

thanks ❤️

alpine wharf
#

yup, you can also do this dynamically via the entity spawned server event js EntityEvents.spawned(event => { let /** @type {Internal.LivingEntity} */ entity = event.entity if (entity.type == "minecraft:allay") { entity.setMaxHealth(30) entity.setHealth(30) entity.getAttribute("minecraft:generic.armor").setBaseValue(10) entity.getAttribute("minecraft:generic.armor_toughness").setBaseValue(2) } })

tacit dawn
alpine wharf
#

yup, a list is also possible

neon sedge
#

is there another way i can directly override entity health on startup

#

without adding to its base stats

neon sedge
#

with further research

#

it seems it already does that

alpine wharf
#

yup, modifies the attributes directly

fossil urchinBOT
#

Please close your ticket (with </ticket close:1054771505520717835> or the button atop this thread) once you resolved your issue!
This also helps others that would like to help out, as they don't have to look into this thread to check if it has been resolved by now.

Do you have any other questions regarding your issue? Feel free to ask!
Note: You should create a new post for unrelated issues.