Introducing WorldEditCLI and WorldEdit Golf

Posted on September 29, 2019 in minecraft

Tagged with: games, worldedit

A typical task that people want to achieve with WorldEdit is to load in a schematic, replace a few blocks, and then save it again. With WorldEditCLI, this couldn't be easier!

What is it?

WorldEditCLI is a command-line tool that enables running WorldEdit commands on a schematic file, without even having to boot up Minecraft! This also allows for most WorldEdit commands to be run from the Minecraft server console. Gone are the days of having to join the server just to perform some basic commands. WorldEditCLI only supports modern schematic at the current time, which are schem files created from 1.13 onwards.

WorldEditCLI is available from the EngineHub builds website, and is named worldedit-cli-VERSION.jar.

What can it do?

WorldEditCLI can be used to modify a schematic file, batch modify multiple schematic files, and can even be used to create external programs that modify Minecraft worlds and schematics.

You can think of it as a way to integrate WorldEdit into another application. It would even be possible to use WorldEditCLI and create a user interface for it, creating an external visual world editing program similar to the now-defunct MCEdit.

If you want to integrate WorldEditCLI into a project you're working on, feel free to reach out in the EngineHub Discord for some assistance.

How to use WorldEditCLI

WorldEditCLI is a Command Line Interface application. This means it is used through a command line, similar to the Minecraft server.

As it's a jar file, it can be run using Java with java -jar worldeditcli.jar. Currently, it supports the file (-f filename) and script (-s scriptfile) arguments. If a filename is not provided and the system supports it, a file browser dialogue will appear.

The script argument allows running a list of commands from a file, rather than entering them in one after another into the application. When the command stop is received, it shuts down.

Example usage of WorldEditCLI

Batch Editing

As WorldEditCLI supports "script files", you can easily apply the same modification to a large number of schematics! This could be used to do anything from replacing all oak with spruce, to clearing entities.

A simple way to do this would be to use the POSIX find command. The following syntax would run worldeditcli.jar on every .schem file in the same directory, with the commands listed in commands.txt.

find . -maxdepth 1 -iname '*.schem' -type f -exec java -jar worldeditcli.jar -s "commands.txt" -f {} \;

Make sure to have your commands script end with stop so that it shuts down WorldEditCLI after it has run.

Planned Features

In the future, the goal of WorldEditCLI is to be able to make large-scale changes to the Minecraft world in a fast and safe manner, without having to even start the game! This would allow for removing all ores from the entire generated world without having to worry about the performance of the Minecraft server.

Whilst currently it only supports schematics, the goal is to allow performing alterations directly to the Minecraft world, which makes the above goal rather simple to accomplish.

WorldEdit Golf

To show off what WorldEditCLI can do, we've created WorldEdit Golf! Similar to CodeGolf and VimGolf, WorldEdit Golf is a competitive website where you can create and compete in challenges to turn one schematic into another with as few WorldEdit commands as possible.

If you're a builder looking for a server to work on, many server owners will be looking at WorldEdit Golf to find the best builders in the community, so have a go at some of the challenges.

WorldEdit Golf is now available at and available for anyone to submit and compete in challenges!

WorldEdit Golf

Other Posts

What's new in WorldEdit 7.2?

Posted on November 03, 2020

It's been almost a year since the last big WorldEdit update. We're pleased to present WorldEdit 7.2, containing many new features, improvements, and bug fixes.

An Ode to the Minecraft Community

Posted on July 10, 2018

My journey over 8 years with the Minecraft community. From The Powder Toy, to CraftBook, AntiCheat, Sponge, and WorldEdit.

Paper vs Spigot, which should you use?

Posted on August 26, 2020

Paper and Spigot are the two leading platforms for Minecraft servers. Which is better? This article goes over the main benefits of using both platforms