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

Various schema value errors in loot tables are ignored by minecraft

XMLWordPrintable

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

      The bug

      Most files in behavior packs produce content log warnings when data is of the wrong type. This is not the case for loot tables.

      How to reproduce

      1. Download and open the attached world
      2. Kill the pigs named "value"

      Expected result
      Content log errors for:
      Root should be of type object, not string
      pools should be of type list, not string
      pools entries should be of type object, not string
      rolls should be of type float, not string
      entries should be of type list, not string
      conditions should be of type list, not string
      entries entries should be of type object, not string
      type should be of type string, not int
      name should be of type string, not int
      weight should be of type int, not string
      quality should be of type int, not string
      pools (in an entry) should be of type list, not string
      functions should be of type list, not string
      conditions entries should be of type object, not string
      condition should be of type string, not int
      functions entries should be of type object, not string
      function should be of type string, not int

      Actual result
      Only the errors marked above have respective content log errors. The remaining invalid data is loaded.

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

              Created:
              Updated:
              CHK: