Hello,
I am writing this message out of desperation because I am extremely frustrated and upset. I have spent weeks creating a custom map, and now it seems like all my work is at risk due to this issue.
I am currently playing on Minecraft version 1.21.4, and I have encountered a serious problem regarding equipment stats.
Issue Explanation:
For example, let’s say I have a Netherite Axe and a Netherite Chestplate with the following additional stats:
• Netherite Axe:
• Defense: +25
• Health: +25
• Attack Damage: +20
• Netherite Chestplate:
• Defense: -20
• Health: -15
• Attack Damage: +400
Expected Behavior:
If I equip both the Netherite Axe and the Netherite Chestplate, my final stats should be:
• Defense: 25 - 20 = 5
• Health: 25 - 15 = 10
• Attack Damage: 20 + 400 = 420
Actual Behavior (Bug):
However, what actually happens is only the stats of the last equipped item are applied, while the stats of the previously equipped item are completely ignored.
• If I equip the Netherite Chestplate first and then equip the Netherite Axe, the Chestplate’s stats are completely ignored. Only the Axe’s stats are applied (Defense: 25, Health: 25, Attack Damage: 20).
• If I equip the Netherite Axe first and then equip the Netherite Chestplate, the Axe’s stats are ignored. Only the Chestplate’s stats are applied (Defense: -20, Health: -15, Attack Damage: 400).
I initially thought this issue only occurred on a Bukkit server, but I tested it in single-player mode and even on a completely new map—the issue persists in all cases.
This is extremely frustrating, and I feel like all my hard work has gone to waste. Is there any way to fix this bug? Or do I have to wait for a future version where this issue is resolved?
For reference, here are the commands I used to obtain the Netherite Axe and Netherite Chestplate:
[Insert Commands Here]
Please let me know if this is a known bug and whether there is a possible fix. Thank you for your time!
Environment
[netherite_axe]
/give @p netherite_axe[attribute_modifiers=[{id:"armor",type:"armor",amount:25,operation:"add_value"},{id:"max_health",type:"max_health",amount:25,operation:"add_value"},{id:"attack_damage",type:"attack_damage",amount:20,operation:"add_value"}]] 1
[netherite_chestplate]
/give @p netherite_chestplate[attribute_modifiers=[{id:"armor",type:"armor",amount:-20,operation:"add_value"},{id:"max_health",type:"max_health",amount:-15,operation:"add_value"},{id:"attack_damage",type:"attack_damage",amount:400,operation:"add_value"}]] 1
If two attribute modifiers are different from each other then they need to have different IDs.