An open API service indexing awesome lists of open source software.

https://github.com/f33rni/mass-replacer

Block replacing in the entire Minecraft world
https://github.com/f33rni/mass-replacer

anvil-parser forge mca minecraft minecraft-anvil nbt replacer snbt world worldedit

Last synced: 7 months ago
JSON representation

Block replacing in the entire Minecraft world

Awesome Lists containing this project

README

          

# Mass-Replacer
## Block replacing in the entire Minecraft world








YouTube
Bandcamp
Spotify
SoundCloud








----------

## Dependencies

- **Region-Manipulator** (.mca file reader/writer): https://github.com/PowerNukkit/Region-Manipulator, https://github.com/smartin1018/Region-Manipulator/tree/1.18.1
- **Commons-CLI** (Arguments parser): https://commons.apache.org/proper/commons-cli/
- **GSon** (JSON implementation): https://github.com/google/gson

----------

## Description

This application allows you to replace certain blocks (including blocks from mods) in the entire Minecraft world! This works even with very large worlds (takes more time).

Mass-Replacer copies the world, then opens each .mca file and replaces the specified blocks

----------

## How to use

1. Download and install JRE or JDK. Type `java -version` to check it
2. Download `.zip` from releases (or build from sources)
3. Unpack `.jar` and `.json` files from archive
4. Put your blocks to replace into `blocks.json`

Example:
```json
[
{
"from": "minecraft:grass_block",
"to": "minecraft:diamond_block"
},
{
"from": "minecraft:sand",
"to": "minecraft:gold_block"
}
]
```
5. Run Mass-Replacer: `java -jar Mass-Replacer-X.X-SNAPSHOT.jar -world "PATH_TO_WORLD_DIR" -out "PATH_TO_NEW_WORLD"`

Example:
```bash
java -jar Mass-Replacer-1.0-SNAPSHOT-all.jar -world "%AppData%\.minecraft\saves\New World" -out "%AppData%\.minecraft\saves\New World2"
```
6. Wait

----------

## Build from source

1. Install JDK
2. Clone repo: `git clone https://github.com/F33RNI/Mass-Replacer`
3. Run `gradle buildApp`
4. `.jar` and `blocks.json` will be in `build/libs` directory