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 2437 tags...
Name<LocationTag.slot[<vector>]>
ReturnsElementTag(Number)
DescriptionReturns the appropriate slot based on a given point along the bookshelves' surface relative to its position.
It will return 0 if the given vector is not within the bounds of any slot.
See also Tag:EntityTag.bookshelf_slot
Example
# Obtain and narrate the slot that the player right-clicked.
on player right clicks chiseled_bookshelf:
- define slot <player.eye_location.ray_trace.sub[<context.location>]>
- narrate <context.location.slot[<[slot]>]>
Sourcehttps://github.com/DenizenScript/Denizen/blob/dev/plugin/src/main/java/com/denizenscript/denizen/objects/LocationTag.java#L4481