pub fn get_mine_progress(
block: &dyn Block,
held_item: Item,
player_inventory: &Menu,
fluid_on_eyes: &FluidOnEyes,
physics: &Physics,
) -> f32
Expand description
How much progress is made towards mining the block per tick, as a percentage. If this is 1 then the block gets broken instantly.
You can divide 1 by this and then round up to get the number of ticks it takes to mine the block.
The player inventory is needed to check your armor and offhand for modifiers to your mining speed.