Add method to get spores in survival
parent
1f22714be0
commit
25ebc019b5
8
api.lua
8
api.lua
|
@ -279,6 +279,14 @@ function moremush:register_mushroom(name, def)
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
|
minetest.register_craft({
|
||||||
|
output = 'moremush:'..name..'_spores',
|
||||||
|
recipe = {
|
||||||
|
{'moremush:mushroom_brown_spores'},
|
||||||
|
{'dye:'..def.dye..''},
|
||||||
|
}
|
||||||
|
})
|
||||||
|
|
||||||
minetest.register_abm({
|
minetest.register_abm({
|
||||||
nodenames = {"group:mush"},
|
nodenames = {"group:mush"},
|
||||||
neighbors = {"default:tree", "default:mossycobble"},
|
neighbors = {"default:tree", "default:mossycobble"},
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
farming
|
farming
|
||||||
flowers
|
flowers
|
||||||
default
|
default
|
||||||
|
dye
|
18
init.lua
18
init.lua
|
@ -6,6 +6,13 @@
|
||||||
--Simple API
|
--Simple API
|
||||||
dofile(minetest.get_modpath("moremush").."/api.lua")
|
dofile(minetest.get_modpath("moremush").."/api.lua")
|
||||||
|
|
||||||
|
minetest.register_craft({
|
||||||
|
output = 'moremush:mushroom_brown_spores',
|
||||||
|
recipe = {
|
||||||
|
{'flowers:mushroom_brown'},
|
||||||
|
}
|
||||||
|
})
|
||||||
|
|
||||||
moremush:register_mushroom("mushroom_red", {
|
moremush:register_mushroom("mushroom_red", {
|
||||||
mainname = ":flowers:mushroom_red",
|
mainname = ":flowers:mushroom_red",
|
||||||
maindname = "flowers:mushroom_red",
|
maindname = "flowers:mushroom_red",
|
||||||
|
@ -16,6 +23,7 @@ moremush:register_mushroom("mushroom_red", {
|
||||||
image_2 = "moremush_red_2",
|
image_2 = "moremush_red_2",
|
||||||
image_3 = "moremush_red_3",
|
image_3 = "moremush_red_3",
|
||||||
hp = -5,
|
hp = -5,
|
||||||
|
dye = "red",
|
||||||
})
|
})
|
||||||
|
|
||||||
moremush:register_mushroom("mushroom_brown", {
|
moremush:register_mushroom("mushroom_brown", {
|
||||||
|
@ -28,6 +36,7 @@ moremush:register_mushroom("mushroom_brown", {
|
||||||
image_2 = "moremush_brown_2",
|
image_2 = "moremush_brown_2",
|
||||||
image_3 = "moremush_brown_3",
|
image_3 = "moremush_brown_3",
|
||||||
hp = 1,
|
hp = 1,
|
||||||
|
dye = "brown",
|
||||||
})
|
})
|
||||||
|
|
||||||
moremush:register_mushroom("mushroom_green", {
|
moremush:register_mushroom("mushroom_green", {
|
||||||
|
@ -44,7 +53,8 @@ moremush:register_mushroom("mushroom_green", {
|
||||||
light_0 = 1,
|
light_0 = 1,
|
||||||
light_1 = 2,
|
light_1 = 2,
|
||||||
light_2 = 3,
|
light_2 = 3,
|
||||||
light_3 = 4
|
light_3 = 4,
|
||||||
|
dye = "green",
|
||||||
})
|
})
|
||||||
|
|
||||||
moremush:register_mushroom("mushroom_blue", {
|
moremush:register_mushroom("mushroom_blue", {
|
||||||
|
@ -61,7 +71,8 @@ moremush:register_mushroom("mushroom_blue", {
|
||||||
light_0 = 1,
|
light_0 = 1,
|
||||||
light_1 = 2,
|
light_1 = 2,
|
||||||
light_2 = 3,
|
light_2 = 3,
|
||||||
light_3 = 4
|
light_3 = 4,
|
||||||
|
dye = "blue",
|
||||||
})
|
})
|
||||||
|
|
||||||
moremush:register_mushroom("mushroom_boom", {
|
moremush:register_mushroom("mushroom_boom", {
|
||||||
|
@ -78,6 +89,7 @@ moremush:register_mushroom("mushroom_boom", {
|
||||||
light_0 = 1,
|
light_0 = 1,
|
||||||
light_1 = 2,
|
light_1 = 2,
|
||||||
light_2 = 4,
|
light_2 = 4,
|
||||||
light_3 = 6
|
light_3 = 6,
|
||||||
|
dye = "orange",
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue