Go to file
Octavia Togami f1cdd6a978
Update for Java 21
- Fix some new warnings
- Removed sponge from build, as it simply isn't maintained well
  currently. May be removed entirely in the future
- Remove 1.18 support from Bukkit as it breaks under 21 for some reason
- Fix a bug in `ForwardSeekableInputStream`
2024-04-28 18:01:48 -07:00
.github Update actions 2024-03-31 18:33:02 -07:00
buildSrc Update for Java 21 2024-04-28 18:01:48 -07:00
config/checkstyle Move adapters to paperweight (#1909) 2021-10-01 21:11:29 -07:00
contrib/craftscripts Update the CraftScript README and SUBMITTING files 2020-09-26 13:08:04 +10:00
gradle/wrapper Update Gradle to 8.7 and fix some warnings 2024-04-02 14:33:24 +10:00
verification Update for Java 21 2024-04-28 18:01:48 -07:00
worldedit-bukkit Fix warnings in platforms 2024-04-02 14:33:24 +10:00
worldedit-cli Fix warnings in platforms 2024-04-02 14:33:24 +10:00
worldedit-core Update for Java 21 2024-04-28 18:01:48 -07:00
worldedit-fabric Update for Java 21 2024-04-28 18:01:48 -07:00
worldedit-forge Update for Java 21 2024-04-28 18:01:48 -07:00
worldedit-libs Shade LinBus in -libs (#2172) 2022-08-28 18:01:29 +10:00
worldedit-mod Update Gradle to 8.7 and fix some warnings 2024-04-02 14:33:24 +10:00
worldedit-sponge Update for Java 21 2024-04-28 18:01:48 -07:00
.git-blame-ignore-revs
.gitattributes Fix gitattributes (#1681) 2021-02-21 15:40:06 -08:00
.gitignore
build.gradle.kts Add foojay to download JVMs, update to Gradle 8.5 2024-01-21 14:29:02 -08:00
CHANGELOG.txt Merge branch 'version/7.2.x' 2024-02-29 22:53:43 +10:00
COMPILING.md Java 16 required 2021-08-14 20:04:47 -07:00
CONTRIBUTING.md Forgot to update this to 16 2021-11-03 13:39:17 -07:00
crowdin-distributor.sh Update cdist 2021-06-12 00:32:56 -07:00
gradle.properties Update for Java 21 2024-04-28 18:01:48 -07:00
gradlew Update Gradle and Gradle plugins 2023-11-21 22:39:42 +10:00
gradlew.bat Update Gradle to 8.7 and fix some warnings 2024-04-02 14:33:24 +10:00
HEADER.txt
LICENSE.txt
README.md Add YourKit message to readme 2023-09-01 22:07:30 +10:00
SECURITY.md Fix terminology in SECURITY.md (#2066) 2022-03-17 18:54:05 +00:00
settings.gradle.kts Update for Java 21 2024-04-28 18:01:48 -07:00
worldedit-logo.png
worldedit-logo.svg Add outline to SVG logo for better dark mode support 2023-10-21 14:08:19 +10:00

WorldEdit

A Minecraft Map Editor... that runs in-game!

  • With selections, schematics, copy and paste, brushes, and scripting!
  • Use it in creative, survival in single player or on your server.
  • Use it on your Minecraft server to fix griefing and mistakes.

Java Edition required. WorldEdit is compatible with Forge, Fabric, Bukkit, Spigot, Paper, and Sponge.

Download WorldEdit

This place contains the Java code for WorldEdit, but if you want to just use WorldEdit, get the mod or plugin from these pages:

Edit the Code

Want to add new features to WorldEdit or fix bugs yourself? You can get the game running, with WorldEdit, from the code here, without any additional outside steps, by doing the following four things:

  1. Download WorldEdit's source code and put it somewhere. We recommend you use something called Git if you already know how to use it, but you can also just download a .zip file. (If you plan on contributing the changes, you will need to figure out Git.)
  2. Install any version of Java greater than or equal to 16.
    • Note that if you do not install JDK 16 exactly, Gradle will download it for you on first run. However, it is still required to have some form of Java installed for Gradle to start at all.
  3. Open terminal / command prompt / bash and navigate to the directory where you put the source code.
  4. Run one of these following commands:
    • Mac OS X / Linux: ./gradlew :worldedit-fabric:runClient
    • Windows - Command Prompt: gradlew :worldedit-fabric:runClient
    • Windows - PowerShell: .\gradlew :worldedit-fabric:runClient

🎉 That's it. 🎉 It takes a long time to actually transform WorldEdit into a mod. If it succeeds, the Minecraft game will open and you can create a single player world with WorldEdit.

When you make changes to the code, you have to restart the game by re-running the command for your changes to take effect. If there are errors in your Java syntax, the command will fail.

For additional information about compiling WorldEdit, see COMPILING.md.

Using a Java IDE

To edit WorldEdit in a Java IDE, follow these steps:

  1. Download and install IntelliJ IDEA Community Edition.
  2. In the IDE, open the folder that you saved WorldEdit's code in. This creates a new project in IDEA.

That's pretty much it.

If you want to be able to run the game also, follow these instructions:

  1. Go to Run -> Edit Configurations.
  2. Add a Gradle task:
    1. Choose worldedit-fabric for the project.
    2. For the tasks, type in runClient
  3. Click OK
  4. Under the Run menu again, go to "Debug [your new task]".

Speeding up the Edit-Test-Edit-Test Cycle

It's a little annoying have to restart the game to test your changes. The best way to reduce the time is to run the server instead (using runServer instead of runClient) and then reconnect to the server after restarting it.

Submitting Your Changes

WorldEdit is open source (specifically licensed under GPL v3), so note that your contributions will also be open source. The best way to submit a change is to create a fork on GitHub, put your changes there, and then create a "pull request" on our WorldEdit repository.

Please read CONTRIBUTING.md for important guidelines to follow.

Supporters

YourKit Logo

YourKit supports open source projects with innovative and intelligent tools for monitoring and profiling Java and .NET applications. YourKit is the creator of YourKit Java Profiler, YourKit .NET Profiler, and YourKit YouMonitor.