MixedList
ModMIT

MixedList

A mod that allows you to use mixed types in SNBT lists.

70
Downloads
0
Followers
1 years ago
Updated
📦
1
Versions

📖About MixedList

This is a mod that allows you to use mixed types in SNBT lists and converts them appropriately. All of this is still compatible with the existing NBT specification, which only allows one type in lists. Converting NBT back to SNBT also supports multiple types in lists, which is visible in for example the /data get command.

Examples:

[
  "part 1, ",
  {
    text: "part 2, ",
    color: "red"
  },
  "part 3"
]
[
  true,
  123,
  "a real string",
  {
    maps: "ftw"
  },
  [
    "remove nbt",
    "but not this list"
  ]
]