Uploaded image for project: 'Minecraft: Java Edition'
  1. Minecraft: Java Edition
  2. MC-259382

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

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • 23w31a
    • 23w04a, 23w05a, 23w06a, 23w07a, 1.19.4 Pre-release 1, 1.19.4 Pre-release 2, 1.19.4 Pre-release 3, 1.19.4 Pre-release 4, 1.19.4 Release Candidate 1, 1.19.4 Release Candidate 2, 1.19.4 Release Candidate 3, 1.19.4, 23w12a, 23w13a, 23w14a, 23w16a, 23w17a, 23w18a, 1.20 Pre-release 1, 1.20 Pre-release 2, 1.20 Pre-release 4, 1.20 Pre-release 5, 1.20 Pre-release 6, 1.20 Pre-release 7, 1.20 Release Candidate 1, 1.20
    • None
    • Confirmed
    • Commands, Debug
    • Low
    • Expansion A

      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.

            gnembon [Mojang] Gnembon
            mattp_12 mattp_12
            Votes:
            12 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved:
              CHK: