Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix Completely non functional armor #518

Open
wants to merge 3 commits into
base: 1.21
Choose a base branch
from
Open

Conversation

BenCat07
Copy link

@BenCat07 BenCat07 commented Dec 3, 2024

  • Make Armor look up its slot on creation
  • Make Knockback resistance no longer hardcoded to main hand
  • Make Different Pieces or Armor give their respective armor Values instead of an average

This does NOT fix Crstalite Armor that was already crafted due to how infusion works.

Affected Pieces of equipment:

  • Terminite Armor
  • Thallasium Armor
  • Crystal Armor
  • Crystal Elytra

closes #514

- Make Armor look up its slot on creation
- Make Knockback resistance no longer hardcoded to main hand
- Make Different Pieces or Armor give their respective armor Values instead of an average

This does NOT fix Crstalite Armor that was already crafted due to how infusion works.

Affected Pieces of equipment:
- Terminite Armor
- Thallasium Armor
- Crystal Armor
- Crystal Elytra
@BenCat07
Copy link
Author

BenCat07 commented Dec 3, 2024

the changes to attribute IDs is because even when using AttributeModifier.Operation.ADD_VALUE, attributes do not stack unless they have different ids. Might need to apply this to BASE_KNOCKBACK_RESISTANCE too if anything else uses it.

@BenCat07
Copy link
Author

BenCat07 commented Dec 3, 2024

This also seems to not just affect 1.21, but alot of versions like 1.20.3 too.

@chengheipui
Copy link

so we have to change the code ourselves inorder to make it works?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants