#[Solved] How can I detect only when the player attack using playerSwingStart?
1 messages · Page 1 of 1 (latest)
why not use entityHitEntity or entityHurt?
because the player can hit in the air
can u rephrase what do u need?
detect the attack xd
playerStartSwing trigger when the player attack, place, break, etc.
oooh
so u need to detect if it hits air or entity?
both
yeah, I got it
well..
u can try using break, place, interact and other event to detect if the swing also detected one of them and if none of them were triggered, then the player hits air or entity
oh, so cancel the trigger of the playerSwingStart if the block afterEvents triggers first
good idea, thank you
idk if swing events triggers in the end, but u can always use system.runTimeout
yep! thank you
But that event has a property to see what triggered the swing
lol, really?
@mint plinth