Exultant/Citadel — pull request #103 by pruby (2013-05-01 01:52:23+00:00)
Title: Chips

This includes my last pull request as well as it has a dependency on it.

This provides the ability to make naturally reinforced blocks drop "chips". These are an item that drops with some probability on each blocked break. It also includes an ability to block the final drop.

Here's an example natural reinforcements section of config:
```
naturalReinforcements:
STONE:
durability: 5
IRON_ORE:
durability: 50
chipDrops:
IRON_INGOT: 0.1
disableNormalDrops: true
```

This would make stone take on average 5 breaks to break and iron ore 50. The iron ore, however, would not drop ore as normal. It would instead have a 10% (0.1) chance of dropping an iron ingot on each break, making each ore give us on average 5 ingots. When it finally breaks we get nothing due to disableNormalDrops being set for IRON_ORE.

Note that all this logic is disabled if a silk touch tool is used. Mining with ST never drops chips, but the final drop is allowed (so ores can be collected). We could collect the iron ore by breaking it with ST (still average 50 hits) but would not get chips while doing so. This prevents us from placing the iron ore and starting to mine it again.