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

Various schema value errors in entity JSON files are ignored by minecraft

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • 1.19.10.22 Preview
    • 1.19.0.21 Preview, 1.18.2 Hotfix
    • None
    • Confirmed
    • Windows
    • 701525, 776289

      How to reproduce

      Create these entity files in a behavior pack

      {
         "format_version": "1.17.20",
         "minecraft:entity": {
            "description": {
               "identifier": "test:invalid_values1",
               "is_summonable": "invalid"
            },
            "component_groups": "invalid",
            "events": "invalid"
         }
      }
      
      {
         "format_version": "1.17.20",
         "minecraft:entity": {
            "description": {
               "identifier": "test:invalid_values2"
            },
            "components": {
               "minecraft:physics": "invalid"
            },
            "events": {
               "test1": "invalid",
               "test2": {
                  "add": {
                     "component_groups": "invalid"
                  }
               }
            }
         }
      }
      

      Then load the world

      Expected behavior
      6 content log errors:

      • is_summonable should be of type bool, not string Fixed in 1.19.10
      • component_groups should be of type object, not string Fixed in 1.19.10
      • events should be of type object, not string Fixed in 1.19.10
      • minecraft:physics should be of type object, not string
      • test1 event should be of type object, not string Fixed in 1.19.10
      • component_groups (inside of add) should be of type list, not string

      Actual behavior
      No content log errors are displayed, the invalid data is loaded.

      Notes
      The vanilla behavior pack contains these kinds of schema errors.

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

              Created:
              Updated:
              CHK: