OreGenerator 1.0

Add random ores to your cobblestone generators

  1. Pirgosth
    Native Minecraft Version:
    1.15
    Tested Minecraft Versions:
    • 1.15
    Source Code:
    https://github.com/Pirgosth/OreGenerator
    Contributors:
    Pirgosth
    Description:
    • OreGenerator is a simple plugin that allows you to generate random ores (or blocks) from natural cobblestone generation (with lava and water).
    • You can add as many blocks as there are in Minecraft, not only ores.
    • You only have to care that the sum of probabilities hit one (and no more).
    Configuration:

    config.yml:

    • debug: true/false - Display additionnal informations into console, for developers only.
    • blocks: id - The blocks that will be generated randomly
    This is the default behaviour of Minecraft:

    Code (YAML):
    blocks:
      default
    :
        material
    : COBBLESTONE
        probability
    : 1.0
    Note: default is a special entry that define the probability of cobblestone generation, and must always figure out first in blocks if you do not want to have some strange issues.

    If you want to add a new block, simply add a new entry in blocks, like this one:
    Code (YAML):
    blocks:
      id
    :
        material
    : MATERIAL
        probabillity
    : p
    Where MATERIAL is the material of the block and p the apparitition probability of block.

    A complete list of valid Material names can be find here: https://hub.spigotmc.org/javadocs/spigot/org/bukkit/Material.html

    Exemple:
    Code (YAML):
    blocks:
      default
    :
        material
    : COBBLESTONE
        probability
    : 0.85
      iron
    :
        material
    : IRON_ORE
        probability
    : 0.15
    This adds Iron ore with a probability of 15% to appears.

    Note: If you want to get ride of cobblestone, do not remove the default entry, simply set its probability to 0.

    Default configuration:
    Code (YAML):
    debug: false
    enabled-worlds
    : []
    blocks
    :
      default
    :
        material
    : COBBLESTONE
        probability
    : 0.788
      iron
    :
        material
    : IRON_ORE
        probability
    : 0.1435
      gold
    :
        material
    : GOLD_ORE
        probability
    : 0.015
      redstone
    :
        material
    : REDSTONE_ORE
        probability
    : 0.03
      lapis
    :
        material
    : LAPIS_ORE
        probability
    : 0.012
      diamond
    :
        material
    : DIAMOND_ORE
        probability
    : 0.01
      emerald
    :
        material
    : EMERALD_ORE
        probability
    : 0.001
      emerald-block
    :
        material
    : EMERALD_BLOCK
        probability
    : 5.0E-4

    Commands:

    There's only a few commands, to manage your worlds and set where you want the plugin to be enabled. Every command starts with
    • /og enable [world]
    Enable OreGenerator in world world (if no world is provided, it will take the player current world)​
    • /og disable [world]
    Disable OreGenerator in world world (if no world is provided, it will take the player current world)​
    • /og list
    List all active worlds​
    • /og reload
    Reload configuration from config.yml.
    Permissions:

    You can find here the permission list:
    • og.disable: Allows /og disable command
    • og.enable: Allows /og enable command
    • og.list: Allows /og list command
    • og.reload: Allows /og reload command
    • og.*: Grant wildcard permissions