Implement an option to disable Elytra while in combat #5
No reviewers
Labels
No labels
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
WildToastyMop/CombatLog!5
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "1.19.x-anti-elytra"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
This adds a functionality that prevent's you from using elytra in combat.
It adds two new config values.
First one,
disableElytraallows you to enable / disable the new feature.Disabled by default.
Second one,
attackerNoFlyis important when fighting with bows for example.You are flying on elytra, and you shoot another player. When arrow hits him there are two cases:
attackerNoFly=false: You can still fly on you elytra, until you land (stop flying) or until the other player damages you.attackerNoFly=true: You elytra gets diasbled mid fly, and you fall.I also needed to refactor the code in CombatCheck a bit, to make it usable, and I also removed few unnecesary casts.
Closes #3
Thank you!
Pull request closed