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 2484 tags...
Name<MapTag.get[<key>|...]>
ReturnsObjectTag
DescriptionReturns the object value at the specified key.
If a list is given as input, returns a list of values.
Example
# Narrates '2'
- narrate <map[a=1;b=2;c=3].get[b]>
Example
# Demonstrates that list input gives list output - narrates '2' then '3'
- foreach <map[a=1;b=2;c=3].get[b|c]> as:value:
    - narrate "One of the values is <[value]>"
Sourcehttps://github.com/DenizenScript/Denizen-Core/blob/master/src/main/java/com/denizenscript/denizencore/objects/core/MapTag.java#L583