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_keynot valid in top level of file❌
invalid_keynot valid inminecraft:entity❌
invalid_keynot valid inminecraft:entity>description✔
invalid_keynot valid inminecraft:entity>components✔
invalid_keynot valid inminecraft:entity>components>minecraft:physics✔
invalid_keynot valid inminecraft:entity>events>event❌
invalid_keynot valid inminecraft: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.
Linked issues
relates to 1
Attachments
Comments 0
No comments.