✨BlockHardness Library✨ | Modify block breaking speeds
v 2.0.0Use this library in your own projects to modify block breaking speeds. XenDrops Addon!
v 2.0.0latestMaterial Speeds, Potion Effects & Progress SavingSep 20, 2026 · Tool speed in mining — better pickaxes, Efficiency and Haste now speed up custom-hardness blocks (vanilla maths). Opt-in per call, numbers in config.yml. · Per-source toggles — tool / Efficiency / Haste can be enabled independently via a SpeedOptions builder. · Saved progress — optionally remember a player's partial mining per block, decaying over time, instead of resetting when they look away. · Crack visuals — saved progress now keeps its crack, multiple blocks can show cracks at once, and cracks refresh on a timer (show-saved-cracks, crack-refresh-ticks). · Fix — mining state is dropped on quit and keyed by UUID; fixes a memory leak and animations going to a stale player after relog. New Config.yml Format Code (YAML): # How fast each tool mines a custom-hardness block, relative to a bare hand. # Matched against the start of the item's name, so tools from other plugins can be given a speed. # Anything unmatched (and the wrong tool for a block) stays at 1.0. Tool-Speeds: WOODEN_ : 2.0 STONE_ : 4.0 COPPER_ : 5.0 IRON_ : 6.0 DIAMOND_ : 8.0 NETHERITE_ : 9.0 GOLDEN_ : 12.0 Mining : # Used for whatever a caller leaves unsaid. Each source is independent, so a block can ignore the tool # entirely while still rewarding a Haste beacon. Tool-Speed-Defaults : # Does a better tool break the block faster? tool-tier : false # Does Efficiency help? enchantments : false # Do Haste and Conduit Power help? potion-effects : false # Times never go below this; BreakPlayer treats it as an instant break. minimum-break-seconds : 0.1 # Half-mined blocks. Nothing here survives a restart or a logout; it is all kept in memory. Progress : # Keep a block's progress when the player mines something else, so coming back resumes rather than # starting over. Used when a caller doesn't say either way. save-by-default : false # Progress lost per second while a block is not being mined, as a fraction of the whole bar. # 0.1 empties a full bar in ten seconds; 0 never decays. decay-per-second : 0.1 # Forget a block entirely this long after it was last mined, however slowly it decays. 0 never forgets. forget-after-seconds : 60 # Leave the cracks on blocks with saved progress, so a player can see what they half-mined. # Each block gets its own animation id, so several can be cracked at once. show-saved-cracks : true # How often those cracks are re-sent, in ticks. The client forgets block damage it has not heard about # for a while, and this is also what makes decay visible as it happens. Lower is smoother and chattier. crack-refresh-ticks : 100 # How many blocks one player may hold progress on at once. The least recently mined is dropped first. # 0 is unlimited, which is only safe if decay and forget-after are doing the tidying. max-tracked-blocks-per-player : 16V 0.0.1-BETAAdd ProtocolLib as dependJun 22, 2024 Forgot to make protocol lib a dependency in plugin.ymlV BETA-0.0.1Aug 24, 2023
Similar projects
Plugin →Let Me Despawn
Improves performance by tweaking mob despawn rules. Say bye to pesky unintentional persistent mobs.
25MSueta
JourneyMap
Real-time map used for mapping in-game or your browser as you explore.
14.7MSueta
Emotecraft
Create your own emotes in Minecraft.
7.5MSueta
Simple Tpa
A simple tpa plugin which sends requests
5.4MSueta
Common Network
Forge and Fabric Unified Networking Solution
3.9MSueta
Set Home
A lightweight plugin for players to set their homes.
3.8MSueta