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...
Nameworldedit
Syntaxworldedit [create_schematic/copy_to_clipboard/paste] (file:<file path>) (cuboid:<cuboid>) (position:<location>) (rotate:<#>) (undoable) (noair)
Short DescriptionControls schematics and clipboards in WorldEdit.
Full DescriptionControls schematics and clipboards in WorldEdit. You should almost always use Command:schematic instead of this.

The action can be create_schematic, copy_to_clipboard, or paste.

For 'paste':
Specify 'noair' to exclude air blocks.
Specify 'rotate' to rotate the schematic when pasting it.
Specify 'undoable' to attach the paste to the player's WorldEdit history which allows them to undo/redo.

For 'copy_to_clipboard':
Specify either a cuboid or a file.
The file path starts in the folder: /plugins/Denizen/schematics/

For 'create_schematic':
Either specify a cuboid, or the player's clipboard will be used.
Specify a file to save to.
Related Tags<PlayerTag.we_selection> Returns the player's current block area selection, as a CuboidTag, EllipsoidTag, or PolygonTag.
Usage Example
# Use to save a cuboid to a schematic.
- worldedit create_schematic file:<[filepath]> cuboid:<player.we_selection> position:<player.location>
Usage Example
# Use to copy a cuboid to a player's clipboard.
- worldedit copy_to_clipboard cuboid:<player.we_selection> position:<player.location>
Usage Example
# Use to load a schematic into a player's clipboard.
- worldedit copy_to_clipboard file:<[filepath]>
Usage Example
# Use to paste a schematic at a location
- worldedit paste file:<[filepath]> position:<player.location>
Usage Example
# Use to paste a schematic at a location with a player attached to the edit history.
- worldedit paste file:<[filepath]> position:<player.location> undoable noair rotate:90
GroupDepenizen
RequiresDepenizen, WorldEdit
Sourcehttps://github.com/DenizenScript/Depenizen/blob/master/src/main/java/com/denizenscript/depenizen/bukkit/commands/worldedit/WorldEditCommand.java#L44