The base purpose of this script is to help to clear and fill zones with blocks in game.
You can get the fresh world edit script from github! Huge respect to @LordFoobar for redeveloping it from scratch and maintaining right now.
The information below can be outdated! Please read "Readme.md" on github or use ingame /we help command
How to use clear command and how to use help (updated)
You can type /we help for in-game help. Other than that, I just tried and it works, you can do either
NOTE: the -c (or -clean is the same) is the same as doing /we clear abs before /we fill.
Type /we help clear or /we help fill for more information.
Hope this helps!
Sometimes, the chunks will not update after executing a command. This has nothing to do with World Edit. If you don't see any error after executing a command, or any message, exit the world chunk (move away), than come back. You have to move away until the blocks disappear (seeing low details terrain is fine, as long as the blocks are no longer visible), then come back. If the command failed, nothing will have changed. Otherwise, you'll see that the command had succeeded indeed!
Regarding your /we undo, I'm afraid it is not quite possible at the moment, but we'll keep that in mind. And as for keeping the previous selection in memory (i.e. re-using a previous selection instead of selecting again and again the same area), yes, this is something that we can implement.
Ok i talked to Red and for halfblocks you add 195 to the id so did some testing of my own and found you can change the position of the blocks like so
195 halfblock bottom
198 halfblock center
201 halfblock top
If your Half Block id is 37 and you want the block at the top you type /we-fillblock 20137
if the id is, for example, over 100 like say 186 it Would be 20100 + 186 = 20286
example 2 for Half block Center 198 19800 + 186 = 19986
example 3 for Half block Bottom 195 19500 + 186 = 19686
This is the same for All block types with the id over 100
North East South West is to show you what way the block is facing
North East South West Block type 39 42 45 48 Stair 51 54 57 60 Stair type2 63 66 69 72 Stair type3 75 78 81 84 Stair corner 87 90 93 96 Stair inner corner 99 102 105 108 Ramp 111 114 117 120 Ramp upside down 123 126 129 132 Ramp Half Corner 135 138 141 144 Ramp Inner Corner 147 150 153 156 Ramp Half Corner upside down 159 162 165 168 Ramp Inner Corner upside down 171 174 177 180 Ramp Corner 183 186 189 192 Ramp Corner upside down 195 195 195 195 Half Block bottom 198 198 198 198 Half Block Center 201 201 201 201 Half Block Top 204 207 204 207 Cylinder on its side 219 219 219 219 Pyramid 222 222 222 222 Pyramid upside down
North East South West Block type 225 228 231 234 Ramp On Its Side 237 240 243 246 Arc 249 252 255 258 Arc upside down 261 264 267 270 Arc on its side 273 276 279 282 Stair on its side 285 288 291 294 Stair upside down 297 300 303 306 Stair Corner upside down 309 312 315 318 Stair Inner Corner upside down 003 003 003 003 Cylinder 006 009 012 015 Cylinder Half
This took me some hours guys so a thank you would be nice
Old description and commands
allows you to start selecting an area with ingame box selector
to cancel the selection
allows you to clear objects / constructions / vegetations
all removes obj+con+veg+ player blocks (doesn't apply to terrain)
abs removes obj+con+veg+player blocks+terrain blocks (clears everything possible)
/we-fill id <number>
Allows you to fill the selected area with specified blocks. It doesn't remove ANY objects or blocks EXCEPT terrain blocks, because it basically replaces them.
Note: game will interprete id>16 as 0 (air).
/we-fill2 id <number>
Allows you to fill the selected area with specified blocks. It REMOVES all objects and blocks in the selection before filling with new.
if handmade blocks are not disappearing and cannot be destroyed by hand after /we-fill, they will disappear/change after restart (singleuser - goto main menu, server - restart)
You can also try to hit them or to place some block near, sometimes this helps.
How this can be used:
0) You have to be a server admin (be in list) or play singleuser mode
1) start the selector tool with the command /we-select
2) select an area with left mouse button, arrow keys and others (look at the help messages on the bottom of the screen)
3) use /we-clear or /we-fill command to do desired stuff
I refactored the script a little bit and added a base player:isAdmin() check in /we-clear and /we-fill functions, so that the script can be used on public servers (needs to be checked! Didn't have a chance to check myself!)
Extended /we-clear all functionality.
- /we-fill doesn't clear any blocks
- /we-fill2 clears all blocks
- /we-clear all clears all player-made blocks and vegs
- /we-clear abs clears all above plus terrain blocks
- added green and grass (id=2) for /we-fill and /we-fill2