OreRegen - Create regenerating resources [Discontinued] 1.9

Create OreGens, resources that will respawn in your world after a delay [WorldGuard, McMMO support]

  1. virgili0
    Native Minecraft Version:
    1.16
    Tested Minecraft Versions:
    • 1.16
    Source Code:
    https://github.com/virgilio217/OreRegen-1.12
    For Versions 1.9 - 1.12: https://github.com/virgilio217/OreRegen-1.12/releases

    Description:
    An oregen is a block that when destroyed will regenerate itself after some time. You need to set these generators manually in your world.

    Features:
    - Works with protection plugins like world guard.
    - McMMO support to give exp, and do double drops based on skill level.
    - Custom block, replacement, delay, drops, and permission for each generator

    Planned features:
    - rewrite
    - Operator wand, so you can set generators by right clicking blocks.
    - Sound effects.

    Showcase:


    Commands:
    Only operators can use these commands, no permissions.
    - /oreregen reload
    - /oreregen set <generator>
    - /oreregen remove

    Config.yml:
    Code (YAML):
    # Should the drops be moved on the player position or on the block position
    drops-on-player
    : false
    # Should physics be disabled for all generators, leave it enabled if your planning to use falling blocks
    disable-physics
    : false # A server restart is required for this to work.
    # if disable-physics is enabled then this will act as a whitelist. You might want to modify this list if a block doesn't exist in the version you are using.
    falling-blocks
    : [SAND, RED_SAND, GRAVEL, ANVIL, CHIPPED_ANVIL, DAMAGED_ANVIL, DRAGON_EGG, WHITE_CONCRETE_POWDER, ORANGE_CONCRETE_POWDER, MAGENTA_CONCRETE_POWDER, LIGHT_BLUE_CONCRETE_POWDER, YELLOW_CONCRETE_POWDER, LIME_CONCRETE_POWDER, PINK_CONCRETE_POWDER, GRAY_CONCRETE_POWDER, CYAN_CONCRETE_POWDER, PURPLE_CONCRETE_POWDER, BLUE_CONCRETE_POWDER, BROWN_CONCRETE_POWDER, GREEN_CONCRETE_POWDER, RED_CONCRETE_POWDER, BLACK_CONCRETE_POWDER]
    # The replacement block after a generator is mined
    default-replacement
    : bedrock
    Messages
    :
      world-guard-restrict
    : '&c&lHey! &7Sorry, but you can''t break that block here.' # Sent when a player tries to break an oregen in a worldguard region with the oregen-break flag set to deny
      resource-depleted
    : '&4The resource is depleted'
      no-permission-break
    :
        oreregen.user.wood
    : '&4You need to be at least a wood master to break this resource!' # Sent when a player tries to break an oregen that requires the 'oreregen.user.wood' permission node
        another.example.permission
    : '&4You can''t break this block due to insufficient permission.'
    # Take a look at the 'wood' example generator to see all the possible things you can do.
    Generators
    :
      wood
    : # Unique id
        ore
    : oak log # You can use any block in the game, some blocks are still not fully supported, if you find one that doesn't work properly please tell me about it so I can add it
        delay
    : 300 # Delay is in seconds
        drops
    : # The custom drops for the generator "item-name: chance" chance can be from 1 to 100
          coal
    : 100 # coal and super_coal are custom items. Check items.yml
          super_coal
    : 10 # 10% chance of dropping
        permission
    : oreregen.user.wood # permission required to gather from this generator
        replacement
    : stripped oak log # Override the default-replacement by mentioning a new one here
        mcmmo
    :
          double-drops
    : true # Adds 1 to the stack based on the users skill level. Level 1 = 1% / Level 100 and beyond = 100% (WARNING: It also works with custom drops)
          type
    : Mining  # CASE SENSITIVE: Mining, WoodCutting, Excavation.
          exp
    : 1 # The amount of exp givven in said skill when mining from this gen.
      coal_ore
    :
        ore
    : coal_ore
        delay
    : 600
      redstone_ore
    :
        ore
    : REDSTONE_ORE
        delay
    : 800
      lapis_ore
    :
        ore
    : 'lapis ore'
        delay
    : 1000
      iron_ore
    :
        ore
    : iron ore
        delay
    : 1200
      gold_ore
    :
        ore
    : gold ore
        delay
    : 1600
      diamond_ore
    :
        ore
    : diamond ore
        delay
    : 1800
      emerald_ore
    :
        ore
    : emerald ore
        delay
    : 1800
     
    Items.yml:
    Code (YAML):
    #Useful links:
    # Enchantments: https://www.digminecraft.com/lists/enchantment_list_pc.php
    # Custom Model Data: https://www.planetminecraft.com/forums/communities/texturing/new-1-14-custom-item-models-tuto-578834/
    # Attributes: https://hub.spigotmc.org/javadocs/spigot/org/bukkit/attribute/Attribute.html
    # ItemFlags: https://hub.spigotmc.org/javadocs/bukkit/org/bukkit/inventory/ItemFlag.html
    # Attribute:
    #   type: https://hub.spigotmc.org/javadocs/spigot/org/bukkit/attribute/AttributeModifier.Operation.html
    #   operation: https://hub.spigotmc.org/javadocs/spigot/org/bukkit/attribute/AttributeModifier.Operation.html
    #   slot: https://hub.spigotmc.org/javadocs/spigot/org/bukkit/inventory/EquipmentSlot.html

    Items
    :
      coal
    :
        material
    : coal
        amount
    : 2
      super_coal
    :
        name
    : '&8&lSuper Coal'
        lore
    :
       - '&aLore'
        - '&7another line'
        enchantments
    :
          unbreaking
    : 1
          sharpness
    : 2
        model-data
    : 1
        unbreakable
    : true
        attributes
    :
          '1'
    :
            type
    : 'generic attack speed'
            amount
    : 1
            operation
    : 'add number'
            slot
    : 'hand'
        flags
    :
       - 'hide unbreakable'
        - 'hide placed on'
    This is one of the first releases of the plugin, there are most likely some bugs and there are still not many functionalities, feel free to start a conversation with me if you encounter any issues, you can also join my discord server if you want. https://discord.com/invite/RKrfN3y7aV
    fredelin and ccorp2002 like this.

Recent Updates

  1. Version 1.9
  2. Version 1.8
  3. Version 1.7

Recent Reviews

  1. Ut5dere
    Ut5dere
    5/5,
    Version: 1.9
    Hi, update your plugin to 1.17, thanks for your time!
    ............................
  2. dinoboss2001
    dinoboss2001
    5/5,
    Version: 1.1
    add custommodels and texturas pack , itemnbt drops? pliss thaks plugin sr.dev virgilio
    1. virgili0
      Author's Response
      Thanks for the review. I already started working on custom drops and will release an update tommorow.