When the player has an item with empty AttributeModifiers in their hand, the console is repeatedly spammed with the message
"Unable to create attribute: Modifier name cannot be empty."To test:
Use this command:
/give @p diamond_hoe 1 0 {AttributeModifiers:[{}]}or
/give @p diamond_hoe{AttributeModifiers:[{}]} 1Check console
Attachments
Comments 4
Expected behavior would probably be that the method net.minecraft.item.ItemStack.getAttributeModifiers(EntityEquipmentSlot) removes the invalid attribute.
The console spam seems to have stopped (just checked in 18w50a) but I'm not sure if there's perhaps some other syntax you could do to trigger it again. Potentially fixed
It looks like you have to hold the item in your hand (main- oder offhand) or wear it as armor.
This can be easily reproduced by hovering over them item as well.