Skip to content

shurik204/map-prepare

Repository files navigation

map-prepare

Automatically prepare Mineraft map for release. Tested on 1.16 and 1.17. Supposedly works on all 1.13+ versions.

Current state: state: works fine

Make sure you have backups of your world before running this program!

Things it currently does:

  • Delete extra files from world like session.lock, playerdata, stats, advancements, DIM-1, DIM1 folders (Including any other files/folders that shouldn't normally be in the world folder)
  • Remove empty chunks and sections from the world. Chunk or section considered empty if there are no blocks other than "minecraft:air" and no entities.
  • (New) Remove chunks by InhabitedTime value.
  • Generate tag fix and no vanilla advancement datapacks for required version. There is also an option to disable vanilla datapack.
  • Change DataVersion value to current (or specified in config) value everywhere it can find (all storages, region files, structures).
  • Set fancy name for the world, switch gamerules, lock difficulty, enable/disable commands in singleplayer
  • Zip all datapacks
  • Zip and add resourcepack to the world if provided
  • Update pack_format in resourcepack and datapacks
  • Run regex replace pattern on all command blocks

How to use

Download

Windows Download

Linux Download

MacOS Download

Move it to some folder along with the world you're gonna use it on and run it for the first time. If your world folder isn't named world, change the folder name in config.json and run it again.

A file named [your_world_folder]-map-prepare.json should've appeared in the folder. Change settings you need and relaunch the program.

Alterantive (old) download

Get source code

git clone https://github.com/shurik204/map-prepare.git

or in a ZIP archive [here]

Open cmd in folder where you downloaded program (bash or whatever shell you have on linux or macos)

Install dependencies

python -m pip install -r requirements.txt

For Linux users:

pip3 install -r requirements.txt

Before running it make sure you copy your world into the folder with program and change world in config.json to your world folder name.

Run:

python -m map_prepare

A file named [your_world_folder]-map-prepare.json should've appeared in the folder. Change settings you need and relaunch the program.

About

Automatically prepare your Minecraft maps for release

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages