Mojira Archive
MCPE-151380

Non-JSON object in entity event "add"/"remove" block crashes minecraft

How to reproduce

Create this entity file in a behavior pack

{
   "format_version": "1.17.20",
   "minecraft:entity": {
      "description": {
         "identifier": "test:crash_event"
      },
      "events": {
         "crash": {
            "add": "crash"
         }
      }
   }
}

Then load the world

Expected behavior
Content log error informing you that the "add" field should be an object instead of a string

Actual behavior
Game crashes

Fixed

[Mod] tryashtar

2021-12-29, 11:57 PM

2022-06-07, 06:01 PM

2022-06-07, 06:01 PM

1

1

Confirmed

701494

1.18.10.27 Beta, 1.18.2 Hotfix

1.19.0.21 Preview, 1.19.0.20 Beta, 1.19.0