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

Non-JSON object in entity components/component_groups crashes minecraft

    XMLWordPrintable

Details

    • Bug
    • Status: Reopened
    • Resolution: Unresolved
    • 1.18.10.27 Beta, 1.18.2 Hotfix
    • None
    • Confirmed
    • Windows
    • 700967

    Description

      How to reproduce

      Create this entity file in a behavior pack

      {
         "format_version": "1.17.20",
         "minecraft:entity": {
            "description": {
               "identifier": "test:crash"
            },
            "components": "crash",
            "component_groups": {
               "crash": "yes"
            }
         }
      }
      

      Then load the world

      Expected behavior

      • Content log error informing you that the "components" field should be an object instead of a string
      • Content log error informing you that the "crash" component group should be an object instead of a string

      Actual behavior
      Game crashes

      Attachments

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                CHK: