Root Generator - DerFrZocker/Custom-Ore-Generator GitHub Wiki
The ROOT_GENERATOR
creates branching, root-like ore formations. This generator is suitable for creating complex, interconnected ore veins.
This generator utilizes the following settings, configurable via the /oregen set value
command:
-
ROOT_LENGTH
: The initial length of the main root. This determines how far the primary branch extends. -
CONTINUE_CHANCE
: The percentage chance that a root branch will continue to extend or create a new sub-branch. -
CONTINUE_TRIES
: The number of attempts to continue a root or create a new branch at each step. -
MINIMUM_LENGTH_SUBTRACTION
: The minimum amount subtracted from theROOT_LENGTH
for subsequent branches. This makes branches shorter as they extend. -
LENGTH_SUBTRACTION_RANGE
: The range (in addition toMINIMUM_LENGTH_SUBTRACTION
) from which a random value is subtracted from theROOT_LENGTH
for subsequent branches. -
MINIMUM_CHANCE_SUBTRACTION
: The minimum amount subtracted from theCONTINUE_CHANCE
for subsequent branches. This makes branches less likely to continue as they extend. -
CHANCE_SUBTRACTION_RANGE
: The range (in addition toMINIMUM_CHANCE_SUBTRACTION
) from which a random value is subtracted from theCONTINUE_CHANCE
for subsequent branches. -
MINIMUM_TRIES_SUBTRACTION
: The minimum amount subtracted from theCONTINUE_TRIES
for subsequent branches. -
TRIES_SUBTRACTION_RANGE
: The range (in addition toMINIMUM_TRIES_SUBTRACTION
) from which a random value is subtracted from theCONTINUE_TRIES
for subsequent branches. -
DOWN_CHANCE
: The percentage chance that a branch will extend downwards.
To set the ROOT_LENGTH
for an ore configuration named my_root_ore
:
/oregen set value my_root_ore ROOT_LENGTH 15
To set the CONTINUE_CHANCE
:
/oregen set value my_root_ore CONTINUE_CHANCE 70
To set the DOWN_CHANCE
:
/oregen set value my_root_ore DOWN_CHANCE 20