WorldEdit on a Minecraft server: commands and schematics
Install WorldEdit or FastAsyncWorldEdit, select areas, copy builds and save schematics, and keep big edits from freezing your server.
WorldEdit lets you build in seconds what would take hours by hand. The same command run on too large an area can freeze the server for a minute, though. Here are the basics and the settings that protect you from that.
Installing on plugins and on mods
| Engine | What you install | Config folder |
|---|---|---|
| Paper, Purpur, Spigot | WorldEdit (Bukkit) or FastAsyncWorldEdit | plugins/WorldEdit/ |
| Fabric | WorldEdit for Fabric | config/worldedit/ |
| NeoForge | WorldEdit for NeoForge | config/worldedit/ |
You install the plugin from Plugins and the mod from Mods. You can also download the file from Modrinth, CurseForge or enginehub.org and upload it through Files. The version has to match your game version.
FastAsyncWorldEdit (FAWE) is a fork for Paper that runs operations in the background and splits them into chunks. For large builds it is the better choice. The commands are the same, and WorldGuard and other plugins that depend on WorldEdit work with it normally. Do not install both at once.
By default only OPs can use WorldEdit. Give others permissions, for example worldedit.* for builders in LuckPerms.
The wand and selecting an area
- Type
//wand. You get a wooden axe. - Left-click a block to set the first corner, right-click to set the second.
//pos1and//pos2do the same at the spot where you stand. - Expand the selection with
//expand 10 upor//expand vert(the full world height).
The most common operations on a selection:
| Command | What it does |
|---|---|
//set stone | fills the selection with stone |
//replace dirt grass_block | replaces one block with another |
//walls stone_bricks | builds walls around the selection |
//count diamond_ore | counts blocks of one type |
//undo, //redo | undoes and redoes the last operation |
Copying and schematics
Copying is relative to where you stand. Stand next to the build, select it and type //copy. Walk to the new spot and type //paste. Before pasting you can rotate the clipboard with //rotate 90 or mirror it with //flip.
To move a build to another server or keep it for later, save a schematic:
//copy
//schem save spawn_v2
//schem load spawn_v2
//paste
Schematics are stored in plugins/WorldEdit/schematics/ (on mods in config/worldedit/schematics/). .schem files downloaded from the internet go into that folder through Files or SFTP, and you load them with the same command.
Why the server freezes on //set
Regular WorldEdit changes blocks on the server's main thread. Until it is done, the server does not handle players and TPS drops to zero. Tens of thousands of blocks go unnoticed; tens of millions can freeze the server for a long time, and if memory runs out, crash it.
- Split large areas into parts, or use FAWE.
- In the WorldEdit
config.yml, in thelimitssection, setmax-blocks-changedso builders cannot accidentally select half the map.-1means no limit. - The
//undohistory lives in RAM. After huge operations, clear it with//clearhistory. - Take a backup before rebuilding the spawn. After a server restart,
//undowill not help anymore.
If the server still lags after working with WorldEdit, track down the cause with Minecraft server lag and TPS.
Common questions
Does WorldEdit work on Fabric and NeoForge? Yes. WorldEdit has a plugin version for Paper and Spigot and mods for Fabric and NeoForge. The commands are the same; only the config folder differs.
What is the difference between FastAsyncWorldEdit and WorldEdit? FAWE is a fork for Paper that runs large operations in the background and splits them into parts, so it puts less load on the server. The commands are identical. You install it instead of WorldEdit, not next to it.
Does //undo work after a server restart? No. The change history is kept in memory and disappears on restart. Take a backup in the panel before big changes.
Why can a player not use //wand? By default WorldEdit only works for operators. Give the player or their group WorldEdit permissions, for example through LuckPerms.
The plugin installer, file manager and SFTP come with every plan on our Minecraft server hosting.