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...
NameDraw
Syntaxdraw [id:<id>] [pixel/rectangle/oval/image:<image>] (width:<width>) (height:<height>) (filled) [x:<x>] [y:<y>] (color:<color>)
Short DescriptionDraws on an image.
Full DescriptionDraws a pixel, shape, or image onto an image.

"id:" - the id of the image to draw on, see Command:Image.
"x:" and "y:" - the position that should be drawn on, see Language:Image positions.

For pixels or shapes:
"color:" - a ObjectType:ColorTag of the color to draw in.

For non-pixel shapes:
"width:" and "height:" - the size of the shape being drawn, required.
"filled" - whether the shape should be filled or just a border. optional, defaults to false.

And for images:
"image:" - the image to draw, required.
"width:" and "height:" - the size to rescale the image being drawn to, optional.
Related TagsNone
Usage Example
# Use to draw a single red pixel in the top left corner of an image.
- draw id:image pixel x:0 y:0 color:red
Usage Example
# Use to draw a purple 100x100 filled circle in the top left of an image.
- draw id:image oval x:0 y:0 width:100 height:100 color:purple filled
Usage Example
# Use to draw the image with the id 'star' into the image with id 'sky'.
- draw id:sky image:star x:50 y:50
Groupimage
Sourcehttps://github.com/DenizenScript/Denizen-Core/blob/master/src/main/java/com/denizenscript/denizencore/scripts/commands/core/DrawCommand.java#L16