WorldEdit

From BadWolfMC Wiki
Revision as of 20:48, 17 May 2018 by Merc (talk | contribs)

WorldEdit (WE) is an easy-to-use in-game world editor for Minecraft that lets you: change thousands of blocks in an area at once by selecting regions, use over 100 functions to modify the world or remove problems, remove large chunks of land as you wish, sculpt the world and build mountains with brushes, and fix annoyances such as broken water, missing snow, raging fires, and more! Limited WorldEdit functionality is available to all of our members in the PlotWorld on the BadWolfMC Beta Server!

Much of this tutorial is lifted straight from the WorldEdit Wiki, which might be easier to follow in terms of layout, but please note that we have not enabled all WE features. This page is a basic guide to getting started and includes only the tools or wiki links to features that you have access to.

WorldEdit Rules

WorldEdit is a powerful editing tool that we are providing access to in good faith, and as they say, with great power comes great responsibility. ANY abuse, misuse, or attempts to bypass limitations and rules can do serious damage and will result in immediate removal of privileges without warning or a permanent server ban. Ignorance is not an acceptable excuse.

  • All edits are limited to 100,000 blocks per operation, and all users are limited to one operation at a time. Operations exceeding this limit will be canceled automatically. This is still considered a fairly large number in WorldEdit terms, but it also adds up faster than you'd expect. In general this number is not an issue for the server, but you'll also want to be aware of both the performance of the server at the time of the operation and the performance of your own client, internet, etc. WorldEdit changes a lot of blocks very quickly, which your client then has to render just as quickly, so if you experience lag in general you'll probably want to limit yourself to hundreds of blocks rather than thousands. When you make a selection the plugin will tell you how many blocks are included in that selection to give you an idea.
  • All operations are limited to plots that you have legitimately claimed (see the PlotWorld tutorial for more information on claiming a plot). Generally any operations that go outside of your plot will cut off (e.g. a generated cylinder that overlaps the road will still generate but any blocks over the road will be missing).
  • The following blocks have been blacklisted and are unavailable for use with WE (note that many of these are still available to you from your creative inventory and can be placed normally):

List of blacklisted blocks:

    • Armor Stands
    • Banners
    • Barriers
    • Beacon
    • Bedrock
    • Beds
    • Brewing Stands
    • Buttons
    • Cactus
    • Cake
    • Carpet
    • Chorus Plants/Flowers
    • Coal Ore
    • Command Blocks
    • Detector Rails
    • Diamond Ore
    • Dispensers
    • Droppers
    • Emerald Ore
    • End Gateway
    • End Portal
    • End Portal Frame
    • Ender Chest
    • Fire
    • Flowers
    • Hoppers
    • Item Frames
    • Lapis Ore
    • Lava
    • Leaves
    • Lever
    • Mushrooms
    • Nether Portal
    • Nether Quartz Ore
    • Piston Heads
    • Pistons
    • Powered Rails
    • Redstone Ore/Glowing Ore
    • Redstone Torch
    • Redstone Wire
    • Saplings
    • Shrubs/Grass/Ferns
    • Sticky Pistons
    • String
    • Structure Blocks
    • Structure Void
    • Sugar Cane
    • TNT
    • Torches
    • Wheat/Carrots/Potatoes
  • Do not create large amounts of falling blocks (e.g. sand, gravel, concrete powder, etc.). While this can be useful for making certain shapes and is allowed in small quantities, excessive falling blocks create entity lag and our plugins will attempt to intervene. Abuse of this will result in loss of privileges for you and these blocks being blacklisted for everyone.
  • Be as accurate as possible and keep your use of WorldEdit to a minimum, especially with large selections -- excessive WE use can lead to data corruption and lag.

Quick Start Guide

Getting Around

First, let's figure out how you can get around quickly.

  1. Look at a block not too far away and type /jumpto
  2. Stand under a tree and type /ascend
  3. While on top of the tree, type /descend
  4. Stand behind a tree trunk, look straight ahead, make sure there's room on the other side, and type /thru

Or whip out your compass, look at a nearby block, and left click. Want to go through walls? Right click on a wall.

YouTube Tutorial on Movement

Making a Selection

Diagram of a cuboid selection

In WorldEdit, similar to the selections in our Residence plugin, you select the region that you want by setting two points of a cuboid. There are three ways to do this:

  • Left and right click blocks while holding a wooden axe (use //wand to get a wooden axe) -- easiest method. Note that this is an axe for WE, not a stick like you'd use with Residence.
  • Stand at the appropriate positions and type //pos1 and //pos2
  • Target the position 1 & 2 blocks and type //hpos1 and //hpos2

Once you've finished with your selection use //sel to clear the selection (and by extension the selection particles). This will ensure that no accidental operations are performed if you've forgotten that you had anything selected, and it will clear any lag from the particles.

Full Wiki on Selections (includes adjusting your selection and selecting different shapes) YouTube Tutorial on Selection/Positions

Tutorial: Make an approximate selection of a 15x15x15 area to test with and go to the next section.

Doing Things With Your Selection

  1. Set the entire thing to stone: //set minecraft:stone
  2. Set the entire thing to brick: //set brick (here we are using WorldEdit's internal block names -- which more or less mimic Minecraft's)
  3. Set the entire thing to mossy stone bricks: //set 98:1 (here we're using the Minecraft Block ID, which is usually the easier method)
  4. Set the selection to 25% smooth sandstone, 75% glass: //set 25%24:2,75%glass (no spaces in the argument -- only the one between "set" and "25%" -- you can also mix and match how you express the blocks desired)
  5. Replace the sandstone with dirt: //replace sandstone dirt
  6. Clear the area: //set 0
  7. Generate an interesting shape: //g wool data=(32+15/2/pi*atan2(x,y))%16; (0.75-sqrt(x^2+y^2))^2+z^2 < 0.25^2
  8. Look in a cardinal direction (not diagonal) and repeat your selection: //stack 4

Let's undo your changes!

  1. Undo 8 times: //undo 8

YouTube Tutorial on Manipulating Selections

Adjusting the Selection

So you've got a cuboid. Let's change it!

  1. Make the cuboid 10 blocks taller, going up: //expand 10 up
  2. Make the cuboid 5 blocks longer in the direction that you are looking: //expand 5
  3. Make the cuboid 10 blocks shorter, going down: //contract 10 down

Playing with Brushes

  1. Grab a pickaxe (try diamond) and have it as your active slot.
  2. Turn on a stone brush of radius 5: /br sphere stone 5
  3. Aim at ground not near you and right click to place large stone spheres.
  4. Make it so the brush only affects grass: /mask grass
  5. Instead of placing stone, let's place wool: /mat wool:red,wool:green
  6. Right click more areas.
  7. Disable the brush: /none

YouTube Tutorial on Brushes

Using the Clipboard

WorldEdit has a powerful clipboard function that allows you to copy an area, rotate it, and paste it. Clipboard contents are currently limited to cuboid selections only and are stored in memory, so it is good practice to occasionally clear your clipboard especially after large operations using /clearclipboard.

YouTube Tutorial on the Clipboard

Copying and Cutting

  • //copy
  • //cut [replaceBlock]

This simple command copies your current selection to your session's clipboard, keeping track of where you are relative to the copy. The second part of that sentence is very important: if you want to later paste, for example, a bridge so that it is under where you are standing, you must stand in a location above the bridge when you make the copy. This method allows you to easily align your later paste because you can plan ahead a bit; it requires some spatial abilities to master the copying process but you will find it particularly helpful once you get the hang of it.

//cut works just like the //copy command except that it also deletes the area afterwards. By default it will replace the area with air blocks but you can also specify a different block.

Pasting

  • //paste [-aso]

Once you have something in your clipboard, you can paste it into the world. The last argument is optional: if you want the copy to paste at the same point that it was copied at, type //paste -o, otherwise the paste will be placed relative to you. Remember that if you are pasting relatively, it will be relative to where you were when you made the initial copy. For example, if you were on top of your castle when you copied it, pasting it would result in the castle being pasted under you.

Let's say you want to copy a wall and place it somewhere else. If you just stand a couple of blocks away, copy it, and then try to paste it, there is a certain chance that you will be off one block in any direction (except up and down maybe) due to the way minecraft records your location. As a help to make sure that copy/paste is exact on the block where you want it, do the following: Mark the wall. Place any block 3 blocks away from the center of your wall before copying. Walk towards the block as far as possible. Copy. Place another block 3 blocks away form the location where you want the center of the pasted wall to be. Walk against that block. Paste. Remember that it does not matter which direction you look. If you want the wall to face into another direction, rotate it and then do the same placing of a block that you walk into.

You can use //paste -a to paste everything but air.

You can use //paste -s to select the region the paste occurred in.

Rotating

  • //rotate <angleInDegrees>

Sometimes you may want to rotate your copy. This command currently lets you rotate your copy around the Y (up-down) axis 90 degrees or at any multiple of 90 degrees [90 (1/4 turn), 180 (1/2 turn), or 270 (3/4 turn)]. To be accurate, it actually allows you to revolve your copy around the relative offset that you were at when you originally made the copy. If you want to rotate a copy around its center, you would need to stand in the middle of the selection or the build as a whole when you copy it.

Flipping

  • //flip [-p] [direction]

Flips the current clipboard in a specified direction. The directions available are North, South, East, West, up, and down; North, South, East, and West can be specified by looking in those directions, whereas up and down cannot. The clipboard flips about a plane perpendicular to the direction specified, through the center of the clipboard (not about the player). There are three planes, one horizontal (xz), and two vertical (xy, yz). The horizontal plane xz is defined through the up or down vectors, the xy plane defined by East/West, and the yz plane by North/South.

The -p flag flips the selection around the player, instead of the selections center.

Generation Tools

Sometimes you may want to generate forests or create spheres automatically, as doing it by hand may be too tedious. WorldEdit has a number of tools that allow you to do just that. These commands don't need a region; they use the block that you are standing in.

YouTube Tutorial on Generation

Cylinders, Circles, & Ellipses

  • //cyl <block> <radius> [height]
  • //hcyl <block> <radius> [height]

WorldEdit is capable of producing both hollow and filled cylinders as well as hollow and filled circles. It uses a fast algorithm to generate the objects and the algorithm is capable of creating nice and symmetrical edges. The cylinders are created at your feet and extend upwards. If you are creating a circle, you simply only need to create a cylinder of height 1.

Example: Creating a filled glass cylinder of radius 5 and height 10: //cyl glass 5 10 Example: Creating a hollow glass circle of radius 5: //hcyl glass 5 1

  • //cyl <block> <radiusEW>,<radiusNS> [height]
  • //hcyl <block> <radiusEW>,<radiusNS> [height]

By specifying 2 radii, separated by a comma, you can generate elliptical cylinders. The first radius is east/west, the second radius is north/south.