When switching from an item with attributes to the same without, player keeps these attributes.
Steps to reproduce
- Get an item with attributes
- Get the same item without attributes
- Put them both in hotbar
- Select air with number pad
- Select the item with attribute using number pad
- Select the item without attributes using number pad
- Observe that the attributes still works, while on Paper they don't
Used items:
- minecraft:totem_of_undying (no attributes)
/minecraft:give @p minecraft:totem_of_undying{AttributeModifiers:[{AttributeName:"generic.max_health",Amount:24.0,Name:"generic.max_health",UUID:[I;-121616,31938,163539,-63876]}]}