Uploaded image for project: 'Minecraft (Bedrock codebase)'
  1. Minecraft (Bedrock codebase)
  2. MCPE-151380

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

    XMLWordPrintable

Details

    • Confirmed
    • Windows
    • 701494

    Description

      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

      Attachments

        Issue Links

          Activity

            People

              tryashtar [Mod] tryashtar
              Votes:
              1 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:
                CHK: