From 32decc0149733dbaf0f7e4d52fd54d9c94a74929 Mon Sep 17 00:00:00 2001 From: HybridDog Date: Sun, 5 Jul 2015 21:01:34 +0200 Subject: [PATCH] :cat2: --- LICENSE.txt | 2 ++ init.lua | 48 ++++++++++++++++++++++++------------------------ mapgen.lua | 1 + 3 files changed, 27 insertions(+), 24 deletions(-) diff --git a/LICENSE.txt b/LICENSE.txt index 7acfd3c..2f906c2 100644 --- a/LICENSE.txt +++ b/LICENSE.txt @@ -2,3 +2,5 @@ — glowshroom and lavashroom from bas080's plants mod (WTFPL) — parasol mushroom from a mod called mushrooms (WTFPL) — "45" mushrooms from r01922090's mush45 mod (WTFPL) + +rest also WTFPL diff --git a/init.lua b/init.lua index e023575..bc755e0 100644 --- a/init.lua +++ b/init.lua @@ -404,7 +404,7 @@ minetest.override_item("default:apple", { local mushrooms_list = { - ["brown"] = { + brown = { description = "brown mushroom", box = { {-0.15, -0.2, -0.15, 0.15, -0.1, 0.15}, @@ -420,7 +420,7 @@ local mushrooms_list = { chance = 18, }, }, - ["red"] = { + red = { description = "red mushroom", box = { {-1/16, -8/16, -1/16, 1/16, -6/16, 1/16}, @@ -438,7 +438,7 @@ local mushrooms_list = { chance = 30, }, }, - ["fly_agaric"] = { + fly_agaric = { description = "fly agaric", box = { {-0.05, -0.5, -0.05, 0.05, 1/20, 0.05}, @@ -454,7 +454,7 @@ local mushrooms_list = { chance = 30, }, }, - ["lavashroom"] = { + lavashroom = { description = "Lavashroom", box = { {-1/16, -8/16, -1/16, 1/16, -6/16, 1/16}, @@ -471,16 +471,16 @@ local mushrooms_list = { chance = 60, }, }, - ["glowshroom"] = { + glowshroom = { description = "Glowshroom", box = { - {-1/16, -8/16, -1/16, 1/16, -1/16, 1/16}, - {-2/16, -3/16, -2/16, 2/16, -2/16, 2/16}, - {-3/16, -5/16, -3/16, 3/16, -3/16, 3/16}, + {-1/16, -8/16, -1/16, 1/16, -1/16, 1/16}, + {-2/16, -3/16, -2/16, 2/16, -2/16, 2/16}, + {-3/16, -5/16, -3/16, 3/16, -3/16, 3/16}, {-3/16, -7/16, -3/16, -2/16, -5/16, -2/16}, - {3/16, -7/16, -3/16, 2/16, -5/16, -2/16}, - {-3/16, -7/16, 3/16, -2/16, -5/16, 2/16}, - {3/16, -7/16, 3/16, 2/16, -5/16, 2/16} + {3/16, -7/16, -3/16, 2/16, -5/16, -2/16}, + {-3/16, -7/16, 3/16, -2/16, -5/16, 2/16}, + {3/16, -7/16, 3/16, 2/16, -5/16, 2/16} }, growing = { r = 3, @@ -491,7 +491,7 @@ local mushrooms_list = { chance = 320, }, }, - ["nether_shroom"] = { + nether_shroom = { description = "Nether mushroom", box = { {-1/16, -8/16, -1/16, 1/16, -2/16, 1/16}, @@ -504,7 +504,7 @@ local mushrooms_list = { }, burntime = 6, }, - ["parasol"] = { + parasol = { description = "white parasol mushroom", box = { {-1/16, -8/16, -1/16, 1/16, 0, 1/16}, @@ -522,15 +522,15 @@ local mushrooms_list = { chance = 36, }, }, - ["red45"] = { + red45 = { description = "45 red mushroom", box = { - {-1/16, -0.5, -1/16, 1/16, 1/8, 1/16}, - {-3/16, 1/8, -3/16, 3/16, 1/4, 3/16}, + {-1/16, -0.5, -1/16, 1/16, 1/8, 1/16}, + {-3/16, 1/8, -3/16, 3/16, 1/4, 3/16}, {-5/16, -1/4, -5/16, -1/16, 1/8, -1/16}, - {1/16, -1/4, -5/16, 5/16, 1/8, -1/16}, - {-5/16, -1/4, 1/16, -1/16, 1/8, 5/16}, - {1/16, -1/4, 1/16, 5/16, 1/8, 5/16} + {1/16, -1/4, -5/16, 5/16, 1/8, -1/16}, + {-5/16, -1/4, 1/16, -1/16, 1/8, 5/16}, + {1/16, -1/4, 1/16, 5/16, 1/8, 5/16} }, growing = { r = {min=3, max=4}, @@ -541,14 +541,14 @@ local mushrooms_list = { chance = 180, }, }, - ["brown45"] = { + brown45 = { description = "45 brown mushroom", box = { {-1/16, -0.5, -1/16, 1/16, 1/16, 1/16}, - {-3/8, 1/8, -7/16, 3/8, 1/4, 7/16}, - {-7/16, 1/8, -3/8, 7/16, 1/4, 3/8}, - {-3/8, 1/4, -3/8, 3/8, 5/16, 3/8}, - {-3/8, 1/16, -3/8, 3/8, 1/8, 3/8} + {-3/8, 1/8, -7/16, 3/8, 1/4, 7/16}, + {-7/16, 1/8, -3/8, 7/16, 1/4, 3/8}, + {-3/8, 1/4, -3/8, 3/8, 5/16, 3/8}, + {-3/8, 1/16, -3/8, 3/8, 1/8, 3/8} }, growing = { r = {min=2, max=3}, diff --git a/mapgen.lua b/mapgen.lua index a61d758..9b679a8 100644 --- a/mapgen.lua +++ b/mapgen.lua @@ -211,6 +211,7 @@ minetest.register_on_generated(function(minp, maxp, seed) end end end + if ground_y then data[area:index(x, ground_y, z)] = c.ground for i = -1,-5,-1 do