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

1.21.1 issues for CmdAttribute - list/remove #35

Open
BlaneyXYZ opened this issue Aug 27, 2024 · 0 comments
Open

1.21.1 issues for CmdAttribute - list/remove #35

BlaneyXYZ opened this issue Aug 27, 2024 · 0 comments

Comments

@BlaneyXYZ
Copy link
Member

In 1.21.1 AttributeModifiers now use NamespacedKey rather than UUID.

Currently the method to add a modifier is

AttributeModifier(UUID uuid, String name, double amount, AttributeModifier.Operation operation, EquipmentSlot slot)

The new method is

AttributeModifier(NamespacedKey key, double amount, AttributeModifier.Operation operation, EquipmentSlotGroup slot)

This means we can add a modifier but then have no reference of what it actually is because getName() will now return the NamespacedKey

I have attached a screenshot of /attribute list between 1.21 and 1.21.1
1.21.1
1 21 1
1.21
1 21

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

No branches or pull requests

1 participant