-
Bug
-
Resolution: Invalid
-
None
-
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
-
Confirmed
-
(Unassigned)
Relates to:
MC-91061: Probably caused by the fix
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
- Use the following command
/setblock ~ ~ ~ chest 0 replace {LootTable:"invalid"}
- Open the chest
→ The error is printed in the log: "Couldn't find resource table minecraft:invalid" - Use the following command
/setblock ~ ~ ~ chest 0 replace {LootTable:"invalid2."}
- 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.
- is blocked by
-
MC-121589 No error message when loot table does not exist
- Open