enabled_worlds and disabled_worlds./veinminer mode <ore|tree|both|off> so players can switch between ore-only, tree-only, both, or fully off.queue_batch_size setting for tuning processing smoothness and speed.mode subcommand.ore_cooldown_seconds and tree_cooldown_seconds./veinminer toggle behavior to switch between off and both mode./veinminer status and /veinminer help to include the new mode and cooldown details.tree_capitator_max_blocks)tree_capitator_sneak_required)enable_tree_capitator)auto_smelt_fuels list"default" - All players"op" - Operators only/veinminer help - Shows all available commands with descriptions/veinminer status - Displays current vein mining settings for the playerenable_silk_touch_mode has been added to the configuration (config.yml). When set to true, vein mining with a Silk Touch enchanted tool will convert ore blocks to their silk-touched versions (e.g., diamond ore remains as diamond ore block).cooldown_seconds option to the configuration to set a cooldown period between vein mining actions to prevent spam.max_vein_size option to the configuration to prevent extremely large veins that could cause server lag./veinminer toggle command. This requires the veinminer.use permission.sneak_to_veinmine has been added to the configuration (config.yml). When set to true, players must be sneaking (holding shift) to trigger a vein mine.tool_list_mode option in config.yml can be set to either "whitelist" or "blacklist".tool_list in the config allows you to specify the materials for the list (e.g., "DIAMOND_PICKAXE")./veinminer command now shows usage for reload and toggle.veinminer.use (defaults to true) which is required to use the /veinminer toggle command and the vein mining feature itself.Added new configurable options:
show_vein_message (boolean) → toggles whether the player sees an action bar message when mining veins.
vein_message (string) → allows customizing the vein mining message with placeholder %blocks%.
enable_highlighting (boolean) → allows enabling/disabling vein highlighting via right-click.
Updated default ores list for Minecraft 1.21, including proper ordering and new variants.
Default messages now use color codes with & (configurable).
BlockBreakEvent is now fully cancelled for ores to manually handle drops and XP:
event.setCancelled(true);
event.setDropItems(false);
event.setExpToDrop(0);
Original block is now processed the same as vein blocks, instead of skipping it.
XP calculation now uses a new method getOreExpDrop(Material type) for more controlled and configurable XP drops per ore type.
Durability handling improved:
Correctly handles Unbreaking enchantment with proper chance calculation.
Tools now break naturally if durability is exceeded during vein mining, with a message to the player.
Tool meta is updated after all blocks are mined instead of updating per block.
Block drop handling is more robust:
Drops are manually spawned in the world for all mined blocks.
Ensures only valid ores are dropped.
Action bar message now uses configurable veinMessage and only displays if showVeinMessage is true.
Supports %blocks% placeholder.
Only shows if more than 1 block is mined.
Triggered on PlayerInteractEvent when right-clicking an ore block with a pickaxe.
Shows CRIT particle effects on all vein blocks.
Shows a chat message indicating the number of blocks in the vein.
Respects enableHighlighting and maxBlocks limits.
Supports requireSameType config.
isPickaxe(Material) helper method added for tool checks.
findAdjacentOres:
Uses a separate visited set for O(1) lookup (performance improvement).
Vein scanning logic remains the same but now avoids redundant additions.
BlockBreakEvent processing streamlined with local variables:
isDamageable, damageable, currentDamage, maxDurability, isUnbreakable.
XP and drops calculation separated from event logic.
getOreExpDrop(Material type) provides consistent XP drops per ore type.
Removed redundant checks and simplified durability/unbreaking handling.
Tool meta casting safely with Damageable instead of direct ItemMeta.
Messages now use ChatColor for consistent coloring.
/veinminer command usage message updated with version info.
Command permission and reload logic remain the same but cleaner.
Added safeguards for null tools, unbreakable items, and invalid ore types.

VeinMiner999 automatically mines complete ore veins in one click, featuring configurable scan ranges, smart same-type detection, and adjustable XP/durability mechanics to deliver balanced mining enhancement for minecraft servers.