Skip to content
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

Explosion Knockback Event #770

Open
LeScooter opened this issue Apr 2, 2024 · 0 comments · May be fixed by #1017
Open

Explosion Knockback Event #770

LeScooter opened this issue Apr 2, 2024 · 0 comments · May be fixed by #1017
Assignees
Labels
enhancement New (or improvement to existing) feature or request

Comments

@LeScooter
Copy link

LeScooter commented Apr 2, 2024

The goal of this event is to allow creators to cancel or alter the amount of knockback that is applied by an explosion. A specific use-case that I am experiencing is that I want to prevent knockback from being applied to players when a grenade from my mod explodes.

The knockback is applied via the Explosion instance itself, within Explosion.java, specifically in the explode() method.

There is already an ExplosionEvent class, which holds a sub-class for the explosion detonation. Perhaps a new Explosion.Knockback event could exist within this class?

@LeScooter LeScooter added the enhancement New (or improvement to existing) feature or request label Apr 2, 2024
@TelepathicGrunt TelepathicGrunt self-assigned this May 27, 2024
TelepathicGrunt added a commit to TelepathicGrunt/NeoForge that referenced this issue May 27, 2024
@TelepathicGrunt TelepathicGrunt linked a pull request May 27, 2024 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New (or improvement to existing) feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants