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 2487 tags...
Name<MapTag.with[<key>].as[<value>]>
ReturnsMapTag
DescriptionReturns a copy of the map, with the specified key set to the specified value.
Matching keys will be overridden.
Example
# Narrates a map of '[a=1;b=2;c=3;d=4]'
- narrate <map[a=1;b=2;c=3].with[d].as[4]>
Example
# Demonstrates matching key overriding - narrates a map of '[a=1;b=2;c=4]'
- narrate <map[a=1;b=2;c=3].with[c].as[4]>
Sourcehttps://github.com/DenizenScript/Denizen-Core/blob/master/src/main/java/com/denizenscript/denizencore/objects/core/MapTag.java#L729