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

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

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • None
    • 1.19.0.21 Preview, 1.18.2 Hotfix
    • None
    • Confirmed
    • Windows
    • 701181

      How to reproduce

      Create this entity file in a behavior pack

      {
         "format_version": "1.17.20",
         "invalid_key": {
            "caught": false
         },
         "minecraft:entity": {
            "description": {
               "identifier": "test:invalid_keys",
               "invalid_key": {
                  "caught": false
               }
            },
            "invalid_key": {
               "caught": false
            },
            "components": {
               "minecraft:physics": {
                  "invalid_key": {
                     "caught": true
                  }
               },
               "invalid_key": {
                  "caught": true
               }
            },
            "events": {
               "event": {
                  "add": {
                     "invalid_key": {
                        "caught": false
                     }
                  },
                  "invalid_key": {
                     "caught": true
                  }
               }
            }
         }
      }
      

      Then load the world

      Expected behavior
      7 content log errors:

      • invalid_key not valid in top level of file
      • invalid_key not valid in minecraft:entity
      • invalid_key not valid in minecraft:entity > description
      • invalid_key not valid in minecraft:entity > components
      • invalid_key not valid in minecraft:entity > components > minecraft:physics
      • invalid_key not valid in minecraft:entity > events > event
      • invalid_key not valid in minecraft:entity > events > event > add

      Actual behavior
      Only 3 errors appear (the 3 I have marked above).

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

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

              Created:
              Updated:
              CHK: