This is a repository containing a Minecraft Dedicated Server setup for datapack development on Windows. It contains 3 different configurations to initialize the server.
The datapacks are loaded consistently by linking all /datapacks folders from each world to the Datapacks folders via symbolic links.
Run_World.py- Runs the server in a fixedworldsave, default generationRun_Superflat.py- Runs the server in a fixedsuperflatsave, flat generationRun_Temporary.py- Runs the server in atemporarysave that gets erased before execution, default generation
-
Run
Setup.py, this will create the folders and symlinks required for theDatapacksfolder to work- Note: This script will ask for administrator priviledges as symlinks can't be created without it
-
Download
server.jarfrom the Minecraft version you want to run- Recommended 1.21.x and above
- You can find the file through one of the following links:
- https://www.minecraft.net/en-us/download/server
- https://minecraft.wiki/w/Java_Edition_1.21.5
- The download is in the infobox on the right
- You can find server files from older versions using this method
-
Move your
server.jarfile into theServerdirectory and executeRun.bat- Check the wiki if it fails to run or you want to modify parameters/RAM usage
-
Accept the EULA by changing
eula.txt -
Change server.properties to your liking
-
The following properties will be overwritten when using the python scripts, no need to change them
- level-name
- level-type
-
Noteworthy changes: (from personal testing)
Property Description enable-command-block This is required for command blocks to run online-mode If you plan on using offline mode alts or pirated players to test, turn this on. NOTE: This will allow ANYONE to join as YOU, careful with OP players spawn-protection This may be annoying if you need to test with other non-OP players, as blocks near spawn will be unbreakable for them -
You can find more info about
server.propertieson the wiki
-
-
Done! you can now run one of the python scripts to start the server!
- NOTE: You can only run ONE script at a time. If you want to change maps you'll have to
stopthe server and execute the other script. Setup.pyis no longer needed if the symlinks are set correctly, you can delete it if you want to
- NOTE: You can only run ONE script at a time. If you want to change maps you'll have to