Mojira Archive
MC-95490

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

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.

Invalid

Marcono1234

2016-01-11, 01:32 PM

2020-02-16, 02:03 AM

2020-02-16, 02:03 AM

2

1

Confirmed

(Unassigned)

error-message, log, loot, loot-table

Minecraft 15w51b - Minecraft 1.12.2Minecraft 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

-