Anchor Aura rewrite
Type of change
- [ ] Bug fix
- [x] New feature
Description
- Completely overhauls Anchor Aura, with massive improvements.
This new anchor aura is similar to Crystal Aura in functionality- it finds the most optimal area around the target by using the blockiterator. Previously it would choose from a list of pre-set offsets, which was very shoddy.
New settings have been added so that the Anchor Aura can be configured depending on the server's level of anti-cheat.
-
Air PlaceIf the server doesn't allow air placement, it can be turned off. -
Walls RangeAllows for raycasting to affect where anchors can be placed/broken. -
PlaceAutomatic placement can be turned off so that the anchor aura is used only to break any anchors you place manually.
Related issues
resolves #5088, and somewhat addresses #2930
How Has This Been Tested?
https://github.com/user-attachments/assets/efdf9a45-bc0c-4997-8341-21e919783cad
Checklist:
- [x] My code follows the style guidelines of this project.
- [x] I have added comments to my code in more complex areas.
- [x] I have tested the code in both development and production environments.
Drafted as I need to add in proper configurable delays between placing the anchor -> inputting glowstone -> breaking the anchor. ATM inputting glowstone and breaking the anchor is attempted on the same tick, which can flag anti-cheats and cause the player to be disconnected.
https://github.com/user-attachments/assets/55c6b4e3-e57c-4119-92a7-96ee4d028515
after the fixes, anchor aura now performs flawlessly on servers. heres a demonstration on constantiam.net
Updated to 1.21.8, waiting for review
i ran a test on it and it works flawlessly