Ore Regeneration and Mines icon

Ore Regeneration and Mines -----

Mines and regenerating ore nodes



This plugin mainly does two things:
You can make mines/regions and ore nodes

The regions work will all blocks, including crops.

How to do the regions
To find out how regions and some of the other commands work, check out these videos!

Dynamic Region tutorial!


Regular Region tutorial!


To set the weights for replaceWith and replenishAs, when in their gui sections, you right-click on the material you want to set a type a whole number integer.

How rolling a block will go will be as follows:

Given this list:

GOLD_ORE,10

IRON_ORE,50

STONE,160


  1. The maximum weight is selected as the upper (exclusionary) boundary for the random number roll, meaning in this case, a number from 0-160 will be rolled.

  2. When a number is rolled, all potential blocks are checked from lowest to greatest weight. If the block’s chance is less than or equal to the roll, it and all other blocks with the same weight are put into a list and a random (equal chances) block is chosen from that list.

This means that Stone can only be rolled when 50 < roll <= 160, Gold Ore when roll <= 10, and Iron Ore when 10 < roll <= 50



You may be wondering, how do I configure the ore generators? Well this Action happens in the drops.yml

As shown below, you can also change the blocks for all block-types in a region by having your region name under the regions section and following the same process that you would for setting the drop of a node.
ex.
Code (YAML):
blocks:
  DIRT
:
    drops
:
      DIAMOND
:
        name
: '&2Test Item'
        lore
:
       - '&6Optional line'
        - '&2Second line'
        max-drop
: 5
        min-drop
: 1
    replenishTime
: 100
regions
:
  example_region
:
    DIRT
:
      drops
:
        DIAMOND
:
          max-drop
: 5
          min-drop
: 1
          name
: '&2Test Item'
          lore
:
         - '&6Optional Line'
          - You can delete this btw
 
For ore generators, by default if you don't mess with the drops.yml will drop their respective block. But if you want to customize block drops or the replenish time this is where you go. Underneath the blocks: section, you can put as many Materials as you want just make sure to follow the format. If you want to customize drops, you'd put drops: under the respective material and then list the name of the materials you want to drop as shown above. (Note: putting multiple drops means a random one will be selected when the block is mined). replenishTime: works exactly the same as the one in locations.yml.




Possible Questions:
How do I remove a generator?
Well if you're the one who placed the generator, then you're in luck! Just right click the generator block and then click on the item named yes. This will drop the generator and remove it from the world. If you aren't the one who placed it, you arent out of luck as long as you are a staff member or have permissions which will be listed below.

Will blocks that haven't regenerated yet still regenerate during a server reload/restart?
Yes. Assuming you didn't delete nodes.yml or regions.yml which stores nodes and regions, when you restart your server and the blocks still haven't replenished, they will automatically replenish while your server shuts down!

How do I get an Ore Generator????
Well if you have the proper permissions, type /node with the block in your hand and it will convert it into an Ore Generator! If you don't want to use commands, any block that contains the name "Generator" in the color blue will function as a generator. (&9 being the color code)

How do I create a mine!?
To create a mine, you need a wand. To get a wand, type /regionWand to get a wand. left click to set your first position and right click for the second, works similarly to world edit. After it will ask you to name the region and to do that, just type out the name in chat!

Permissions:
oreGen.commands: (allows use of commands not mentions)
- oreGen.commands.node (allows the use of /node)
- oreGen.commands.delete (allows use of /deleteregion)
- oreGen.commands.editmode (allows use of /editmode)

oreGen.regions:
- oreGen.regions.editor (allows player to edit regions when in edit mode)
- oreGen.regions.noderemover (allows player to remove oregenerator when they arent the owner)

Commands:
/node
(allows player to turn block they are holding into ore generator)

/regionwand
(gives player regionwand to make regions

/showborder [region name]
(Shows border of specified region)

/editmode [region name] [on/off]
(turns editmode on/off in specified region)

/regionlist
(Gives a list of all existing regions)

/reloadconfig
(Reloads all config files in Ore Regeneration!)

/region
(Opens region gui when used as /region [regionname])

/region [region] setPlaceMsg [msg]
(Sets the message that will play when a player is stopped from placing a block in a region. Leave an empty message to have no message.)


/region [region] setBreakMsg [msg]
(Same as above except plays when a player is stopped from breaking a block.)


/region [region] setFullmsg [msg]
(Sets the message that will play when the “drop in inventory” option is enabled in a region and a player’s inventory is full.)


/region [region] setBreakSound [sound] [volume] [pitch]
(Sets the sound that will play when you break a block on top of the blocks default break sound (I can’t remove this as far as I’m aware of). See the tabcompleter for available sounds. (It is all of the default minecraft sounds))


/region [region] removeBreakSound
(This will clear the added break sound from the region)


/region [region] setPickupMsg [material-name] [msg]
(This will set the message that plays when you have the “drop in inventory” option enabled in a region and an item is added to the players inventory. You can use [x] as a place holder for # of items of a type received.)





If you want to only edit regions through text, here is an example of a region with all options on it
Code (YAML):
regiontest:
    canBreak
:
      STONE
:
        replaceWith
:
       - COBBLESTONE,1
        replenishTime
: 140
        replenishAs
:
       - GOLD_ORE,20
        - IRON_ORE,65
        - STONE,100
        replaceAs
: [ ]
      COBBLESTONE
:
        replaceWith
:
       - BEDROCK
        replenishTime
: 40
      IRON_ORE
:
        replaceWith
:
       - STONE
        replenishTime
: 40
        replenishAs
:
       - STONE,1
      GOLD_ORE
:
        replaceWith
:
       - STONE
        replenishTime
: 40
        replenishAs
:
       - STONE
    pvp
: false
    mobs-spawn
: false
    pos1
: i,63,3,19
    pos2
: i,57,9,12
    break-msg
: 'test '
    break-sound
:
      name
: BLOCK_ANVIL_FALL
      volume
: 1.0
      pitch
: 1.0
    full-msg
: 'full_inventory '
    pickup-msg
:
      GOLD_ORE
: '+ [x ] gold ore! '
    dropInInventory
: true
    dropOnPlayer
: false
    givePlayerXp
: false
IMPORTANT INFO:
Replenish rates over 20 minutes get overruled by the auto-replenishment system in the plugin


Do you still have questions? Need support? Find a bug?
Please leave a review so I can hear what you think!
Contact me on discord at Meep#8596! (Now meep8496)
Resource Information
Author:
----------
Total Downloads: 5,425
First Release: Feb 5, 2021
Last Update: Aug 5, 2024
Category: ---------------
All-Time Rating:
16 ratings
Version -----
Released: --------------------
Downloads: ------
Version Rating:
----------------------
-- ratings