Skip to content

[Suggestion] Escape Characters in String Iota NBT Representation #22

@Master-Bw3

Description

@Master-Bw3

Line breaks are represented as a literal newline character in NBT, making it impossible to represent strings containing line breaks in commands since SNBT doesn't support \n.

It would make much more sense to represent strings in the same way as other text-containing items like written books, which escape characters like newlines and \ in their nbt.

how string iotas represent a string containing a line break:

{"hexcasting:type": "moreiotas:string", "hexcasting:data": "
"}

how written books represent a string containing a line break:

'{"text":"\\n"}'

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