Recently it has come to my attention that most people only know a few worldedit commands and little-to-no commands from voxelsniper. It would also appear that the majority of people have a terrible memory for commands. So here is a basic tutorial on WorldEdit commands to get you going, or to refer your builders to.
The following things are currently covered in this tutorial.
Making a Box
Making SPheres, Cylinders, and Pyramids
Stacking, Copying, and Pasting
Forestgen and Tree Tool
Fauna and Plants
WARNING WORLDEDIT IS DANGEROUS IF YOU ARE NEW TYPE THIS COMMAND "//limit 5000" THIS WILL LIMIT YOUR BLOCK CHANGE LIMIT TO 5000.
UNDO type //undo or //undo # to undo a number of worldedit changes.
REDO type //redo or //redo # to redo a number of worldedit changes.
What is it and qhwy do we use it?
It is a plugin to well... Edit the World. What it does is sets, replaces, removes ,or fills locations with blocks, and we will go over some of the basics of how that is done.
WorldEdit regions are locations selected by your wand. To obtain a WorldEdit wand type //wand, it should put a Wooden Axe in your inventory. This Wooden Axe will be your area selector. Left click selects position 1, Right click selects position 2.
It selects it in a box, so imagine it like this
If the above example was a house, you would select the far top edge, and the opposite bottom edge. All regions are formed in the shape of a box. We will refer to regions often, so get used to making region selections.
To select a new region that isn't built yet, do something like this, where G is ground, and W is wood, 1 and 2 are still your selected location, try this.
This will select a 6x5 box, if point 1 is selected as an offset of 5 blocks out of line with the wood, then it would be a 6x5x5 box.
Making a box
Select your first region. Make sure that it says First and Second position selected.
Once a region is selected choose a material type. All normal minecraft materials can use material name like "nether_brick" or "stonebricks" for modded materials you will need the ID number, to find ID's press and hold F3 then press H, this will unlock ID's next to item names. ID's look like this "#1186/3" for 1186 is the blocks ID and 3 is the meta-data version of the block, it is important to use meta-data to get the proper block. Unlike the ID however, WorldEdit uses meta-data like this "1186:3"
So to create an empty box around your region type the following command.
"//faces 1186:3" this sets the faces of you region like a house
To make a solid box type
"//set 1186:3" this sets the entire region to a specific block ID
To make just the walls you can type
If at any time, you used a command that you did not want to use for WorldEdit, type "//undo" or "//undo #" being the # of times you wish to undo.
Making spheres, cylinders, and pyramids Making spheres
To make a sphere simply stand in the location you wish the sphere to be created, you being the center of ground zero, and type the following command.
"//sphere 0098 5" where 0098 is the block ID for Stone Bricks, and 5 is the radius. A radius of 5 will make an 11x11 sphere because it doesn't count the center block in your radius size.
To make a hollow sphere of the same style, type
"//hsphere 0098 5" this will create the same sphere but hollow.
If you get stuck insid an object you created you can type "//unstuck" if you are inside of a hollow object then you could type "//thru" to pass through a solid object.
Making a cylinder
There are 2 types of cylinders, much like spheres. Solid and hollow versions.
Also like spheres, the center and radius are dependant on where you are standing.
To make a 9x9 by 30 tall hollow tower made of Stone Bricks, we would type the following command.
"//hcyl 0098 9 30"
For a solid version remove the H like this
"//cyl 0098 9 30"
Making a pyramid
Guess what? Another 2 types of pyramids, much like spheres blah blah. Solid and hollow versions.
To make a 9x9x5 hollow pyramid made of Stone Bricks, we would type the following command.
"//hpyramid 0098 9 4"
For a solid version remove the H like this
"//pyramid 0098 9 4"
Removenear/Replacenear Replacing nearby blocks
To Replace nearby blocks with another type of block it is rather simple.
Lets say we want to replace all nearby dirt with grass, we would type.
"//replacenear 20 dirt grass" where 20 is the radius.
So it goes //replacenear radius from-id to-id
Removing nearby blocks
To remove nearby blocks of a specific type use the following command
"//removenear 0098 20" this is will remove all Stone Bricks in a 20 block radius, meaning a 41x41 block circle.
The replacer tool
It is your best friend, your ally, your compadre.
To make one, simple get a tool like a pickaxe and put it in your hand, then type
"//repl stone" this will set it so when you right click with your pickaxe it converts whatever block you are aiming at into stone. To change the replacer material, simply Left click on any block you want to be your replace-block.
WorldEdit has a decent set of brushes, nothing to compare to VoxelSnipers brushes but still worth using.
Brushes follow the same format as other WorldEdit commands, the main brushes you will want to use are the Cylinder, Smooth and Sphere brushes.
A good use for the sphere brush is demolitions, I like to call it an "air brush"
To create a sphere air brush simply get a tool or custom block (custom blocks have infinite range) and put it in your hand, then type the following command.
"//brush sphere air 5" this will make a sphere brush 11x11 blocks that will replace anything you right click on with air, essentially destroying it. Be very careful with this brush and don't forget to //undo.
A good use for the cylinder brush is roads! everyone likes roads, but they do take a while to put down, but not with WorldEdit. We will also get into some advanced commands with this because a 1 block road is ridiculous. So lets say we want our road to be made out of gravel, cobblestone, and grass, and a mostly even mix of all. We would get our brush tool and type this command
"//brush cyl 33%gravel,34%cobblestone,33%grass 2 1"
This will make a brush that converts the the 1st layer 5x5 into a mostly even mix of all 3 materials, then you can just drag the brush along the area you want for a road. Just avoid hitting plants with your brush or you'll pop a layer up.
The pyramid brush is a good way to make pyramid things, over and over.. Not the most useful of the brushes.
To use the pyramid brush have a tool in your hand and type
"//brush pyramid 0098 4"
To make a Stone Brick 9x9x5 pyramid brush
The smooth brush obviously... smooths things out, not very well carefully I might add, it will drag anything it touches down, making trees and what-not apart of your luscious new mountain. So make sure the smooth area is clean or plan on cleaning it after.
To use the smooth brush, put a tool in hand for a brush and type the following command.
"//brush smooth 5"
This will make a 11x11 smoothing brush to go nuts with. Be careful what you smooth and remember... //undo... //undo... //undo//undo//undo//undo//undo//undo
Stacking, copying, and pasting Stacking
Well it is... the greatest tool we always want to forget about. Don't feel like making that wall another 60 blocks by hand? Of course not... Select the region of a section of the wall, and face the direction you want it to move, then type the following command.
Yup that simple, this will stack 1 forward, the same size and region of what you selected. You can stack a million times if you want but I would not suggest it. Server lockup for a while heh.
DO NOT FORGET when stacking it will always stack the exact same space, so make sure if your seam is in the middle, to only have it once per section per selection. like this
1 X X X
X 2 X X
Stacking can also be done with a direction you are not facing. For example.
"//stack 1 west" or "//stack 1 up"
It is simple, select a region and type
Remember to get the whole objects region, what you do with it afterwards is up to you. The ABSOLUTE most important thing about copying is that it saves the paste location you stand in when copying. So remember what corner of the house you stood in and stay on the ground.
Pasting is simple and easy but it can be very useful when trying to make a large structure quick, after all what is better than only making half a castle? To paste the same object as a mirror select the entire region, and then copy it. Remember where you stood and stand in the opposite location, then type
"//flip" this will flip your clipboard and now mirror the other side when pasted.
If the area is clear of debris then type
"//paste -a" this will paste the object on the opposite side without air being -a, so it is less blocks to paste and will not damage anything.
To rotate a pasted object type the following command
"//rotate 90 or 180, or 270, or 360" to rotate it one of 4 directions. 360 Being back to 0.
Forestgen and Tree tool Foresttgen
A useful WorldEdit tool, especially if you mercilessly wiped out a a nearby forest to build something.
For a quick forest type the following command
"//forestgen 20 redwood 2"
This command will spawn a forest in a 41x41 block radius of Redwood aka Spruce trees with a density of 2. Anything higher than 2 is incredibly dense.
The Tree Tool
The quick tool to spawn trees, who needs saplings and bonemeal! Get a tool like a pickaxe, put it in hand and then type
"//tree redwood" to each time you right click with that pickaxe it will place a tree down, permitted a tree could be there.
Fauna and Plants Laying it down quick
Fauna and plants are tricky, sometimes they just wont go down, you maybe you want them on podzol.. well here's a little trick that works nicer than bonemeal. Before you toss your trees down, cover the area in a single layer of gravel and then try this command.
"//replacenear 10 30%31:1,30%air,20%175:2,10%38:1,10%38:3"
This will make 30% of the gravel air, 30% grass, 20% tall grass, 10% blue orchids, and 10% azure bluets.
Overlay is another good way to put plants down. Select a region of ground you want the plants to be in and then type the following command.
"//overlay 30%31:1,30%air,20%175:2,10%38:1,10%38:3" To do a an overlay of the same layout as the gravel replacement.
Water messed up? Lava messed up? No problem.
Fixing Water and Lava
To fix water simply float down to the level of the water and type
"//fixwater 10" where 10 is the radius, so a 21x21 block radius of water will be flattened out and made seamless. So note this will not work for a river.
To fix lava do the same thing except type
Ever wanted to copy a house and paste it over here, or over there? Well that's actually easy.
Remember copying that house? Well here is one way of making good use of a copy, by typing "//schem save schemname" where schemname is the name of the schematic you want to be saved.
To load a saved schematic it is simple really, all you need to do is type
"//schem load schemname" or "//schem load mcedit schemname"
If you don't know the name of the schematic type
"//schem list" and each schematic has its name plus .schematic at the end.
Pasting schematics is the same as pasting anything else, which make it simple, you can -a or //rotate, or whatever you could normally do with something in your clipboard.