MiningLib

Quick rating

Community listing page, reviews here may not be monitored by the author.

MiningLib

By CommandingOwner

No reviews yet

A Library datapack adding helper functions that calculates the time required to mine a specific block with a specific tool.

Mod Loaders
Minecraft

About

Description

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