Example 1 (region_1.yml)
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
directly_to_inventory: true # Should the drops go directly to the inventory of the player? This only works when you have default_drops enabled!
break_denial_sound: ENTITY_VILLAGER_NO:0.1:1.0 # What sound to play when the player is missing a condition OR doesn't have a whitelisted item to break the block? You can find sounds at: https://hub.spigotmc.org/javadocs/bukkit/org/bukkit/Sound.htmlLast updated