Betterverse/MyChunks — Issue #7: Pillaging Cost.
Author: Asphodan
Created: 2012-02-03 03:56:16+00:00
State: open

https://github.com/Betterverse/MyChunks/commit/55257c4232668977a6d94d144c281fc75c79cdea

Add to this code:

BlockValues.yml --

It'll have

default: 15
1: .1
5: 3
49: 35

The left value is the block ID (No metadata needed. Wood is wood is wood), and the right would be the cost for each particular block's breaking.

If an itemID is specified, the player will pay that much to break that block when Pillaging a protected chunk.

If the ID is not specified, it'll use the Default value.

If a player does not have sufficient funds to pay for their pillage, the Break is cancelled. Cash from raiding disappears, it is not given to the raided.