Mojira Archive
MCPE-151381

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

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.

Unresolved

[Mod] tryashtar

2021-12-29, 11:59 PM

2022-07-13, 12:07 PM

2

1

Confirmed

701525, 776289

1.19.0.21 Preview, 1.18.2 Hotfix

1.19.10.22 Preview