Denizen Script Tags


Tags are always written with a <between these marks>, and are critical to scripts, as the primary way to read data.
Learn about how tags work in The Beginner's Guide.


Showing 1 out of 2454 tags...
Name<MapTag.to_list[(<separator>)]>
ReturnsListTag
DescriptionReturns a list of all key/value pairs in this map, separated by the specified separator symbol. If none is given, uses the slash '/' symbol.
Note that there is no escaping of the separator, so maps that have the separator in their keys will not be possible to convert back to a map.
Inverted by Tag:ListTag.to_map
Example
# Narrates "a/1", then "b/2", then "c/3"
- foreach <map[a=1;b=2;c=3].to_list> as:slashed:
    - narrate "<[slashed]>"
Sourcehttps://github.com/DenizenScript/Denizen-Core/blob/master/src/main/java/com/denizenscript/denizencore/objects/core/MapTag.java#L934