From 033cf1b331ff313dce0cb125b86c26c67bae017c Mon Sep 17 00:00:00 2001 From: Dirk Sohler Date: Sat, 22 Sep 2018 17:57:36 +0200 Subject: [PATCH] add durability table --- README.md | 19 +++++++++++++++++++ registry/default.lua | 2 +- 2 files changed, 20 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 6d6db9e..af69907 100644 --- a/README.md +++ b/README.md @@ -20,6 +20,25 @@ The hammers added by this mod can be used to crush material into “softer” ma The three default sandstone types can be crushed into the corresponding three default sand types, too. +## Durability + +The durability is based on personal opinion. + +| Hammer Material | Mod | Durability (uses) | +|:----------------|:----------:|------------------:| +| Wood | `default` | 10 | +| Stone | `default` | 50 | +| Gold | `default` | 80 | +| Bronze | `default` | 100 | +| Steel | `default` | 150 | +| Silver | `moreores` | 200 | +| Diamond | `default` | 250 | +| Mese | `default` | 300 | +| Obsidian | `default` | 350 | +| Mithril | `moreores` | 400 | + +Feel free to suggest changes. + ## API usage The *Universal Hammer API* can be used by calling the `uniham.register_hammer` function. This function takes two parameters, the ID and the definition table. diff --git a/registry/default.lua b/registry/default.lua index 932ce75..b7953f3 100644 --- a/registry/default.lua +++ b/registry/default.lua @@ -20,7 +20,7 @@ register_hammer('hammer_gold', { name = 'Golden Hammer', head = 'default_gold_block.png', craft = 'default:gold_ingot', - uses = 100 + uses = 80 }) register_hammer('hammer_mese', {