Mojira Archive
MCPE-151379

No content log warning when referencing a nonexistent component group/event

How to reproduce

Create this entity file in a behavior pack

{
   "format_version": "1.17.20",
   "minecraft:entity": {
      "description": {
         "identifier": "test:invalid_events"
      },
      "events": {
         "add": {
            "add": {
               "component_groups": ["does_not_exist"]
            }
         },
         "trigger": {
            "trigger": "does_not_exist"
         }
      }
   }
}

Then load the world

Expected behavior

  • A content log error informing you that the add event is invalid because there is no component group called does_not_exist on this entity
  • Another one informing you that the trigger event is also invalid because there is no event called does_not_exist on this entity

Actual behavior
No warnings, the events load successfully but do nothing.

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

Unresolved

[Mod] tryashtar

2021-12-29, 11:46 PM

2024-08-23, 09:40 PM

2

0

Confirmed

693244

1.19.0.21 Preview, 1.18.2 Hotfix, 1.21.30.24 Preview

-