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...
NameDebugBlock
Syntaxdebugblock [<location>|.../clear] (color:<color>) (name:<name>) (players:<player>|...) (d:<duration>{10s})
Short DescriptionShows or clears minecraft debug blocks.
Full DescriptionShows or clears minecraft debug blocks, AKA "Game Test Markers".
These are block-grid-aligned markers that are a perfect cube of a single (specifiable) transparent color, and stay for a specified duration of time or until cleared.
Markers can optionally also have simple text names.

If arguments are unspecified, the default color is white, the default player is the linked player, the default name is none, and the default duration is 10 seconds.

Note that on MC 1.21+ this has limitations (within Minecraft itself), namely:
- the color is always green.
- the duration is always 10 seconds.
- the name can only be a LocationTag and defaults to the debug block's location if unspecified.
- debug blocks can't be cleared.
Related TagsNone
Usage Example
# Use to show a debug block where the player is looking.
- debugblock <player.cursor_on>
Usage Example
# Use to show a transparent green debug block in front of the player for five seconds.
- debugblock <player.eye_location.forward[2]> color:0,255,0,128 d:5s
Usage Example
# Use to remove all debug blocks,
- debugblock clear
Synonyms (Search Aid)gametestmarker
Groupplayer
Sourcehttps://github.com/DenizenScript/Denizen/blob/dev/plugin/src/main/java/com/denizenscript/denizen/scripts/commands/player/DebugBlockCommand.java#L30