[HarvestXP] /hxp cropname <CropName> <true|false> - Enable/disable XP for a crop.
[HarvestXP] /hxp cropname <CropName> random <true|false> - Set XP mode (true=random, false=single).
[HarvestXP] /hxp cropname <CropName> single <Amount> - Set single XP amount.
[HarvestXP] /hxp cropname <CropName> min <Amount> - Set random min XP.
[HarvestXP] /hxp cropname <CropName> max <Amount> - Set random max XP.
Code (YAML):
# Configuration for HarvestXP Plugin # # For each crop, you can configure: # enabled: true/false - Whether XP should drop for this crop. # mode: 'single' or 'random' - How the XP value is determined. # single-value: (Only if mode is 'single') The exact amount of XP to drop. # random-min: (Only if mode is 'random') The minimum XP value to drop. # random-max: (Only if mode is 'random') The maximum XP value to drop. # # Note: Values must be non-negative integers. random-max must be >= random-min. # # *** Version Compatibility *** # Some crops listed below might not exist in your specific Minecraft server version. # The plugin will automatically ignore settings for incompatible crops based on the server version. # If you update your server, the plugin will attempt to automatically add default configurations # for newly available crops during startup or reload. # # Crop Keys: Names generally match Bukkit Material names (e.g., WHEAT, CARROTS). # Notable exception: COCOA_BEANS key configures harvested COCOA blocks. crops:
WHEAT:
enabled: true
mode: 'random'
single-value: 2
random-min: 1
random-max: 3
CARROTS:
enabled: true
mode: 'random'
single-value: 2
random-min: 1
random-max: 3
POTATOES:
enabled: true
mode: 'random'
single-value: 2
random-min: 1
random-max: 3
BEETROOTS:
enabled: true
mode: 'random'
single-value: 2
random-min: 1
random-max: 3
NETHER_WART:
enabled: true
mode: 'single'
single-value: 3
random-min: 2
random-max: 4
COCOA_BEANS: # Configures harvesting the COCOA block when mature enabled: true
mode: 'random'
single-value: 2
random-min: 1
random-max: 2
# MELON_STEM: (Stems typically aren't harvested for XP, omitted by default) # PUMPKIN_STEM: (Stems typically aren't harvested for XP, omitted by default) MELON: # For harvesting the actual Melon block enabled: true
mode: 'single'
single-value: 4
random-min: 3
random-max: 5
PUMPKIN: # For harvesting the actual Pumpkin block enabled: true
mode: 'single'
single-value: 4
random-min: 3
random-max: 5
SWEET_BERRY_BUSH: # 1.14+ Harvested by right-click or breaking, age determines berries/xp enabled: true
mode: 'random'
single-value: 1
random-min: 1
random-max: 2
BAMBOO: # 1.14+ Breaks blockstack enabled: true
mode: 'random'
single-value: 1
random-min: 1
random-max: 2
SUGAR_CANE: # Breaks blockstack enabled: true
mode: 'random'
single-value: 1
random-min: 1
random-max: 2
CACTUS: # Breaks blockstack enabled: true
mode: 'random'
single-value: 1
random-min: 1
random-max: 2
KELP: # 1.13+ Breaks part of the plant underwater enabled: true
mode: 'random'
single-value: 1
random-min: 0
random-max: 1
SEA_PICKLE: # 1.13+ Break block to harvest. Amount varies (1-4) enabled: true
mode: 'random'
single-value: 1
random-min: 1
random-max: 2
TWISTING_VINES: # 1.16+ Breaks blockstack enabled: true
mode: 'random'
single-value: 1
random-min: 0
random-max: 1
# TWISTING_VINES_PLANT: (Handled by TWISTING_VINES) WEEPING_VINES: # 1.16+ Breaks blockstack enabled: true
mode: 'random'
single-value: 1
random-min: 0
random-max: 1
# WEEPING_VINES_PLANT: (Handled by WEEPING_VINES) CAVE_VINES: # 1.17+ Ageable based on berries. Breaking drops berries/vines enabled: true
mode: 'random'
single-value: 1
random-min: 1
random-max: 2
# CAVE_VINES_PLANT: (Handled by CAVE_VINES) # GLOW_BERRIES: (Item dropped from CAVE_VINES, XP handled by CAVE_VINES entry)
# --- 1.20+ Crops --- # Note: These sections will only be loaded if server is 1.20+ # If missing on a 1.20+ server, they will be added automatically. TORCHFLOWER_CROP: # 1.20+ Ageable crop (on farmland) enabled: true
mode: 'random'
single-value: 2
random-min: 1
random-max: 3
# TORCHFLOWER: (Item, handled by TORCHFLOWER_CROP break) PITCHER_CROP: # 1.20+ Ageable crop (on farmland) - Grows in sections enabled: true
mode: 'random'
single-value: 3
random-min: 2
random-max: 4
# PITCHER_POD: (Item, handled by PITCHER_CROP break)
# Add other specific items if you consider them harvestable like crops # e.g. chorus_flower (breaks stalk) # CHORUS_FLOWER: # enabled: true # mode: 'single' # single-value: 5 # random-min: 0 # random-max: 0
Code (YAML):
# Messages for HarvestXP Plugin # Use '&' for color codes. prefix: "&e[HarvestXP] &r"
# General Errors error_no_permission: "&cYou do not have permission to use this command." error_player_only: "&cThis command can only be run by a player." error_invalid_command: "&cInvalid command usage." error_see_help: "&cUse /%command% help for assistance."# Added generic help reference error_invalid_crop: "&cInvalid crop name: %crop%. Please use a configured crop name."# Updated message error_invalid_boolean: "&cInvalid value. Please use 'true' or 'false'." error_invalid_number: "&cInvalid number: %value%. Please enter a positive integer." error_min_max_mismatch: "&cError: random-max (%max%) must be greater than or equal to random-min (%min%)." error_saving_config: "&cAn error occurred while saving the configuration."
# Reload Command reload_success: "&aConfiguration files reloaded successfully." reload_fail: "&cFailed to reload configuration files. Check console for errors."
# Crop Toggle Command (/hxp cropname <crop> true/false) toggle_success: "&aXP drops for %crop% have been set to %state%."
# Mode Command (/hxp cropname <crop> random true/false) mode_set_single: "&aXP drop mode for %crop% set to SINGLE." mode_set_random: "&aXP drop mode for %crop% set to RANDOM."
# Value Set Command (/hxp cropname <crop> single/min/max <value>) value_set_success: "&aSet %valuetype% value for %crop% to %value%." note_min_max_adjusted: "&eNote: Random Max was automatically adjusted to %max% to be >= Min."# Added note for min/max adjustment
# Version Info version_info: "&eHarvestXP v%version% by %author%. Made possible by %codella%."# Added version message
# Help Message help_header: "&e--- HarvestXP Commands (%command%) ---"# Added help header help_version: "&a/%command% version &7- Shows plugin version and author."# Added help entry help_reload: "&a/%command% reload &7- Reloads configuration files."# Uncommented help_toggle: "&a/%command% cropname <CropName> <true|false> &7- Enable/disable XP for a crop."# Uncommented help_mode: "&a/%command% cropname <CropName> random <true|false> &7- Set XP mode (true=random, false=single)."# Uncommented help_set_single: "&a/%command% cropname <CropName> single <Amount> &7- Set single XP amount."# Uncommented help_set_min: "&a/%command% cropname <CropName> min <Amount> &7- Set random min XP."# Uncommented help_set_max: "&a/%command% cropname <CropName> max <Amount> &7- Set random max XP."# Uncommented
Code (YAML):
# World-specific Whitelist/Blacklist for HarvestXP # # For each world you want specific rules for, add an entry. # Modes: # NONE: Default behavior. All crops enabled in config.yml can drop XP. This is the default if a world isn't listed. # WHITELIST: ONLY the crops listed under 'crops' below can drop XP in this world (overrides config.yml enabled state for *this world*). # BLACKLIST: The crops listed under 'crops' below CANNOT drop XP in this world (overrides config.yml enabled state for *this world*). # # Crop names should match Bukkit Material names (e.g., WHEAT, CARROTS, POTATOES, MELON). # Ensure crop names are in UPPERCASE. worlds:
world: # Example main world mode: NONE crops: [] world_nether: # Example nether world mode: WHITELIST
crops: - NETHER_WART
world_resource: # Example resource world mode: BLACKLIST
crops: - MELON
- PUMPKIN
# Add other worlds here as needed # another_world: # mode: WHITELIST # crops: # - WHEAT # - CARROTS