Paper icon indicating copy to clipboard operation
Paper copied to clipboard

Wind charge does not trigger ProjectileLaunchEvent

Open agusmeroli opened this issue 9 months ago • 2 comments

Expected behavior

Thowing a wind charge should trigger a ProjectileLaunchEvent, as does throwing a snowball or an ender pearl, which are all projectiles.

Observed/Actual behavior

The ProjectileLaunchEvent is not triggered, only the parent EntitySpawnEvent is triggered. Despite being a projectile.

Steps/models to reproduce

  • Create a plugin which prints something on ProjectileLaunchEvent and EntitySpawnEvent
  • Throw a wind charge
  • Only EntitySpawnEvent is triggered

Plugin and Datapack List

Bukkit Plugins:

  • CoreProtect (which has a listener for ProjectileLaunchEvent)
  • Custom plugin

Datapacks:

  • None

Paper version

1.21.11-99-81b9122 (MC: 1.21.11)

Other

No response

agusmeroli avatar Feb 22 '26 18:02 agusmeroli

[13:42:17 INFO]: [Paper-Test-Plugin] org.bukkit.event.entity.ProjectileLaunchEvent@1b43558a[cancelled=false,cancelled=false,entity=CraftWindCharge{uuid=91da874b-22f4-44f6-a3e4-f551a859b232},isAsync=false,name=]

cannot reproduce

electronicboy avatar Feb 23 '26 13:02 electronicboy

Same here tested with ProjectileLaunchEvent and also PlayerLaunchProjectileEvent and the two events are fired.

Doc94 avatar Feb 23 '26 13:02 Doc94