Description

Block Variation is a mod intended for pack makers that want to spice up the block variation in their world generation. This mod achieves this through JSON files.
NOTE: IF YOU ARE UPDATING THROUGH A MINOR VERSION (1.X.0) OR A MAJOR VERSION (X.0.0), I RECOMMEND RELOADING YOUR EXAMPLE JSONS AND REMAKING YOUR CUSTOM JSONS ACCORDING TO THE NEW EXAMPLES, AS THESE VERSIONS ADD NEW FEATURES NOT IN THE PREVIOUS VERSION.
GETTING STARTED
In order to get started, simply load the mod into your environment, and it will generate a folder named blockvariation in your config folder with an example.json file. The example.json file contains an example of what a sample block variation JSON file should look like. This example file won't ever be loaded into the game. It's there for reference. From here, you can create your own JSON files that contain what you want. Reload the game in order to load in those files and have them parsed to proper blocks and chances to spawn.
JSON STRUCTURE
The structure is fairly self explanatory:
mask is a string value which represents the block you want to replace. It should be namespaced properly, like "minecraft:stone".
randomType defines how the randomization will occur. As of 1.1.0, the types are RANDOM and SIMPLEX.
blockChanceMap is a map object which holds a set of strings and doubles. These represent the namespaced blocks (ie "minecraft:cobblestone") and their chance, in decimal format, of appearing.
depthRange is an array filled with two numbers: A minimum value, and a maximum value. They represent the Y-level range on which this file operates.
scale is a SIMPLEX exclusive parameter that represents how big the simplex blobs will be. The higher the number, the bigger the blobs.
MODPACKS
You are free to use this in your modpack! A little bit of credit is always nice, but is optional.



