add durability table

This commit is contained in:
Dirk Sohler 2018-09-22 17:57:36 +02:00
parent 2bdb77b781
commit 033cf1b331
No known key found for this signature in database
GPG Key ID: B9751241BD7D4E1A
2 changed files with 20 additions and 1 deletions

@ -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.

@ -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', {