#Startup event to get attack target

19 messages · Page 1 of 1 (latest)

pastel masonBOT
#

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

stark arrowBOT
#

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.

flat egret
#

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

dusty crescent
#

clermitdetective

Why would one want the entity attack in Startup-Events

flat egret
#

A mod i use has kubejs comp

#

And they load in startup

shadow gyro
#

which mod

flat egret
#

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

dusty crescent
#

Can't you just get player.getLastDamageSource()

shadow gyro
#

I think you can use EntityEvents.hurt to do this?

flat egret
flat egret
#

Hmm its just coming back as null no matter what

stark arrowBOT
#

Paste version of latest.log from @flat egret