Encountering an issue when I use the "generic.maxHealth" attribute with an item in the Mainhand slot. When I add a negative value to subtract max health from a player holding it, nothing happens. I have tried doing a flat amount alongside a percentage amount (-2 for flat, -0.2 for percentage) but the issue still persists. I have also tried modifying the attribute slot to offhand and all but no success there.
I have tried modifying the UUID to see if there was any conflict with another item, but it seems that's not the case.
If anybody would like to see the command just in case, here it is;
/give @p slime_ball{display:{Name:'{"text":"item","color":"green","bold":true,"italic":false}',Lore:['{"text":"loreline"}']},AttributeModifiers:[{AttributeName:"generic.max_health",Name:"generic.max_health",Amount:-.2,Operation:1,UUID:[I;1812067452,-185448233,-2039145829,-575693722]}]} 1
Linked issues
duplicates 1
Comments 1

Thank you for your report!
We're tracking this issue in MC-180001, so this ticket is being resolved and linked as a duplicate.
If you would like to add a vote and any extra information to the main ticket it would be appreciated.
If you haven't already, you might like to make use of the search feature to see if the issue has already been mentioned.
Quick Links:
📓 Bug Tracker Guidelines – 💬 Community Support – 📧 Mojang Support
📓 Project Summary – ✍️ Feedback and Suggestions – 📖 Game Wiki
-- I am a bot. This action was performed automatically! The ticket was resolved by one of our moderators, and I left this message to give more information to you.