From ddd99bb4b6644dfada311a00cc23e017418e8f0f Mon Sep 17 00:00:00 2001 From: LeMagnesium Date: Sun, 2 Aug 2015 22:42:32 +0200 Subject: [PATCH] Decreased amount of items hypothetically given per stack (uboots) - Solves #190 (?) --- mods/sea/seawrecks/init.lua | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/mods/sea/seawrecks/init.lua b/mods/sea/seawrecks/init.lua index 39bf1c33..dcc2b26a 100755 --- a/mods/sea/seawrecks/init.lua +++ b/mods/sea/seawrecks/init.lua @@ -81,7 +81,12 @@ minetest.register_node("seawrecks:ubootchest", { local meta = minetest.get_meta(pos) local kind_of_price = math.random(0,2) - local amount_of_price = math.random(1, 20) + local amount_of_price + if math.random(1,100) >= 75 then + amount_of_price = math.random(1, 20) + else + amount_of_price = math.random(1, 5) + end local ingot_price = {"default:steel_ingot","default:copper_ingot","default:gold_ingot","moreores:tin_ingot","moreores:silver_ingot"} local price_group = {"",""} local choosen_ingot = math.random(1, #ingot_price)