forked from mtcontrib/riesenpilz
move the nodeboxes to their nodes
This commit is contained in:
parent
d00ffccb07
commit
edeb0fe364
137
init.lua
137
init.lua
@ -371,77 +371,14 @@ minetest.register_node(":default:apple", {
|
|||||||
--Mushroom Nodes
|
--Mushroom Nodes
|
||||||
|
|
||||||
|
|
||||||
local BOX = {
|
local mushrooms_list = {
|
||||||
RED = {
|
["brown"] = {
|
||||||
{-1/16, -8/16, -1/16, 1/16, -6/16, 1/16},
|
description = "brown mushroom",
|
||||||
{-3/16, -6/16, -3/16, 3/16, -5/16, 3/16},
|
box = {
|
||||||
{-4/16, -5/16, -4/16, 4/16, -4/16, 4/16},
|
|
||||||
{-3/16, -4/16, -3/16, 3/16, -3/16, 3/16},
|
|
||||||
{-2/16, -3/16, -2/16, 2/16, -2/16, 2/16}
|
|
||||||
},
|
|
||||||
BROWN = {
|
|
||||||
{-0.15, -0.2, -0.15, 0.15, -0.1, 0.15},
|
{-0.15, -0.2, -0.15, 0.15, -0.1, 0.15},
|
||||||
{-0.2, -0.3, -0.2, 0.2, -0.2, 0.2},
|
{-0.2, -0.3, -0.2, 0.2, -0.2, 0.2},
|
||||||
{-0.05, -0.5, -0.05, 0.05, -0.3, 0.05}
|
{-0.05, -0.5, -0.05, 0.05, -0.3, 0.05}
|
||||||
},
|
},
|
||||||
FLY_AGARIC = {
|
|
||||||
{-0.05, -0.5, -0.05, 0.05, 1/20, 0.05},
|
|
||||||
{-3/20, -6/20, -3/20, 3/20, 0, 3/20},
|
|
||||||
{-4/20, -2/20, -4/20, 4/20, -4/20, 4/20}
|
|
||||||
},
|
|
||||||
LAVASHROOM = {
|
|
||||||
{-1/16, -8/16, -1/16, 1/16, -6/16, 1/16},
|
|
||||||
{-2/16, -6/16, -2/16, 2/16, 0, 2/16},
|
|
||||||
{-3/16, -5/16, -3/16, 3/16, -1/16, 3/16},
|
|
||||||
{-4/16, -4/16, -4/16, 4/16, -2/16, 4/16}
|
|
||||||
},
|
|
||||||
GLOWSHROOM = {
|
|
||||||
{-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}
|
|
||||||
},
|
|
||||||
NETHER_SHROOM = {
|
|
||||||
{-1/16, -8/16, -1/16, 1/16, -2/16, 1/16},
|
|
||||||
{-2/16, -6/16, -2/16, 2/16, -5/16, 2/16},
|
|
||||||
{-3/16, -2/16, -3/16, 3/16, 0, 3/16},
|
|
||||||
{-4/16, -1/16, -4/16, 4/16, 1/16,-2/16},
|
|
||||||
{-4/16, -1/16, 2/16, 4/16, 1/16, 4/16},
|
|
||||||
{-4/16, -1/16, -2/16,-2/16, 1/16, 2/16},
|
|
||||||
{ 2/16, -1/16, -2/16, 4/16, 1/16, 2/16}
|
|
||||||
},
|
|
||||||
PARASOL = {
|
|
||||||
{-1/16, -8/16, -1/16, 1/16, 0, 1/16},
|
|
||||||
{-2/16, -6/16, -2/16, 2/16, -5/16, 2/16},
|
|
||||||
{-5/16, -4/16, -5/16, 5/16, -3/16, 5/16},
|
|
||||||
{-4/16, -3/16, -4/16, 4/16, -2/16, 4/16},
|
|
||||||
{-3/16, -2/16, -3/16, 3/16, -1/16, 3/16}
|
|
||||||
},
|
|
||||||
RED45 = {
|
|
||||||
{-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}
|
|
||||||
},
|
|
||||||
BROWN45 = {
|
|
||||||
{-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}
|
|
||||||
},
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
local mushrooms_list = {
|
|
||||||
["brown"] = {
|
|
||||||
description = "brown mushroom",
|
|
||||||
box = BOX.BROWN,
|
|
||||||
growing = {
|
growing = {
|
||||||
r = {min=3, max=4},
|
r = {min=3, max=4},
|
||||||
grounds = {soil=1, crumbly=3},
|
grounds = {soil=1, crumbly=3},
|
||||||
@ -453,7 +390,13 @@ local mushrooms_list = {
|
|||||||
},
|
},
|
||||||
["red"] = {
|
["red"] = {
|
||||||
description = "red mushroom",
|
description = "red mushroom",
|
||||||
box = BOX.RED,
|
box = {
|
||||||
|
{-1/16, -8/16, -1/16, 1/16, -6/16, 1/16},
|
||||||
|
{-3/16, -6/16, -3/16, 3/16, -5/16, 3/16},
|
||||||
|
{-4/16, -5/16, -4/16, 4/16, -4/16, 4/16},
|
||||||
|
{-3/16, -4/16, -3/16, 3/16, -3/16, 3/16},
|
||||||
|
{-2/16, -3/16, -2/16, 2/16, -2/16, 2/16}
|
||||||
|
},
|
||||||
growing = {
|
growing = {
|
||||||
r = {min=4, max=5},
|
r = {min=4, max=5},
|
||||||
grounds = {soil=2},
|
grounds = {soil=2},
|
||||||
@ -465,7 +408,11 @@ local mushrooms_list = {
|
|||||||
},
|
},
|
||||||
["fly_agaric"] = {
|
["fly_agaric"] = {
|
||||||
description = "fly agaric",
|
description = "fly agaric",
|
||||||
box = BOX.FLY_AGARIC,
|
box = {
|
||||||
|
{-0.05, -0.5, -0.05, 0.05, 1/20, 0.05},
|
||||||
|
{-3/20, -6/20, -3/20, 3/20, 0, 3/20},
|
||||||
|
{-4/20, -2/20, -4/20, 4/20, -4/20, 4/20}
|
||||||
|
},
|
||||||
growing = {
|
growing = {
|
||||||
r = 4,
|
r = 4,
|
||||||
grounds = {soil=1, crumbly=3},
|
grounds = {soil=1, crumbly=3},
|
||||||
@ -477,7 +424,12 @@ local mushrooms_list = {
|
|||||||
},
|
},
|
||||||
["lavashroom"] = {
|
["lavashroom"] = {
|
||||||
description = "Lavashroom",
|
description = "Lavashroom",
|
||||||
box = BOX.LAVASHROOM,
|
box = {
|
||||||
|
{-1/16, -8/16, -1/16, 1/16, -6/16, 1/16},
|
||||||
|
{-2/16, -6/16, -2/16, 2/16, 0, 2/16},
|
||||||
|
{-3/16, -5/16, -3/16, 3/16, -1/16, 3/16},
|
||||||
|
{-4/16, -4/16, -4/16, 4/16, -2/16, 4/16}
|
||||||
|
},
|
||||||
growing = {
|
growing = {
|
||||||
r = {min=5, max=6},
|
r = {min=5, max=6},
|
||||||
grounds = {cracky=3},
|
grounds = {cracky=3},
|
||||||
@ -489,7 +441,15 @@ local mushrooms_list = {
|
|||||||
},
|
},
|
||||||
["glowshroom"] = {
|
["glowshroom"] = {
|
||||||
description = "Glowshroom",
|
description = "Glowshroom",
|
||||||
box = BOX.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},
|
||||||
|
{-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 = {
|
growing = {
|
||||||
r = 3,
|
r = 3,
|
||||||
grounds = {soil=1, crumbly=3},
|
grounds = {soil=1, crumbly=3},
|
||||||
@ -501,12 +461,26 @@ local mushrooms_list = {
|
|||||||
},
|
},
|
||||||
["nether_shroom"] = {
|
["nether_shroom"] = {
|
||||||
description = "Nether mushroom",
|
description = "Nether mushroom",
|
||||||
box = BOX.NETHER_SHROOM,
|
box = {
|
||||||
|
{-1/16, -8/16, -1/16, 1/16, -2/16, 1/16},
|
||||||
|
{-2/16, -6/16, -2/16, 2/16, -5/16, 2/16},
|
||||||
|
{-3/16, -2/16, -3/16, 3/16, 0, 3/16},
|
||||||
|
{-4/16, -1/16, -4/16, 4/16, 1/16,-2/16},
|
||||||
|
{-4/16, -1/16, 2/16, 4/16, 1/16, 4/16},
|
||||||
|
{-4/16, -1/16, -2/16,-2/16, 1/16, 2/16},
|
||||||
|
{ 2/16, -1/16, -2/16, 4/16, 1/16, 2/16}
|
||||||
|
},
|
||||||
burntime = 6,
|
burntime = 6,
|
||||||
},
|
},
|
||||||
["parasol"] = {
|
["parasol"] = {
|
||||||
description = "white parasol mushroom",
|
description = "white parasol mushroom",
|
||||||
box = BOX.PARASOL,
|
box = {
|
||||||
|
{-1/16, -8/16, -1/16, 1/16, 0, 1/16},
|
||||||
|
{-2/16, -6/16, -2/16, 2/16, -5/16, 2/16},
|
||||||
|
{-5/16, -4/16, -5/16, 5/16, -3/16, 5/16},
|
||||||
|
{-4/16, -3/16, -4/16, 4/16, -2/16, 4/16},
|
||||||
|
{-3/16, -2/16, -3/16, 3/16, -1/16, 3/16}
|
||||||
|
},
|
||||||
growing = {
|
growing = {
|
||||||
r = {min=3, max=5},
|
r = {min=3, max=5},
|
||||||
grounds = {soil=1, crumbly=3},
|
grounds = {soil=1, crumbly=3},
|
||||||
@ -518,7 +492,14 @@ local mushrooms_list = {
|
|||||||
},
|
},
|
||||||
["red45"] = {
|
["red45"] = {
|
||||||
description = "45 red mushroom",
|
description = "45 red mushroom",
|
||||||
box = BOX.RED45,
|
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},
|
||||||
|
{-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}
|
||||||
|
},
|
||||||
growing = {
|
growing = {
|
||||||
r = {min=3, max=4},
|
r = {min=3, max=4},
|
||||||
grounds = {soil=2},
|
grounds = {soil=2},
|
||||||
@ -530,7 +511,13 @@ local mushrooms_list = {
|
|||||||
},
|
},
|
||||||
["brown45"] = {
|
["brown45"] = {
|
||||||
description = "45 brown mushroom",
|
description = "45 brown mushroom",
|
||||||
box = BOX.BROWN45,
|
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}
|
||||||
|
},
|
||||||
growing = {
|
growing = {
|
||||||
r = {min=2, max=3},
|
r = {min=2, max=3},
|
||||||
grounds = {tree=1},
|
grounds = {tree=1},
|
||||||
|
Loading…
Reference in New Issue
Block a user