mojira.dev

AmethystXx_

Assigned

No issues.

Reported

MC-271942 Attributes on armor enchantments are forced to have the same UUID, making them impossible to stack. Duplicate

Comments

Ok, so I've realized that this is a duplicate issue. Someone has already made a post about this, and it will eventually be fixed. I'm not really sure what to do with this post now, as I can't find a way to delete it, but for anyone who finds this, look at issue 271573 instead.

As Jiingy requested, here are the steps to reproduce the issue. 

Step 1: Be on Minecraft Java edition Snapshot 24w18a or higher.

Step 2: Make a datapack with an enchantments folder (I won't go into detail how to create a datapack in these instructions, but you can find tutorials/documentation online.)

Step 3: Create a custom enchantment that uses attributes, and is meant to work on multiple pieces of armor. You can use the one I have attached as an example. 

Step 4: Enchant multiple pieces of armor with the enchantment

Step 5: When you put them on, their effects don't stack. This is because all the attributes on the enchantment have the same UUID.

I believe this is not intended because the effects of enchanted items should be able to stack, regardless of the system they use to affect the player.

I did not include Min/Max cost in my custom enchantment's file because they shouldn't be needed for demonstration purposes, as this is not about actually enchanting the gear.

If you want me to upload a full datapack file rather than just an enchantment json, I can do that.

Thank you.

[media]