The bug
In previous version there used to be an error message when a loot table did not exist. In the latest versions this is no longer the case.
This affects all kinds of loot tables usages, including:
/loot
block loot tables
entity loot tables
How to reproduce
Use the following command
/setblock ~ ~ ~ chest{LootTable:"invalid"} replace
Open the chest
Look at the log
→ ❌ No error was logged
Code analysis
For 20w07a with Mojang names
net.minecraft.world.level.storage.loot.LootTables.get(ResourceLocation)
simply returns an empty loot table if the loot table is not found.
Linked issues
testing discovered 1
Comments 7
Affects 1.15.1
Can also be reproduced with the following command:
/loot give @s loot invalid
The chat prints "Dropped 0 items".
Sorry for the many edits of the report.
@@unknown, that is MC-165536, which might actually be the same underlying bug.
Affects 1.13-pre7. Please keep your issue updated.