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

EntityKnockbackEvent not firing for other TNT when a TNT explodes #10452

Open
JeroenoBoy opened this issue Apr 24, 2024 · 2 comments
Open

EntityKnockbackEvent not firing for other TNT when a TNT explodes #10452

JeroenoBoy opened this issue Apr 24, 2024 · 2 comments
Labels
status: needs triage type: bug Something doesn't work as it was intended to. version: 1.20.4 Game version 1.20.4

Comments

@JeroenoBoy
Copy link

Expected behavior

I expect the EntityKnockbackEvent to also fire when a primed TNT pushes another primed TNT
Additionally, it would also be nice if there was an EntityExplodedEvent#getEntityList()

Observed/Actual behavior

The event does not fire when event.getHitBy() and event.getEntity() are both TNTPrimed

Steps/models to reproduce

Build a simple cannon like so:
image

Add the following EventListener:

public class TestListener implements Listener {
    public void onEntityKnockback(EntityKnockbackByEntityEvent event) {
        Bukkit.broadcastMessage("HitBy: " + event.getHitBy().getType() + " Entity: " + event.getEntity().getType());
    }
}

Shoot the cannon

Plugin and Datapack List

FAWE, kotlin-stdlib, LuckPerms, PlaceholderAPI, PlugManX, spark, CustomPlugin

Paper version

[14:46:40 INFO]: This server is running Paper version git-Paper-493 (MC: 1.20.4) (Implementing API version 1.20.4-R0.1-SNAPSHOT) (Git: a6b6ecd)
You are running the latest version
Previous version: git-Paper-485 (MC: 1.20.4)

Other

No response

@JeroenoBoy JeroenoBoy added status: needs triage type: bug Something doesn't work as it was intended to. labels Apr 24, 2024
@electronicboy
Copy link
Member

public void onEntityKnockback(EntityKnockbackByEntityEvent event) {

which import is that?

@electronicboy
Copy link
Member

nvm, that's the paper one, can tell with the method call on it

@kashike kashike added the version: 1.20.4 Game version 1.20.4 label Apr 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status: needs triage type: bug Something doesn't work as it was intended to. version: 1.20.4 Game version 1.20.4
Projects
Status: 🕑 Needs Triage
Development

No branches or pull requests

3 participants