ElementalRegen | Regenerate, create, and customize blocks [1.8 - 1.21] ✨ icon

ElementalRegen | Regenerate, create, and customize blocks [1.8 - 1.21] ✨ -----

Edit drops, regen type, requeriments, specific materials, delay, and more.



[​IMG]
[​IMG]

[​IMG]
ElementalRegen is a plugin that provides a customizable way to manage the regeneration of mined blocks. With this plugin, administrators can easily configure which blocks will automatically regenerate after being mined, set regeneration delays, required mining tools, sounds, effects, custom commands, custom drops and more. Regions are created using the WorldEdit axe, with support for WorldGuard.
Features:
value: (custom heads)
Now you can regenerate into custom heads.
replace-block: Block that replaces the broken block.
regen-delay: Time in seconds for the block to regenerate to its original type.
money: Amount of money given to the player when the block is broken.
job-need: Job required to break the block.
commands: Commands executed by the console when the block is broken.
player-commands: Commands executed by the player when the block is broken.
custom-item: Create your own items for drops and events.
tool-required: Tools required to break the block.
enchant-required: Enchantments required to break the block.
particles: Particle effects displayed when the block is broken.
sound: Sound played when the block is broken.
natural-break: Defines if the block drops items or not (true/false).
drop-naturally: Defines if items are placed in the player's inventory or dropped on the ground.
drop-item: Configuration for the items that are dropped, including:
  • material: Item material.
  • name: Name of the dropped item.
  • lores: Lore lines for the dropped item.
  • amount: Number of items dropped.
exp: Configuration for experience given when breaking the block.
event: Configuration for special events related to the block, including:
  • event-name: Name of the event.
  • bossbar: Configuration for the boss bar display during the event.
  • double-drops: Whether to double the drops (true/false).
  • double-exp: Whether to double the experience (true/false).
  • commands: Commands executed during the event.
  • custom-item: Configuration for custom items dropped during the event.
regenerate-into: Type of block the broken block regenerates into (can be defined with probabilities).
regeneration-particles: Particle effect when the block regenerates.

[​IMG]
  • /ElementalRegen reload
    Reloads the plugin, allowing changes to take effect without restarting the server.

  • /ElementalRegen debug
    Activates debug mode, causing debug messages to appear in the chat for troubleshooting purposes.

  • /ElementalRegen bypass
    Grants the player the ability to bypass block regeneration, preventing specific blocks from regenerating after being broken.

  • /ElementalRegen check
    Allows players to check the correct material name to use by hitting a block, providing clarity on block identification.

  • /ElementalRegen tools
    Provides players with tools for defining regions, facilitating easier management and customization.

  • /ElementalRegen regions
    Lists all defined regions, offering an overview of existing regions within the game world.

  • /ElementalRegen region set <name>
    Creates a region based on the player's selection, allowing for the definition of custom areas for unique gameplay experiences.

  • /ElementalRegen region all <name>
    Switches to "all presets" mode for the specified region, adjusting settings universally across all presets within that region.

  • /ElementalRegen region add <name> <preset>
    Adds a preset to the specified region, configuring specific settings for blocks and regeneration behavior within that region.

  • /ElementalRegen region remove <name> <preset>
    Removes a preset from the specified region, adjusting or removing specific settings associated with that preset.

  • /ElementalRegen region clear <name>
    Clears all presets from the specified region, allowing for a fresh start or reconfiguration of settings within that region.

  • /ElementalRegen region copy <region-from> <region-to>
    Copies configured presets from one region to another, streamlining the setup process for similar regions.

  • /ElementalRegen region delete <name>
    Deletes the specified region, removing all associated presets and settings from the game world.

  • /ElementalRegen regen (-p <preset>) (-r <region>) (-w <world>)
    Initiates the regeneration process for presets based on specified arguments, facilitating dynamic block regeneration within defined regions and worlds.

  • /ElementalRegen events
    Manages events within the plugin, allowing for the configuration and activation of special gameplay events.

  • /ElementalRegen discord
    Provides a Discord invite link for the ElementalRegen community, offering support and discussion opportunities outside the game.
[​IMG]
  • ElementalRegen.admin
    Description: Grants access to all plugin commands and features.
    Default: Operator (op)
    • ElementalRegen.tools
      Grants access to tools for defining regions.

    • ElementalRegen.debug
      Allows activation of debug mode to receive debug messages.

    • ElementalRegen.bypass
      Provides the ability to bypass block regeneration.

    • ElementalRegen.check
      Allows players to check the correct material name to use by hitting a block.

    • ElementalRegen.select
      Enables the selection of regions for customization.

    • ElementalRegen.region
      Grants permission to manage regions, including creation, modification, and deletion.

    • ElementalRegen.regen
      Authorizes the initiation of the regeneration process for presets based on specified arguments.

    • ElementalRegen.events
      Allows management of events within the plugin, including configuration and activation of special gameplay events.
[​IMG]

Multiverse-Core
Vault
WorldEdit
GriefPrevention
PlaceholderAPI
WorldGuard

[​IMG]

Code (Java):

# /////////////////////////////////////////////////////#
# ElementalRegen                                      #
# author - CinturonCris                               #
# for All !                                            #
# /////////////////////////////////////////////////////#

# ////////////////////////////////////////////////////////////////////////////////////////////////
## Enable if you want to see more information about the plugins functions. ///
Debug -Enabled : false
# ////////////////////////////////////////////////////////////////////////////////////////////////
## If you have WorldEdit installed and wish to make and use regions then set this to true. ///
Use -Regions : true
# ////////////////////////////////////////////////////////////////////////////////////////////////
## Set this to true if you dont want blocks to be regenerated in Towny towns. ///
Towny -Support : true
# ////////////////////////////////////////////////////////////////////////////////////////////////
## Set this to true if you have issues with GriefPrevention. ///
GriefPrevention -Support : true
# ////////////////////////////////////////////////////////////////////////////////////////////////
## Set this to true if you want to tolerate WorldGuard protection. ///
WorldGuard -Support : true
# ////////////////////////////////////////////////////////////////////////////////////////////////
## If you wish to cancel all other blocks broken besides the blocks in Blocklist. yml set this to true. ///
Disable -Other - Break : true
# ////////////////////////////////////////////////////////////////////////////////////////////////
## If you wish to cancel all other blocks broken in the region then set this to true. ///
Disable -Other -Break -Region : true
# ////////////////////////////////////////////////////////////////////////////////////////////////
## Automatically bypass regeneration and protection when in Creative. ///
Bypass -In -Creative : true
# ////////////////////////////////////////////////////////////////////////////////////////////////
# Add the worlds you wish to use ElementalRegen in to this list. ///
Worlds -Enabled :
  - world
  - world_nether
# ////////////////////////////////////////////////////////////////////////////////////////////////
## Automatic saving for regeneration process cache. ///
Auto -Save :
  Enabled : true
  # Interval in seconds. ///
  Interval : 600
 
Code (Java):
# /////////////////////////////////////////////////////#
# ElementalRegen                                      #
# author - CinturonCris                               #
# for All !                                            #
# /////////////////////////////////////////////////////#

Insert -Prefix : true
Messages :
  Prefix : '&6ElementalRegen &r'
  Update : | 2 -

    &7A new update was found !
    &7Current version : &c %version %
    &7New version : &a %newVersion %
  Insufficient - Permission : '&cYou don' 't have the permissions to do this!'
  Console -Sender - Error : '&cI' 'm sorry but the console can not perform this command!'
  Invalid -Command : '&cThis is not a valid command!'
  Too -Many -Arguments : |-
    &cToo many arguments.
    &7Use : &f %help %
  Not -Enough -Arguments : |-
    &cNot enough arguments.
    &7Use : &f %help %
  Reload : '&aSuccessfully reloaded Settings.yml, Messages.yml, Blocklist.yml & re-filled
    the events!'

  Tools : '&7Gave you the tools.'
  Unknown -Argument : '&cUnknown argument.'
  Bypass -On : '&aBypass toggled on!'
  Bypass -Off : '&cBypass toggled off!'
  Debug -On : '&aYou are now listening to debug messages.'
  Debug -Off : '&cYou are no longer listening to debug messages.'
  Data -Check : '&eThe correct name to enter in the config is: &d%block%'
  Data -Check -On : '&aEntered Data-Check mode!'
  Data -Check -Off : '&cLeft Data-Check mode!'
  No -Region -Selected : '&cSelect a region with WorldEdit first.'
  Duplicated -Region : '&cThere is already a region with that name!'
  Set -Region : '&7Region &f%region% &7successfully saved!'
  Remove -Region : '&aRegion successfully deleted!'
  Unknown -Region : '&cThere is no region with that name!'
  Could -Not -Create -Region : '&cCould not created a region.'
  Select -First : '&7Set first position to &f%x%, %y%, %z%.'
  Select -Second : '&7Set second position to &f%x%, %y%, %z%.'
  Set -All : '&7Region set to %s &7presets.'
  Invalid -Preset : '&cPreset %preset% does not exist.'
  Has -Preset -Already : '&7Region &f%region% &7has preset &f%preset% &7already.'
  Does -Not -Have -Preset : '&7Region &f%region% &7does not have preset &f%preset%.'
  Preset -Added : '&7Added preset &f%preset% &7to region &f%region%.'
  Preset -Removed : '&7Removed preset &f%preset% &7from region &f%region%.'
  Presets -Cleared : '&7Presets cleared from region &f%region%.'
  Presets -Copied : '&7Copied presets from &f%regionFrom% &7to &f%regionTo%.'
  Regenerated -Processes : '&7Regenerated &f%count% &7process(es).'
  Activate - Event : '&aYou activated the event: &2%event%'
  De -Activate - Event : '&cYou de-activated the event: &4%event%'
  Event -Not -Found : '&cThis event is not found in the system. Reminder: event names
    are case sensitive!'

  Event -Already -Active : '&cThis event is already active!'
  Event -Not -Active : '&cThis event is currently not active!'
  Tool -Required - Error : '&cYou can only break this block with the following tool(s):
    &b%tool%&c.'

  Enchant -Required - Error : '&cYour tool has to have at least one of the following enchantment(s):
    &b%enchant%&c.'

  Jobs - Error : '&cYou need to reach following job levels in order to break this block:
    &b%job%'

  Permission - Error : '&cYou don' 't have the permission to break this block.'
 
Code (Java):

# /////////////////////////////////////////////////////#
# ElementalRegen                                      #
# author - CinturonCris                               #
# for All !                                            #
# /////////////////////////////////////////////////////#

# Note : You can remove a part of the section to ignore its function.
# Note no.2 : Most Strings (commands, names, lores ) allow PlaceholderAPI placeholders.
# Note no.3 : Most Amounts (money, regen -delay, amount ) support dynamic amounts (random ) with a low and high.

Blocks :
  ## The block that gets broken ///
  GOLD_ORE :
    ## The block to replace it with. ///
    replace -block : STONE
    ## The delay in which this block regenerates to its original block type in seconds.
    ## Should be kept above 1 ///
    regen -delay : 7
    ## Vault money given to player when he breaks the block.
    ## Requires Vault and an Economy plugin installed. ///
    money : 1000
    ## If "value:" is activated.
    value : (your texture here )
    ## Command (s ) executed by console once the block is broken. ///
    console -commands :
      - 'say Look the ElementalRegen plugin works!'
    ## Command (s ) executed by the player. ///
    player -commands :
      - 'me I, %player%, executed this command'
    ## Tools required to break this block.
    ## If they don 't have this tool they get an error message (Messages.yml)///
    tool-required: DIAMOND_PICKAXE, IRON_PICKAXE
    ## Enchants required to break the block.
    ## You can, but don'
t have to, specify a minimum level required .
    ## If they don 't have this enchant they get an error message (Messages.yml)///
    enchant-required: FORTUNE;2, MENDING
    ## On break there can be particles displayed, Example custom particles:
    # critic_wave
    # fireworks
    # flame_crown
    # glimmer_dust
    # mystic_glare
    # sparkle_burst
    # witch_spell
    # twinkle_stars
    particles: twinkle_stars
    ## Sound to play on location when the block is broken.
    ## Pay attention to the id according to your version!.///
    sound: ENTITY_EXPERIENCE_ORB_PICKUP
    ## WARN!
    ## Give drops, exp and amount as it would be in vanilla.
    ## Set this to false to use custom drops.///
    natural-break: false
    ## Affects all item drops, except for events.
    ## false == places the item in players inventory, if it'
s full, drops it on the ground.
    ## true == drops it on the ground. ///
    drop -naturally : false
    ## Only works when natural - break is set to false. ///
    drop -item :
      ## The material of the dropped item. ///
      material : GOLD_INGOT
      ## The name that is given to the dropped item. ///
      name : "&e&lSUPERIOR GOLD INGOT"
      ## Lore applied to dropped item. ///
      lores :
        - ' '
        - '&7Super gold ingot'
        - '&7mined by &f%player%'
        - ' '
        - '&a&lRARE'
      exp :
        ## false == exp is added directly to players exp bar. ///
        ## true == drops it on the ground. ///
        drop -naturally : true
        ## Amount of exp dropped. ///
        amount : 100
      ## Enchantments and their corresponding levels you want to add to the dropped item.
      ## Note that these enchants are relative to your server version. The plugin will display a warning if any of the are invalid. ///
      enchants :
        - 'FORTUNE:2'
      ## ItemFlags that you want added to the item.
      ## Valid options : HIDE_ATTRIBUTES, HIDE_DESTROYS, HIDE_DYE, HIDE_ENCHANTS, HIDE_PLACED_ONE, HIDE_POTION_EFFECTS, HIDE_UNBREAKABLE. ///
      flags :
        - 'HIDE_ENCHANTS'
      ## How many should the player get ?.
      ## This generates a random number between, in this case, 0 and 5.
      ## Can be used everywhere where a number is needed. for ex. regen -delay, money, amount. ///
      amount : 0 - 5
    ## It can double drops on specific ores, give double exp or make ores have a chance of dropping custom equips.
    ## Not wish to use this ? You can completely remove it without getting null errors.
    ## Below is an example. Read more info on the spigot updates page. ///
    event :
      ## Event display name, the preset (block ) name is used in commands. ///
      event -name : '&3Double Diamonds'
      ## Display a boss bar for all players when the event is active. ///
      bossbar :
        ## Text to be displayed. ///
        name : "&cJoe&b, there's diamond everywhere!"
        ## Color of the boss bar.
        ## Options : BLUE, GREEN, PINK, WHITE, YELLOW, RED, PURPLE, ALL COLORS MAN !... ///
        color : BLUE
        ## Style of the boss bar.
        ## Options : SOLID, SEGMENTED_6, SEGMENTED_10, SEGMENTED_12, SEGMENTED_20. ///
        style : SOLID
      ## Should we double the drops or exp ?. ///
      double -drops : true
      double -exp : false
      ## You can also use rewards from the root section (console -commands (aka commands ), player -commands, drop -item, etc. ). ///
      commands :
        - 'say Hello, Im Cris testing the event.'
      custom -item :
        amount : 1
        material : LEATHER_BOOTS
        name : "&6Fancy shoes"
        lores :
          - "&fCris, look at these shoes!"
          - "&e&oBling bling bling haha"
        drop -naturally : false
        ## How rare it is to get the item. In this case a 1 in 50 chance of getting it.
        ## Can 't use a random (low & high) number here.///
        rarity: 50
   
  #####                         #####
  ##### Blocks chaining example #####
  #####                         #####
 
  ## Coal regenerates into Iron, Iron into Gold, Gold back to Coal.///
  COAL_ORE:
    replace-block: STONE
    regenerate-into: IRON_ORE
    regen-delay: 3
    drop-naturally: true
  IRON_ORE:
    replace-block: STONE
    regenerate-into: GOLD_ORE
    regen-delay: 5
    drop-naturally: true
  HAY_BLOCK: ## HI BLOCK! XD
    replace-block: STONE
    regenerate-into: COAL_ORE
    regen-delay: 10
    drop-naturally: true

  #####                                                 #####
  ##### Block chance example with simple block chaining #####
  #####                                                 #####

  ## When you mine a stone, there'
s a 20 % chance it will regenerate back into emeralds, but 80 % that it will turn to stone.
  ## There 's also a 50-50 chance it will turn into cobblestone, or bedrock.///
  STONE:
    replace-block: COBBLESTONE:50;BEDROCK
    regenerate-into: EMERALD_ORE:20;STONE
    regen-delay: 3
    natural-break: false
 
  ## Then if you mine the emerald ore, it gives you your reward, has a 50% chance to replace with STONE of COBBLE when regenerating.
  ## Then it turns into emerald, or stone again.///
  EMERALD_ORE:
    replace-block: STONE:50;COBBLESTONE
    regen-delay: 2-10
    regenerate-into: EMERALD_ORE:10;STONE
    natural-break: false
    regeneration-particles: block_frame
    drop-item:
      material: emerald
      amount: 1
      name: '
&aA cute emerald '
      lores:
        - '
&7Mined with &dMysterious Weapon &7by &f %player % '

#End.

[​IMG]

Creating a Region with WorldEdit and Configuring Block Regeneration
Hey there! Ready to create a region and set up block regeneration with WorldEdit and ElementalRegen? Follow these simple steps to get started.

  1. Select Your Region with WorldEdit:
    • Use WorldEdit Tools: Grab your WorldEdit wand (usually a wooden axe) and select two opposite corners of your region. Left-click one corner and right-click the opposite corner to define the area.
    • Define the Region: Once you’ve got your area selected, use the WorldEdit command to define this area. You can do this by typing /region define <regionName>.
  2. Set Up the Region in ElementalRegen:
    • Create the Region: Use the ElementalRegen command to set up your newly defined region. Run /ElementalRegen region set <regionName>. Replace <regionName> with the name you used in WorldEdit.
    • Add Presets: Add specific presets to your region to control how blocks regenerate. Use /ElementalRegen region add <regionName> <presetName> . Replace "<presetName>-OPTIONAL" with the name of the preset you want to apply.
  3. Verify and Customize:
    • Check Your Setup: Ensure everything’s working by listing all regions with /ElementalRegen regions. This will show you your created region and associated presets.
    • Customize Further: Want to change something? Use /ElementalRegen region modify <regionName> <newPreset> to adjust the settings or /ElementalRegen region remove <regionName> <presetName> to remove a preset.
  4. Testing:
    • Break a Block: Go ahead and break a block within your region to see the regeneration in action. If you’ve set it up correctly, blocks should regenerate according to your presets.
  5. Troubleshooting:
    • Debug Mode: If something’s not working, activate debug mode with /ElementalRegen debug to get detailed messages in your chat that can help you troubleshoot issues.
That’s it! You’ve successfully created a region with WorldEdit and configured block regeneration. Enjoy your custom gameplay setup and happy mininggggg!


[​IMG]
soon!
Resource Information
Author:
----------
Total Downloads: 4
First Release: Aug 5, 2024
Last Update: Oct 20, 2024
Category: ---------------
All-Time Rating:
1 ratings
Version -----
Released: --------------------
Downloads: ------
Version Rating:
----------------------
-- ratings