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 stringFixed in 1.19.10
component_groups should be of type object, not stringFixed in 1.19.10
events should be of type object, not stringFixed in 1.19.10- minecraft:physics should be of type object, not string
test1 event should be of type object, not stringFixed 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.