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

Invalid Loot Table names containing periods (".") do not create error message

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Open
    • Resolution: Unresolved
    • Affects Version/s: Minecraft 15w51b, Minecraft 1.9.3 Pre-Release 3, Minecraft 16w38a, Minecraft 1.11, Minecraft 1.11.2, Minecraft 1.12.1, Minecraft 1.12.2
    • Fix Version/s: None
    • Confirmation Status:
      Confirmed

      Description

      Relates to:

      The bug

      When you provide a LootTable name with a period the game is unable to find a loot table but does not print an error indicating this.

      How to reproduce

      1. Use the following command
        /setblock ~ ~ ~ chest 0 replace {LootTable:"invalid"}
        
      2. Open the chest
        → The error is printed in the log: "Couldn't find resource table minecraft:invalid"
      3. Use the following command
        /setblock ~ ~ ~ chest 0 replace {LootTable:"invalid2."}
        
      4. Open the chest
        → No error message is printed

      The reason

      The following is based on a decompiled version of Minecraft 1.9 using MCP 9.24 beta.

      The reason for this is that the method net.minecraft.world.storage.loot.LootTableManager.Loader.load(ResourceLocation) only prints the error message

      Invalid loot table name '[LOOT_TABLE]' (can\'t contain periods)
      

      as debug message and not as error message.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                marcono1234 [Mod] Marcono1234
              • Votes:
                2 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  CHK: