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 8 out of 2487 tags...

Categories:

NPCTag | EntityTag | LocationTag | MaterialTag



Category: NPCTag


Name<NPCTag.hologram_direction>
ReturnsElementTag
MechanismNPCTag.hologram_direction
DescriptionReturns the direction of an NPC's hologram as "BOTTOM_UP" or "TOP_DOWN".
Generated Example
- narrate <npc.hologram_direction>
DeprecatedThis was removed from Citizens.
Sourcehttps://github.com/DenizenScript/Denizen/blob/dev/plugin/src/main/java/com/denizenscript/denizen/objects/NPCTag.java#L741



Category: EntityTag


Name<EntityTag.direction>
ReturnsLocationTag
MechanismEntityTag.direction
DescriptionReturns the movement/acceleration direction of a fireball entity, as a LocationTag vector.
Generated Example
- teleport <player> <player.direction>
Groupattributes
Sourcehttps://github.com/DenizenScript/Denizen/blob/dev/plugin/src/main/java/com/denizenscript/denizen/objects/properties/entity/EntityDirection.java#L53



Category: LocationTag


Name<LocationTag.direction[(<location>)]>
ReturnsElementTag
DescriptionReturns the compass direction between two locations.
If no second location is specified, returns the direction of the location.
Example returns include "north", "southwest", ...
Generated Example
- narrate <player.location.direction>
Groupmath
Sourcehttps://github.com/DenizenScript/Denizen/blob/dev/plugin/src/main/java/com/denizenscript/denizen/objects/LocationTag.java#L2156

Name<LocationTag.direction.vector>
ReturnsLocationTag
DescriptionReturns the location's direction as a one-length vector.
Groupmath
Sourcehttps://github.com/DenizenScript/Denizen/blob/dev/plugin/src/main/java/com/denizenscript/denizen/objects/LocationTag.java#L2166

Name<LocationTag.direction[<location>].yaw>
ReturnsElementTag(Decimal)
DescriptionReturns the yaw direction between two locations.
Groupmath
Sourcehttps://github.com/DenizenScript/Denizen/blob/dev/plugin/src/main/java/com/denizenscript/denizen/objects/LocationTag.java#L2183

Name<LocationTag.with_facing_direction>
ReturnsLocationTag
DescriptionReturns the location with its direction set to the block's facing direction.
Only works for block types that have directionality (such as signs, chests, stairs, etc.).
You can use <some_block_location.with_facing_direction.forward[1]> to get the block directly in front of this block (based on its facing direction).
Generated Example
- teleport <player> <player.location.with_facing_direction>
Groupworld
Sourcehttps://github.com/DenizenScript/Denizen/blob/dev/plugin/src/main/java/com/denizenscript/denizen/objects/LocationTag.java#L869



Category: MaterialTag


Name<MaterialTag.direction>
ReturnsElementTag
MechanismMaterialTag.direction
DescriptionReturns the current facing direction for a directional material (like a door or a bed).
This includes materials that Spigot classifies as "directional", "orientable", or "rotatable", as well as rails, dripstone, and jigsaw blocks.
Output is a direction name like "NORTH", or an axis like "X", or a rail direction like "ASCENDING_NORTH".
Generated Example
- narrate <material[stone].direction>
Groupproperties
Sourcehttps://github.com/DenizenScript/Denizen/blob/dev/plugin/src/main/java/com/denizenscript/denizen/objects/properties/material/MaterialDirectional.java#L111

Name<MaterialTag.valid_directions>
ReturnsListTag
MechanismMaterialTag.direction
DescriptionReturns a list of directions that are valid for a directional material.
See also Tag:MaterialTag.direction
Generated Example
- foreach <material[stone].valid_directions> as:entry:
    - narrate "found <[entry]>"
Groupproperties
Sourcehttps://github.com/DenizenScript/Denizen/blob/dev/plugin/src/main/java/com/denizenscript/denizen/objects/properties/material/MaterialDirectional.java#L64