Compatibility
Minecraft: Java Edition
1.21โ1.21.10
Platforms
Tags
Creators
Details
Licensed MIT
Published 9 months ago
A Minecraft datapack that calculates how many ticks it takes to mine a block with a given tool. Pass in a block ID and item ID, and the result is saved to storage for use in your own functions.
Usage:
/function hardness:get/getminetickswith {id:"minecraft:block_id", item:"minecraft:item_id"}
Output is saved to:
storage hardness out
Known Limitations:
- Does not account for item data (e.g. enchantments)
- Vanilla blocks and items only, no mod support


