From ac1f80e44259f99f1193f6e5e2fa16b88c955e68 Mon Sep 17 00:00:00 2001 From: Eric Meehan Date: Wed, 15 Apr 2026 16:40:26 -0400 Subject: [PATCH] Added prizes definition back --- init.lua | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/init.lua b/init.lua index 7c1cd28..bc42bb5 100644 --- a/init.lua +++ b/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)