Need help? Ask on the forum, ask a fellow user or developer (join us on IRC), or contact sk89q.
Contribute to the wiki, edit this page! Register an account, or login with Facebook first.
HEY! Do you integrate (or want to) a plugin into yours? Do you help work on WE/WG/etc.? Please subscribe to our mailing list!
WorldEdit
Block data syntax
With all of WorldEdit's commands that take a block argument, you can specify block data. For example, crops determine their growth status using their data value and so you can use this to set the crops' growth.
Contents |
Block data syntax
All commands that take a block to use support this syntax.
Data value
Some blocks use the data values, and data values are valid between 0 and 15 (inclusive) (although not all blocks support the entire range). To specify a block's data, simply append a colon (:) and the value after the block name or ID, as follows.
//set crops:7Information about blocks that use their data value can be found on the Minecraft wiki.
For wool, you can also use its color name (i.e. //set wool:red). Since v2.15
Sign text
Sign text is separated by pipe symbols (|) for each line. Spaces must be replaced with underscores (_).
//set sign|Line1|Line2_Text|Line3//set sign:4|Line1|Line2_Text|Line3Mob spawner mob type
The mob spawner mob type can be specified after a pipe symbol (|).
//set mobspawner|SquidNote block pitch
//set note|24Skull Type
//set skull:1|creeper|12//set skull|NotchPatterns
A few commands also support a pattern syntax. Patterns allow you to set a pattern for the block to use; for example, you can set a pattern where each block has a probability of being brick and a probability of being rock. However, you don't have to use a pattern even when it is supported. For example, you can still use //set rock.
Commands that support patterns include:
- //set
- //replace
- //overlay Since v3.0
- //fill
- //fillr
Block probability
The block probability pattern is specified with a list of block types (which also support the block data syntax mentioned above) with their respective probability.
//set 5%diamondore,95%dirtFor a truly random pattern, no probability percentage is needed.
//set obsidian,stoneClipboard
Since v3.0 You can make a copy with the clipboard and use #clipboard or #copy for the pattern to repeat the copy.
//set #clipboard
