mojira.dev
MCPE-151377

Non-JSON object in entity components/component_groups crashes minecraft

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

Linked issues

Attachments

Comments 2

Hi

Can you please explain how to reproduce this issue? Or attach behavior pack with with this entity.

This ticket will automatically reopen when you reply.

Added behavior pack. This behavior pack contains repros for MCPE-151377, MCPE-151378, MCPE-151379, MCPE-151380, MCPE-151385, MCPE-151381

tryashtar

(Unassigned)

700967

Confirmed

Windows

1.18.10.27 Beta, 1.18.2 Hotfix

1.19.0.21 Preview, 1.19.0.20 Beta, 1.19.0

Retrieved