mojira.dev
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]
Failed to get element ResourceKey[minecraft:trim_pattern / minecraft:test]

or

Failed to get element ResourceKey[minecraft:trim_material / minecraft:diamon]
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}}
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.

Attachments

Comments 0

No comments.

mattp12

gnembon

Confirmed

Expansion A

Low

Commands, Debug

23w04a, 23w05a, 23w06a, 23w07a, 1.19.4 Pre-release 1, ..., 1.20 Pre-release 5, 1.20 Pre-release 6, 1.20 Pre-release 7, 1.20 Release Candidate 1, 1.20

23w31a

Retrieved