Skip to content

fix(zanite-equipment): Fix zanite buff calculations#857

Open
Liamth99 wants to merge 4 commits into
The-Aether-Team:1.21.8-developfrom
Liamth99:fix/Zanite-Buff
Open

fix(zanite-equipment): Fix zanite buff calculations#857
Liamth99 wants to merge 4 commits into
The-Aether-Team:1.21.8-developfrom
Liamth99:fix/Zanite-Buff

Conversation

@Liamth99

Copy link
Copy Markdown

fix(zanite-equipment): Fix Zanite buff calculations

Fixes Zanite tool buffs by modifying the BLOCK_BREAK_SPEED attribute instead of MINING_EFFICIENCY. Also changed the modifier operation from ADD_VALUE to ADD_MULTIPLIED_TOTAL to show a percentage change and simplify the calculation code. Also applied this change to the rest of the equipment for consistency.

Screenshot_20260314_173636

I wasnt sure on how the scaling was supposed to behave but ive set the buff to linearly interpolate between +0% and +100% (let me know what the actual intended behavior is and i'm happy to fix it). I briefly tried making the crossbow implement ZaniteWeapon to add the tooltip, but that caused melee damage to scale with durability, so I left it out but would technically work.

Heads up: This is my first time working with a Minecraft modding API (and Java), so apologies if I’ve made any incorrect assumptions on how this all works.


I agree to the Contributor License Agreement (CLA).

@Liamth99

Copy link
Copy Markdown
Author

OK, i also forgot about the pendant, which i've now updated now (and fixed the scaling). And i added an epsilon to the buff calculation so it still shows the +0% on a tool with full durability. So just need to fix the buff scaling and i think its done.

@bconlon1 bconlon1 moved this from Back Log to Review Requested in The Aether II Apr 15, 2026
@bconlon1 bconlon1 added the status/pending-review The issue references a pull request which is pending review. label May 1, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

status/pending-review The issue references a pull request which is pending review.

Projects

Status: Review Requested

Development

Successfully merging this pull request may close these issues.

2 participants