#Reach and knockback
20 messages · Page 1 of 1 (latest)
Once your ticket has been resolved, please close it with </ticket close:1054771505520717835> command!
You can give them reach and knockback attributes
{How?}
This is what I've got (so far)
Startup
EntityJSEvents.attributes(event => {
event.modify('minecraft:cow', attribute => {
attribute.add("minecraft:generic.attack_damage", 6)
})
})
Server
EntityJSEvents.addGoals("minecraft:cow", event => {
event.hurtByTarget(1, [], false, [])
})
EntityJSEvents.addGoalSelectors('minecraft:cow', e => {
e.meleeAttack(0, 1, true)
})
the same way you added the attack dmg attribute
just with the reach and knockback attributes
the attack knockback one there
I can't actually see a reach attribute there...
but there is definitely knockback
GitHub
Contribute to liopyu/EntityJS development by creating an account on GitHub.
Thanks
np
I was able to give them knockback, which is better than non
I guess reach will be out of my reach
hah
"Skemech would then go on to die of a ketamine overdose"