Mojira Archive
MC-259382

Message "Failed to get element" is logged repeatedly when giving yourself armor with invalid trimming pattern or material

If you /give yourself a piece of armor with an invalid trimming pattern or trimming material, the log gets spammed with

Failed to get element ResourceKey[minecraft:trim_pattern / minecraft:test]

or

Failed to get element ResourceKey[minecraft:trim_material / minecraft:diamon] 

for as long as the item exists in the world, even if paused.

Example of a command:

give @p minecraft:diamond_helmet{Trim:{material:diamond, pattern: test}} 

Of course the pattern or material is invalid, but repeatedly giving this error seems unintentional to me.