Uploaded image for project: 'Minecraft (Bedrock codebase)'
  1. Minecraft (Bedrock codebase)
  2. MCPE-164580

No content log warning when using an invalid loot table condition

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • None
    • 1.19.41, 1.20.40.22 Preview, 1.20.30
    • None
    • Confirmed
    • Windows
    • 938331

      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.

            tryashtar [Mod] tryashtar
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              CHK: