How to get attackentityevent in 1.19.2? #857
Answered
by
Untrustedlife
Untrustedlife
asked this question in
Script-related questions
-
Hiya im trying to get the AttackEntityEnent buit it isnt under PlayerEvents, |
Beta Was this translation helpful? Give feedback.
Answered by
Untrustedlife
Jun 26, 2024
Replies: 1 comment 1 reply
-
I figured this out myself, instead of trying to use an attackevent (even though i see it exists, i just dont know how to get to it) i just did this |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
Untrustedlife
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I figured this out myself, instead of trying to use an attackevent (even though i see it exists, i just dont know how to get to it) i just did this
//No attackentity event to use EntityEvents.hurt(event => { if (event.source.player){ //Do things to player } })