Add PreEntityDamageEvent for modifying damage before vanilla damage calculation
Nobody has claimed this yet.
- Dominant language
- Java
- Stars
- 12.7k
- Forks
- 3.5k
- Avg merge
- 3d 13h
- Merged PRs (30d)
- 11
Description
Is your feature request related to a problem?
I want to make the wind charge damage higher, but set damage in EntityDamageEvent is just setting the damage after vanilla calculations like armor, enchantments etc.
Describe the solution you'd like.
Add an event like "PreEntityDamageEvent" where you can set the damage when the damage source is built, all vanilla damage calculations after that are normally processed
Describe alternatives you've considered.
many hacks
Other
No response
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 by reviewing the existing EntityDamageEvent and the damage-source construction and vanilla damage-calculation flow. Determine where a pre-calculation event could expose adjustable damage while preserving subsequent armor and enchantment processing. Done means the proposed event is integrated and its behavior is covered by relevant tests.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java
- Domain
- api, backend-api-design
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100