A utility to collect all the block states from an Minecraft Anvil Region world post 1.13 flattening.
The tool used to collect the region in a JSON format is made by @MrPingouinMC. It can be found here: https://github.com/MrPingouinMC/nbtToText/releases/tag/1.0
This utility is under the MIT license.
A list generated using this method is in a gist - here. This list has no copyright, and the code is under the MIT license as at the project root.
The format of the generated file is as follows:
{
"<block ID (EG minecraft:stone)>":{
"states":{
"stateName":["valueOption1","valueOption2"]
}
}
}
N.B the states
key is not generated if the block has no available states.
However, once it has been released, you'll need to follow these steps:
- Click
Download ZIP
above, and extract the zip into the folder - Create a debug world. This can be done by shift-left-clicking the world type option a few times.
- Open the world folder, and the folder within it called
region
. - Copy the file called r.0.0.mca into the root of where you extracted your zip.
- Use the
region -> JSON
tool provided by MrPingouin, found here. Rename the generated file toregion.json
. - Compile the program by running
tsc -p ./
from your extracted folder. - Run the program using
node index
. - Use the output in
blockstates.json
.