Denizen Script Commands


Commands are always written with a '-' before them, and are the core component of any script, the primary way to cause things to happen.
Learn about how commands work in The Beginner's Guide.


Showing 1 out of 184 commands...
NameSign
Syntaxsign (type:{automatic}/sign_post/wall_sign) (material:<material>) [<line>|...] [<location>] (direction:north/east/south/west)
Short DescriptionModifies a sign.
Full DescriptionModifies a sign that replaces the text shown on it. If no sign is at the location, it replaces the location with the modified sign.

Specify 'automatic' as a type to use whatever sign type and direction is already placed there.
If there is not already a sign there, defaults to a sign_post.

Optionally specify a material to use. If not specified, will use an oak sign (unless the block is already a sign, and 'type' is 'automatic').

The direction argument specifies which direction the sign should face.
If a direction is not specified, and there is not already a sign there for 'automatic', the direction defaults to south.
If a sign_post is placed, you can specify any specific blockface value as the direction, eg "SOUTH_WEST".
See also Tag:MaterialTag.valid_directions (test in-game for example via "/ex narrate <material[oak_sign].valid_directions>").
Related Tags<LocationTag.sign_contents> Returns a list of lines on a sign.
Usage Example
# Use to edit some text on an existing sign.
- sign "Hello|this is|some|text" <context.location>
Usage Example
# Use to show the time on a sign and ensure that it points north.
- sign "I point|North.|System Time<&co>|<util.time_now.formatted>" <[location]> direction:north
Usage Example
# Use to place a new wall_sign regardless of whether there is already a sign there.
- sign type:wall_sign "Player<&co>|<player.name>|Online Players<&co>|<server.online_players.size>" <player.location>
Groupworld
Sourcehttps://github.com/DenizenScript/Denizen/blob/dev/plugin/src/main/java/com/denizenscript/denizen/scripts/commands/world/SignCommand.java#L29