Root Generator - DerFrZocker/Custom-Ore-Generator GitHub Wiki

Root Generator

The ROOT_GENERATOR creates branching, root-like ore formations. This generator is suitable for creating complex, interconnected ore veins.

Settings

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 the ROOT_LENGTH for subsequent branches. This makes branches shorter as they extend.
  • LENGTH_SUBTRACTION_RANGE: The range (in addition to MINIMUM_LENGTH_SUBTRACTION) from which a random value is subtracted from the ROOT_LENGTH for subsequent branches.
  • MINIMUM_CHANCE_SUBTRACTION: The minimum amount subtracted from the CONTINUE_CHANCE for subsequent branches. This makes branches less likely to continue as they extend.
  • CHANCE_SUBTRACTION_RANGE: The range (in addition to MINIMUM_CHANCE_SUBTRACTION) from which a random value is subtracted from the CONTINUE_CHANCE for subsequent branches.
  • MINIMUM_TRIES_SUBTRACTION: The minimum amount subtracted from the CONTINUE_TRIES for subsequent branches.
  • TRIES_SUBTRACTION_RANGE: The range (in addition to MINIMUM_TRIES_SUBTRACTION) from which a random value is subtracted from the CONTINUE_TRIES for subsequent branches.
  • DOWN_CHANCE: The percentage chance that a branch will extend downwards.

Example Usage

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



⚠️ **GitHub.com Fallback** ⚠️