Added prizes definition back
This commit is contained in:
13
init.lua
13
init.lua
@@ -1,6 +1,19 @@
|
||||
bounty = {}
|
||||
bounty.file = core.get_worldpath() .. '/bounty.txt'
|
||||
bounty.data = {}
|
||||
bounty.prizes = false --determines if prizes or amount per points game-mechanic is used
|
||||
if false then
|
||||
bounty.prizes = 'currency:minegeld_100'
|
||||
bounty.points_per_prize = 20 --per 100 points you get a default:steel_ingot
|
||||
else
|
||||
bounty.prizes = {
|
||||
[20] = 'default:wood 50', -- for bounties that are higher then 100 iron ingots are given
|
||||
[50] = 'default:cobble 50', -- for bounties that are higher then 150 gold ingots are given
|
||||
[70] = 'default:stone 40', -- for bounties that are higher then 150 gold ingots are given
|
||||
[100] = 'default:steel_ingot 2', -- for bounties that are higher then 150 gold ingots are given
|
||||
[200] = 'default:steel_ingot 5' -- etc...
|
||||
}
|
||||
end
|
||||
|
||||
bounty.penalize = function(player_name) --set the penalty
|
||||
--example of a penalty (revoke all privs ecept interact)
|
||||
|
||||
Reference in New Issue
Block a user