-20% Code FIRSTSERVER takes 20% off your first invoice
Gamehost

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.

Last updated: ·3 min read

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

EngineWhat you installConfig folder
Paper, Purpur, SpigotWorldEdit (Bukkit) or FastAsyncWorldEditplugins/WorldEdit/
FabricWorldEdit for Fabricconfig/worldedit/
NeoForgeWorldEdit for NeoForgeconfig/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

  1. Type //wand. You get a wooden axe.
  2. Left-click a block to set the first corner, right-click to set the second. //pos1 and //pos2 do the same at the spot where you stand.
  3. Expand the selection with //expand 10 up or //expand vert (the full world height).

The most common operations on a selection:

CommandWhat it does
//set stonefills the selection with stone
//replace dirt grass_blockreplaces one block with another
//walls stone_bricksbuilds walls around the selection
//count diamond_orecounts blocks of one type
//undo, //redoundoes 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 the limits section, set max-blocks-changed so builders cannot accidentally select half the map. -1 means no limit.
  • The //undo history lives in RAM. After huge operations, clear it with //clearhistory.
  • Take a backup before rebuilding the spawn. After a server restart, //undo will 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.

Still stuck?Write to us on Discord or in the Help centre in your panel. Ask on Discord