Skip to content

Add PlayerAttackEntityEvent #12388

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

Maxsh001
Copy link

@Maxsh001 Maxsh001 commented Apr 6, 2025

Improved from #12319

@Maxsh001 Maxsh001 requested a review from a team as a code owner April 6, 2025 15:13
@github-project-automation github-project-automation bot moved this to Awaiting review in Paper PR Queue Apr 6, 2025
@Maxsh001 Maxsh001 mentioned this pull request Apr 6, 2025
@dawon
Copy link
Contributor

dawon commented Apr 8, 2025

I am not sure whether the knockback should be part of the enum. IMO you can crit & knockback and sweep & knockback... Maybe a separate boolean?

@Maxsh001
Copy link
Author

Maxsh001 commented Apr 8, 2025

I am not sure whether the knockback should be part of the enum. IMO you can crit & knockback and sweep & knockback... Maybe a separate boolean?

In vanilla, a kb attack requires the player to be sprinting, and crit/sweep requires that the player is not sprinting. However, when you do a kb attack, unlike crit/sweep, the normal attack sound effect is also played so I'm not really sure what vanilla is doing here (or what it's intending to do) but it kinda suggests the possibility. Also kb attacks don't involve extra particles or anything so it wouldn't be hard to implement.

@Maxsh001 Maxsh001 marked this pull request as draft April 8, 2025 10:39
@Maxsh001 Maxsh001 marked this pull request as ready for review April 8, 2025 22:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Awaiting review
Development

Successfully merging this pull request may close these issues.

2 participants