Example 1 (region_1.yml)

This configuration includes conditions from plugins: AuraSkills and ExecutableItems.

You are NOT REQUIRED to use these plugins aswell!

This region is all about regenerating carrots that are broken. In this example, the carrots will be replaced with AIR for a short time of 1second and then it will regenerate the carrot block back. To be able to break these carrots, i have added some conditions. These conditions are not required, these are completely optional. The player needs to have at least 5 levels of FARMING skill of AuraSkills plugin AND one of the items listed below:

  • custom_iron_hoe (from ExecutableItems)

  • iron_hoe (Vanilla)

  • OR item1.json (Custom imported item)

Upon breaking, the player will be granted rewards, they are reward_1 and reward_2 and the player will be hearing an Experience Orb Pickup sound.

REGION_ID: region_1 # The region ID, must be the same as the file name!
region_display_name: '&fRegion 1' # Region display name, can be anything. Supports color codes!
locations: # Locations of the region!
  pos1:
    world: world
    x: -101.0
    y: 99.0
    z: 32.0
  pos2:
    world: world
    x: -109.0
    y: 104.0
    z: 40.0
regenerated_block: AIR # What the block that gets broken should be replaced to?
block_listeners: # List of the block listeners.
  '0': # This is a unique id of the listener, they must be 1 character. Ex. '0', '1', '2' ...
    block_type: CARROTS # The block type to listen for BLOCK_BREAK event. In this case, "CARROT" wont work since that is how minecraft handles the carrot item, not the farmable block. If you want to take a look at what blocks can be placed here, check out: `https://hub.spigotmc.org/javadocs/bukkit/org/bukkit/Material.html`    
    default_drops: true # Should the player recieve the blocks default drops upon breaking it?
    duration: 1 # The duration in seconds that should delay the block regeneration. Duration has some cool features, like setting it to -1 to disable block breaking completely on this listener, or setting it to 0 to regenerate instantly. Anything over 0 will work normaly.
    conditions: ["skill:FARMING:5"] # Conditions, can be empty [] to be disabled, values that can be used are listed below:
# - "skill:SKILL_NAME:LEVEL"
# - "permission:PERMISSION"
# - "vault:money:AMOUNT"
# - "coinsengine:CURRENCY:AMOUNT"
# - "exp:AMOUNT"
# - "level:AMOUNT"
    whitelisted_items: ["executableitems:custom_iron_hoe", "material:IRON_HOE", "json:item1.json"] # Items that are whitelisted, meaning that the block is only broken by these items. This can be empty [] to be disabled. You can either use "executableitems:<item_id>", "material:<vanilla_material>" OR "json:<file_name>.json" which comes from folder /plugins/EliteRegen/imported-items/<files>
    rewards: ["reward_1:1.0", "reward_2:0.3"] # These are the rewards that will be given to player upon block break! These rewards are configured on a separate file at: /plugins/EliteRegen/rewards.yml ! These rewards are chance based, if you dont put a number behind the reward id then the chance is 100%. The format goes like this: "<reward_id>:<chance (from 0 to 1)>" Here you can leave it empty [] or put the "<reward_id>" that you want from the rewards.yml!
    sounds: ["ENTITY_EXPERIENCE_ORB_PICKUP:0.1:2.0"] # Sounds that will be played to the player upon block break! The format you can use is "<sound_name>:<volume>:<pitch>". For the list of sounds you can use check out: https://hub.spigotmc.org/javadocs/bukkit/org/bukkit/Sound.html

Last updated