WorldEdit commands: Difference between revisions

From RetroMC
Jump to navigation Jump to search
No edit summary
m (Formatting fix, Thanks chat gbt lmao)
 
Line 66: Line 66:
| //set || <block> || Set all blocks inside the selection region to a specified block.
| //set || <block> || Set all blocks inside the selection region to a specified block.
|-
|-
| //replace || <to-block> || || Replace all non-air blocks blocks inside the region.
| //replace || <to-block> || Replace all non-air blocks blocks inside the region.
|-
|-
| //replace || <from-block> <to-block> || || Replace all blocks of the specified block(s) with another block inside the region.
| //replace || <from-block> <to-block> || Replace all blocks of the specified block(s) with another block inside the region.
|-
|-
| //overlay || <block> || || Place a block on top of blocks inside the region.
| //overlay || <block> || Place a block on top of blocks inside the region.
|-
|-
| //walls || <block> || || Build the walls of the region (not including ceiling and floor).
| //walls || <block> || Build the walls of the region (not including ceiling and floor).
|-
|-
| //outline || <block> || || Build walls, floor, and ceiling.
| //outline || <block> || Build walls, floor, and ceiling.
|-
|-
| //smooth || [iterations] || || Smooth the selection's heightmap.
| //smooth || [iterations] || Smooth the selection's heightmap.
|-
|-
| //regen || || || Regenerate the selection region.
| //regen || || Regenerate the selection region.
|-
|-
| //move || [count] [direction] [leave-id] || || Move the selection's contents. A block can be specified to fill in the left over area.
| //move || [count] [direction] [leave-id] || Move the selection's contents. A block can be specified to fill in the left over area.
|-
|-
| //stack || [count] [direction] || || Stacks the selection.
| //stack || [count] [direction] || Stacks the selection.
<br>
<br>
|-
|-
! class="hl2" colspan="4"| [[WorldEdit/Clipboard|Clipboard]]
! class="hl2" colspan="4"| [[WorldEdit/Clipboard|Clipboard]]
|-
|-
| //copy || || || Copies the currently selected region. Be aware that it stores your position relative to the selection when copying.
| //copy || || Copies the currently selected region. Be aware that it stores your position relative to the selection when copying.
|-
|-
| //cut || || || Cuts the currently selected region.
| //cut || || Cuts the currently selected region.
|-
|-
| //paste || [-ao] [-a] || || Pastes the clipboard. If you paste with -a, air blocks are being ignored.
| //paste || [-ao] [-a] || Pastes the clipboard. If you paste with -a, air blocks are being ignored.
|-
|-
| //rotate || <angle-in-degrees> || || Rotate the clipboard.
| //rotate || <angle-in-degrees> || Rotate the clipboard.
|-
|-
| //flip || [dir] || || Flip the clipboard.
| //flip || [dir] || Flip the clipboard.
|-
|-
| //schematic or //schem || save <format> <filename> || || Save clipboard to .schematic.
| //schematic or //schem || save <format> <filename> || Save clipboard to .schematic.
|-
|-
| //schematic or //schem || load <format> <filename> || || Load .schematic to clipboard.
| //schematic or //schem || load <format> <filename> || Load .schematic to clipboard.
|-
|-
| //schematic  or //schem || list || || List all available schematics.
| //schematic  or //schem || list || List all available schematics.
|-
|-
| //schematic or schem || formats || || Display available schematic formats.
| //schematic or schem || formats || Display available schematic formats.
|-
|-
| /clearclipboard || || || Clear your clipboard.
| /clearclipboard || || Clear your clipboard.
|-
|-
! class="hl2" colspan="4"| [[WorldEdit/Generation|Generation]]
! class="hl2" colspan="4"| [[WorldEdit/Generation|Generation]]
|-
|-
| //hcyl || <block> <radius> [height] || || Create a vertical hollow cylinder.
| //hcyl || <block> <radius> [height] || Create a vertical hollow cylinder.
|-
|-
| //cyl || <block> <radius> [height] || || Create a vertical cylinder.
| //cyl || <block> <radius> [height] || Create a vertical cylinder.
|-
|-
| //sphere || <block> <radius> [raised?] || || Create a sphere.
| //sphere || <block> <radius> [raised?] || Create a sphere.
|-
|-
| //hsphere || <block> <radius> [raised?] || || Create a hollow sphere.
| //hsphere || <block> <radius> [raised?] || Create a hollow sphere.
|-
|-
| //pyramid || <block> <size> || || Create a pyramid.
| //pyramid || <block> <size> || Create a pyramid.
|-
|-
| //hpyramid || <block> <size> || || Create a hollow pyramid.
| //hpyramid || <block> <size> || Create a hollow pyramid.
|-
|-
| /forestgen || [size] [type] [density] || || Make a forest.
| /forestgen || [size] [type] [density] || Make a forest.
|-
|-
| /pumpkins || [size] || || Make a pumpkin forest
| /pumpkins || [size] || Make a pumpkin forest
<br>
<br>
|-
|-
! class="hl2" colspan="4"| [[WorldEdit/Utilities|Utilities]]
! class="hl2" colspan="4"| [[WorldEdit/Utilities|Utilities]]
|-
|-
| /toggleplace || || || Toggle between using pos #1 or your current position.
| /toggleplace || || Toggle between using pos #1 or your current position.
|-
|-
| //fill || <block> <radius> [depth] || || Fill a hole.
| //fill || <block> <radius> [depth] || Fill a hole.
|-
|-
| //fillr || <block> <radius> || || Fill a hole fully recursively.
| //fillr || <block> <radius> || Fill a hole fully recursively.
|-
|-
| //drain || <radius> || || Drain nearby water/lava pools.
| //drain || <radius> || Drain nearby water/lava pools.
|-
|-
| /fixwater || <radius> || || Level nearby pools of water.
| /fixwater || <radius> || Level nearby pools of water.
|-
|-
| /fixlava || <radius> || || Level nearby pools of lava.
| /fixlava || <radius> || Level nearby pools of lava.
|-
|-
| /removeabove || [size] [height] || || Remove blocks above your head.
| /removeabove || [size] [height] || Remove blocks above your head.
|-
|-
| /removebelow || [size] [height] || || Remove blocks below your feet.
| /removebelow || [size] [height] || Remove blocks below your feet.
|-
|-
| /replacenear || <size> <from-id> <to-id> || || Replace all existing blocks nearby.
| /replacenear || <size> <from-id> <to-id> || Replace all existing blocks nearby.
|-
|-
| /removenear || [block] [size] || || Remove blocks near you.
| /removenear || [block] [size] || Remove blocks near you.
|-
|-
| /snow || [radius] || || Simulate snow cover.
| /snow || [radius] || Simulate snow cover.
|-
|-
| /thaw || [radius] || || Unthaw/remove snow.
| /thaw || [radius] || Unthaw/remove snow.
|-
|-
| //ex || [size] || || Extinguish fires.
| //ex || [size] || Extinguish fires.
|-
|-
| /butcher || [radius] || || Kill nearby mobs.
| /butcher || [radius] || Kill nearby mobs.
|-
|-
| /remove || <type> <radius> || || Remove nearby entities. Type can be "items" for loose items/drops, arrows, boats, minecarts, tnt, or xp.
| /remove || <type> <radius> || Remove nearby entities. Type can be "items" for loose items/drops, arrows, boats, minecarts, tnt, or xp.
|-
|-
! class="hl2" colspan="4"| [[WorldEdit/Chunk tools|Chunk tools]]
! class="hl2" colspan="4"| [[WorldEdit/Chunk tools|Chunk tools]]
|-
|-
| /chunkinfo || || || Get the filename of the chunk that you are in.
| /chunkinfo || || Get the filename of the chunk that you are in.
|-
|-
| /listchunks || || || Print a list of used chunks.
| /listchunks || || Print a list of used chunks.
|-
|-
| /delchunks || || || Generate a shell script to delete chunks.
| /delchunks || || Generate a shell script to delete chunks.
<br>
<br>
|-
|-
! class="hl2" colspan="4"| [[WorldEdit/Super pickaxe|Super pickaxe]]
! class="hl2" colspan="4"| [[WorldEdit/Super pickaxe|Super pickaxe]]
|-
|-
| // || || || Toggle the super pick axe.
| // || || Toggle the super pick axe.
|-
|-
| /sp single || || || Switch to single block super pickaxe mode.
| /sp single || || Switch to single block super pickaxe mode.
|-
|-
| /sp area || <range> || || Switch to area super pickaxe mode.
| /sp area || <range> || Switch to area super pickaxe mode.
|-
|-
| /sp recur || <range> || || Switch to recursive super pickaxe mode.
| /sp recur || <range> || Switch to recursive super pickaxe mode.
|-
|-
<br>
<br>
! class="hl2" colspan="4"| [[WorldEdit/Tools|Tools]]
! class="hl2" colspan="4"| [[WorldEdit/Tools|Tools]]
|-
|-
| /none || || || Switch to no tool.
| /none || || Switch to no tool.
|-
|-
| /info || || || Switch to the info tool.
| /info || || Switch to the info tool.
|-
|-
| /tree || [type] || || Switch to the tree tool. Available types [tree, regular, big, bigtree, redwood, sequoia, tallredwood, tallsequoia, birch, white, whitebark, pine, randredwood, randomredwood, anyredwood, rand, random]
| /tree || [type] || Switch to the tree tool. Available types [tree, regular, big, bigtree, redwood, sequoia, tallredwood, tallsequoia, birch, white, whitebark, pine, randredwood, randomredwood, anyredwood, rand, random]
|-
|-
| //repl || <block> || || Switch to the block replacer tool.
| //repl || <block> || Switch to the block replacer tool.
|-
|-
| //cycler || || || Block data cycler tool.
| //cycler || || Block data cycler tool.
|-
|-
<br>
<br>
! class="hl2" colspan="4"| [[WorldEdit/Brushes|Brushes]]
! class="hl2" colspan="4"| [[WorldEdit/Brushes|Brushes]]
|-
|-
| /brush sphere || [-h] <type> <radius> || || Switch to the sphere brush tool.
| /brush sphere || [-h] <type> <radius> || Switch to the sphere brush tool.
|-
|-
| /brush cylinder || [-h] <type> <radius> [height] || || Switch to the cylinder brush tool.
| /brush cylinder || [-h] <type> <radius> [height] || Switch to the cylinder brush tool.
|-
|-
| /brush clipboard || || || Switch to the clipboard tool.
| /brush clipboard || || Switch to the clipboard tool.
|-
|-
| /brush smooth || <radius> [iterations] || || Smooth the region.
| /brush smooth || <radius> [iterations] || Smooth the region.
|-
|-
| /size || <size> || || Change the size of the current brushes
| /size || <size> || Change the size of the current brushes
|-
|-
| //mat || <mat> || || Change the material used by your current brush.
| //mat || <mat> || Change the material used by your current brush.
|-
|-
| //mask || || || Clear the mask
| //mask || || Clear the mask
|-
|-
| //mask || <mask> || || Set a mask
| //mask || <mask> || Set a mask
<br>
<br>
|-
|-
! class="hl2" colspan="4"| [[WorldEdit/Getting around|Getting around]]
! class="hl2" colspan="4"| [[WorldEdit/Getting around|Getting around]]
|-
|-
| /unstuck || || || Go up to the first free spot.
| /unstuck || || Go up to the first free spot.
|-
|-
| /ascend || || || Go up one level.
| /ascend || || Go up one level.
|-
|-
| /descend || || || Go down one level.
| /descend || || Go down one level.
|-
|-
| /ceil || [clearance] || || Get to the ceiling.
| /ceil || [clearance] || Get to the ceiling.
|-
|-
| /thru || || || Go through the wall that you are looking at.
| /thru || || Go through the wall that you are looking at.
|-
|-
| /jumpto || || || Jump to the block that you are looking at.
| /jumpto || || Jump to the block that you are looking at.
|-
|-
| /up || [distance] || || Go up some distance.
| /up || [distance] || Go up some distance.
<br>
<br>
|-
|-
! class="hl2" colspan="4"| [[WorldEdit/Snapshots|Snapshots]]
! class="hl2" colspan="4"| [[WorldEdit/Snapshots|Snapshots]]
|-
|-
| //restore || [snapshot] || || Restore a particular snapshot.
| //restore || [snapshot] || Restore a particular snapshot.
|-
|-
| //snap use || <snapshot> || || Use a particular snapshot.
| //snap use || <snapshot> || Use a particular snapshot.
|-
|-
| //snap list || [num] || || List the 5 newest snapshots.
| //snap list || [num] || List the 5 newest snapshots.
|-
|-
| //snap before || <date> || || Find the first snapshot before the given date.
| //snap before || <date> || Find the first snapshot before the given date.
|-
|-
| //snap after || <date> || || Find the first snapshot after the given date.
| //snap after || <date> || Find the first snapshot after the given date.
<br>
<br>
|-
|-
! class="hl2" colspan="4"| [[WorldEdit/Scripting|Scripting]]
! class="hl2" colspan="4"| [[WorldEdit/Scripting|Scripting]]
|-
|-
| /cs || <script> [args...] || || Executes a script.
| /cs || <script> [args...] || Executes a script.
|-
|-
| /.s || [args...] || || Re-executes last script with new arguments.
| /.s || [args...] || Re-executes last script with new arguments.
|-
|-
| /<script>.js || [args...] || || Executes a JS script.
| /<script>.js || [args...] || Executes a JS script.


|-
|-
! class="hl2" colspan="4"| [[WorldEdit/General commands|General commands]]
! class="hl2" colspan="4"| [[WorldEdit/General commands|General commands]]
|-
|-
| /search || <item> || || Search for an item by its name.
| /search || <item> || Search for an item by its name.
|-
|-
| //worldedit reload || || || Reloads WorldEdit's configuration.
| //worldedit reload || || Reloads WorldEdit's configuration.
|-
|-
| //worldedit version || || || Gets WorldEdit's version.
| //worldedit version || || Gets WorldEdit's version.
|-
|-
| //worldedit tz || || || Set your timezone. This is temporary.
| //worldedit tz || || Set your timezone. This is temporary.
<br>
<br>
|-
|-
! class="hl2" colspan="4"| Biomes
! class="hl2" colspan="4"| Biomes
|-
|-
| /biome || || || Get the biometype you are standing in.
| /biome || || Get the biometype you are standing in.
|-
|-
| /biomelist || || || List the available biome types
| /biomelist || || List the available biome types
|-
|-
| //setbiome || [-p] <biome type> || || Set the selected area to the specified biome type.  
| //setbiome || [-p] <biome type> || Set the selected area to the specified biome type.  
The -p flag changes the block (column) you are standing in.
The -p flag changes the block (column) you are standing in.
|}
|}

Latest revision as of 23:46, 25 December 2024



Command Parameters Description


//limit <limit> Set a maximum number of blocks to change at most for all operations. This only affects yourself. Use this to prevent catastrophic accidents. This command will not override the limit in the configuration if it is set.


History
//undo Undo your last action.
//redo Redo your last (undone) action. This command replays back history and does not repeat the command.
/clearhistory Clear your history.


Selection
//wand Gives you the "edit wand" (by default, a wooden axe). Left click with this tool to select position 1 and right click to selection position 2.
/toggleeditwand Toggles the edit wand selection mode, allowing you to use the edit wand item normally.
//sel <cuboid|extend|poly|ellipsoid|sphere|cyl> Choose the region shape to use for selections.
//pos1 Set selection position #1 to the block above the one that you are standing on.
//pos2 Set selection position #2 to the block above the one that you are standing on.
//hpos1 Set selection position #1 to the block that you are looking at.
//hpos2 Set selection position #2 to the block that you are looking at.
//chunk Select the chunk that you are within for your selection.
//expand <amount> Expands the selection in the direction that you are looking.
//expand <amount> <direction> Expands the selection in the specified direction (north, east, south, west, up, down).
//expand <amount> <reverse-amount> [direction] Expands the selection in two directions at once.
//expand vert Expands the selection to include sky to bedrock.
//contract <amount> Contracts the selection in the direction that you are looking towards.
//contract <amount> [direction] Contracts the selection in the specified direction (north, east, south, west, up, down).
//contract <amount> <reverse-amount> [direction] Contracts the selection in two directions at once.
//outset [-hv] <amount> Outset the selection in every direction.
//inset [-hv] <amount> Inset the selection in every direction.
//shift <amount> [direction] Moves the selection region. It does not move the selection's contents.
//size Get the size of selected region.
//count <block> Count the number of blocks in the region.
//distr [-c] Get the block distribution in the selection.


Region operations
//set <block> Set all blocks inside the selection region to a specified block.
//replace <to-block> Replace all non-air blocks blocks inside the region.
//replace <from-block> <to-block> Replace all blocks of the specified block(s) with another block inside the region.
//overlay <block> Place a block on top of blocks inside the region.
//walls <block> Build the walls of the region (not including ceiling and floor).
//outline <block> Build walls, floor, and ceiling.
//smooth [iterations] Smooth the selection's heightmap.
//regen Regenerate the selection region.
//move [count] [direction] [leave-id] Move the selection's contents. A block can be specified to fill in the left over area.
//stack [count] [direction] Stacks the selection.


Clipboard
//copy Copies the currently selected region. Be aware that it stores your position relative to the selection when copying.
//cut Cuts the currently selected region.
//paste [-ao] [-a] Pastes the clipboard. If you paste with -a, air blocks are being ignored.
//rotate <angle-in-degrees> Rotate the clipboard.
//flip [dir] Flip the clipboard.
//schematic or //schem save <format> <filename> Save clipboard to .schematic.
//schematic or //schem load <format> <filename> Load .schematic to clipboard.
//schematic or //schem list List all available schematics.
//schematic or schem formats Display available schematic formats.
/clearclipboard Clear your clipboard.
Generation
//hcyl <block> <radius> [height] Create a vertical hollow cylinder.
//cyl <block> <radius> [height] Create a vertical cylinder.
//sphere <block> <radius> [raised?] Create a sphere.
//hsphere <block> <radius> [raised?] Create a hollow sphere.
//pyramid <block> <size> Create a pyramid.
//hpyramid <block> <size> Create a hollow pyramid.
/forestgen [size] [type] [density] Make a forest.
/pumpkins [size] Make a pumpkin forest


Utilities
/toggleplace Toggle between using pos #1 or your current position.
//fill <block> <radius> [depth] Fill a hole.
//fillr <block> <radius> Fill a hole fully recursively.
//drain <radius> Drain nearby water/lava pools.
/fixwater <radius> Level nearby pools of water.
/fixlava <radius> Level nearby pools of lava.
/removeabove [size] [height] Remove blocks above your head.
/removebelow [size] [height] Remove blocks below your feet.
/replacenear <size> <from-id> <to-id> Replace all existing blocks nearby.
/removenear [block] [size] Remove blocks near you.
/snow [radius] Simulate snow cover.
/thaw [radius] Unthaw/remove snow.
//ex [size] Extinguish fires.
/butcher [radius] Kill nearby mobs.
/remove <type> <radius> Remove nearby entities. Type can be "items" for loose items/drops, arrows, boats, minecarts, tnt, or xp.
Chunk tools
/chunkinfo Get the filename of the chunk that you are in.
/listchunks Print a list of used chunks.
/delchunks Generate a shell script to delete chunks.


Super pickaxe
// Toggle the super pick axe.
/sp single Switch to single block super pickaxe mode.
/sp area <range> Switch to area super pickaxe mode.
/sp recur <range> Switch to recursive super pickaxe mode.
Tools
/none Switch to no tool.
/info Switch to the info tool.
/tree [type] Switch to the tree tool. Available types [tree, regular, big, bigtree, redwood, sequoia, tallredwood, tallsequoia, birch, white, whitebark, pine, randredwood, randomredwood, anyredwood, rand, random]
//repl <block> Switch to the block replacer tool.
//cycler Block data cycler tool.
Brushes
/brush sphere [-h] <type> <radius> Switch to the sphere brush tool.
/brush cylinder [-h] <type> <radius> [height] Switch to the cylinder brush tool.
/brush clipboard Switch to the clipboard tool.
/brush smooth <radius> [iterations] Smooth the region.
/size <size> Change the size of the current brushes
//mat <mat> Change the material used by your current brush.
//mask Clear the mask
//mask <mask> Set a mask


Getting around
/unstuck Go up to the first free spot.
/ascend Go up one level.
/descend Go down one level.
/ceil [clearance] Get to the ceiling.
/thru Go through the wall that you are looking at.
/jumpto Jump to the block that you are looking at.
/up [distance] Go up some distance.


Snapshots
//restore [snapshot] Restore a particular snapshot.
//snap use <snapshot> Use a particular snapshot.
//snap list [num] List the 5 newest snapshots.
//snap before <date> Find the first snapshot before the given date.
//snap after <date> Find the first snapshot after the given date.


Scripting
/cs <script> [args...] Executes a script.
/.s [args...] Re-executes last script with new arguments.
/<script>.js [args...] Executes a JS script.
General commands
/search <item> Search for an item by its name.
//worldedit reload Reloads WorldEdit's configuration.
//worldedit version Gets WorldEdit's version.
//worldedit tz Set your timezone. This is temporary.


Biomes
/biome Get the biometype you are standing in.
/biomelist List the available biome types
//setbiome [-p] <biome type> Set the selected area to the specified biome type.

The -p flag changes the block (column) you are standing in.