EntityShootBowEvent not cancelling crossbow shooting properly
Nobody has claimed this yet.
- Dominant language
- Java
- Stars
- 12.7k
- Forks
- 3.5k
- Avg merge
- 3d 13h
- Merged PRs (30d)
- 11
Description
What behaviour is expected:
What you expected to see
A charged/loaded crossbow should remain charged/loaded with the arrow after a player rightclicks/attempts to shoot with it.
What behaviour is observed:
What you actually saw
The charged crossbow becomes uncharged (not loaded with an arrow).
Steps/models to reproduce:
This may include a build schematic, a video, or detailed instructions to help reconstruct the issue
Cancel the EntityShootBowEvent (calling event.setConsumeItem(false) has no effect), and try to shoot with a loaded crossbow.
Plugin list:
A list of your plugins
Paper version:
Paste the output of running /version on your server WITH the Minecraft version. latest is not a version; we require the output of /version so we can properly track down the issue.
[20:19:14 INFO]: This server is running Paper version git-Paper-325 (MC: 1.16.4) (Implementing API version 1.16.4-R0.1-SNAPSHOT)
[20:19:14 INFO]: Previous version: git-Paper-174 (MC: 1.16.2)
Anything else:
Anything else you think may help us resolve the problem
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start at the EntityShootBowEvent handling and the crossbow shooting path, reproducing the issue by cancelling the event for a loaded crossbow. Verify that cancelling the event leaves the crossbow charged and preserves its arrow, and confirm that event.setConsumeItem(false) does not change the result.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java
- Domain
- api, backend
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 42/100