Skip to content

Support for NBT List / JSON Array text component format #13

@wqj233

Description

@wqj233

MineJason currently does not support the "NBT List / JSON Array" format for text components.
According to the Minecraft wiki, text components can be:

  • [String] : simple string text
  • [NBT List / JSON Array] : list of components, where subsequent components are children of the first component
  • [NBT Compound / JSON Object] : full object representation

The [NBT List / JSON Array] format is equivalent to:
["A", "B", "C"]
which should translate to:
{ "text": "A", "extra": ["B", "C"] }

Currently, MineJason only seems to handle [String] and [NBT Compound / JSON Object], so components in array format are not parsed correctly.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions