Mojira Archive
MCPE-164580

No content log warning when using an invalid loot table condition

The bug

Invalid loot table functions produce a content log error:

[Components][error]-Unsupported looting function: does_not_exist

However, invalid loot table conditions do not.

How to reproduce

1. Download and open the attached world
2. Kill a creeper

Expected results
Content log error for invalid function and condition

Observed results
Only an error for the invalid function, none for the condition

Relevant loot table

{
   "pools": [
      {
         "rolls": 1,
         "conditions": [{
               "condition": "does_not_exist"
            }],
         "entries": [
            {
               "functions": [{
                     "function": "does_not_exist"
                  }],
               "type": "item",
               "name": "minecraft:porkchop",
               "weight": 1
            }
         ]
      }
   ]
}

Notes

Fixing this will reveal that vanilla uses invalid loot table conditions in some files.

Unresolved

[Mod] tryashtar

2022-11-26, 01:24 AM

2023-09-26, 01:57 AM

0

0

Confirmed

938331

1.19.41, 1.20.40.22 Preview, 1.20.30

-