This Python script adeptly transforms Minecraft NBT structure
files into JSON, tailors the JSON content using criteria from
searchterms.txt and replacements.txt, and then meticulously
reconverts the JSON back into NBT format for seamless Minecraft integration.
- python -
3.8 - nbtlib -
1.12.1
-
Input blocks you want to replace into searchterms.txt
-
Add blocks youre replacing to replacements.txt
NOTE : The 2 txt files are direct line for line replacements, what ever is on line 69 in searchterms.txt is replaced by line 69 in replacements.txt
-
Open
path.pyand add the path to the structures folder you want to modify,E.G. - "B:\Modded Minecraft\instances\FirmaLand2\kubejs\data\dungeons_arise\structures"
This path is directly copied from Windows File Explorer
-
Install
python 3.8or higher -
Install specifically this verion of nbtLib
pip install "nbtlib==1.12.1" -
Enter command
python .\fullProcess.pyto run all scripts and automatically alter all the nbt files in the directory/sub directories