#Startup event to get attack target
19 messages · Page 1 of 1 (latest)
Send your code here instead of a screenshot
It makes it easier to diagnose your code and help you fix it or make the required changes/additions.
You can find your KubeJS startup log in /minecraft/logs/kubejs/startup.log.
If you are on 1.18 or below it will be called startup.txt.
Please send it if asked, as it contains helpful information.
The last thing i ever found related to this was
const $EntityDamageSource = Java.loadClass(`net.minecraft.world.damagesource.EntityDamageSource`)
But it doesnt work anymore
So i dont know what else to rlly doo

Why would one want the entity attack in Startup-Events
maybe forge event, I guess
which mod
Its unreleased rn
💀
I guess the best way to describe it is similar to origins? it lets you make custom abilities and such for powers
Can't you just get player.getLastDamageSource()
I think you can use EntityEvents.hurt to do this?
I shall try this
Paste version of latest.log from @flat egret