diff --git a/init.lua b/init.lua index e23d2ab..830ea12 100644 --- a/init.lua +++ b/init.lua @@ -350,6 +350,16 @@ function nsspf_register_mycorrhizalmycelium (name, descr, tree) minetest.set_node(pos, {name="nsspf:"..name.."_fungusdirt"}) end }) + + minetest.register_abm({ + nodenames = {"nsspf:"..name.."_mycelium"}, + neighbors = {"default:dirt_with_snow"}, + interval = 1, + chance = 1, + action = function(pos, node) + minetest.set_node(pos, {name="default:dirt"}) + end + }) minetest.register_abm({ nodenames = {"default:dirt"}, @@ -376,6 +386,8 @@ function nsspf_register_mycorrhizalmycelium (name, descr, tree) end end }) + + end @@ -676,8 +688,11 @@ end nssbf_register_saprotrophicontrees ('armillaria_mellea', 'Armillaria mellea', 'default:tree') nssbf_register_saprotrophicontrees ('panellus_pusillus', 'Panellus pusillus', 'default:tree') -nssbf_register_saprotrophicontrees ('fistulina_hepatica', 'Fistulina hepatica', 'default:jungle_tree') -nssbf_register_saprotrophicontrees ('mycena_chlorophos', 'Mycena clorophos', 'default:jungle_tree') +nssbf_register_saprotrophicontrees ('fistulina_hepatica', 'Fistulina hepatica', 'default:pine_tree') +nssbf_register_saprotrophicontrees ('mycena_chlorophos', 'Mycena clorophos', 'default:dirt') +nssbf_register_saprotrophicontrees ('clitocybula_azurea', 'Clitocybula azurea', 'default:jungletree') +nssbf_register_saprotrophicontrees ('ganoderma_lucidum', 'Ganoderma lucidum', 'default:jungletree') + local OPEN_TIME_START = 0.2 -- Day time at which moon flowers open up local OPEN_TIME_END = 0.8 -- Day time at which moon flowers close up @@ -961,4 +976,110 @@ nsspf_register_saprotrophicground ('macrolepiota_procera','Macrolepiota procera' nsspf_register_saprotrophicground ('coprinus_atramentarius','Coprinus atramentarius') nsspf_register_saprotrophicground ('lycoperdon_pyriforme','Lycoperdon piriforme') nsspf_register_saprotrophicground ('psilocybe_cubensis','Psilocybe cubensis') -nsspf_register_saprotrophicground ('gyromitra_esculenta','Gyromitra esculenta') \ No newline at end of file +nsspf_register_saprotrophicground ('gyromitra_esculenta','Gyromitra esculenta') + +--jungle fungi + +minetest.register_node("nsspf:lentinus_strigosus", { + description = "Lentinus strigosus", + drawtype = "mesh", + mesh = "lentinus_strigosus.b3d", + paramtype = 'light', + paramtype2 = 'facedir', + tiles = {"lentinus_strigosus.png"}, + groups = {snappy=3}, +-- drop = 'default:dirt', + selection_box = { + type = 'fixed', + fixed = {-0.05, -0.49, -0.05, 0.05, 0, 0.05}, -- Right, Bottom, Back, Left, Top, Front + }, + collision_box = { + type = 'fixed', + fixed = {-0.05, -0.49, -0.05, 0.05, 0, 0.05}, -- Right, Bottom, Back, Left, Top, Front + }, +}) + +minetest.register_node("nsspf:ganoderma_lucidum", { + description = "Ganoderma lucidum", + drawtype = "mesh", + mesh = "fistulina_hepatica.b3d", + paramtype = 'light', + paramtype2 = 'facedir', + tiles = {"ganoderma_lucidum.png"}, + groups = {snappy=3}, +-- drop = 'default:dirt', + selection_box = { + type = 'fixed', + fixed = {-0.05, -0.49, -0.05, 0.05, 0, 0.05}, -- Right, Bottom, Back, Left, Top, Front + }, + collision_box = { + type = 'fixed', + fixed = {-0.05, -0.49, -0.05, 0.05, 0, 0.05}, -- Right, Bottom, Back, Left, Top, Front + }, +}) + +minetest.register_node("nsspf:marasmius_haematocephalus", { + description = "Marasmius haematocephalus", + drawtype = "mesh", + mesh = "marasmius_haematocephalus.b3d", + paramtype = 'light', + paramtype2 = 'facedir', + tiles = {"marasmius_haematocephalus.png"}, + groups = {snappy=3}, +-- drop = 'default:dirt', + selection_box = { + type = 'fixed', + fixed = {-0.1, -0.49, -0.1, 0.1, -0.1, 0.1}, -- Right, Bottom, Back, Left, Top, Front + }, + collision_box = { + type = 'fixed', + fixed = {-0.1, -0.49, -0.1, 0.1, -0.1, 0.1}, -- Right, Bottom, Back, Left, Top, Front + }, +}) + +minetest.register_node("nsspf:clitocybula_azurea", { + description = "Clitocybula_azurea", + drawtype = "mesh", + mesh = "clitocybula_azurea.b3d", + paramtype = 'light', + paramtype2 = 'facedir', + tiles = {"clitocybula_azurea.png"}, + groups = {snappy=3}, +-- drop = 'default:dirt', + selection_box = { + type = 'fixed', + fixed = {-0.2, -0.4, 0.2, 0.2, 0.4, 0.5}, -- Right, Bottom, Back, Left, Top, Front + }, + collision_box = { + type = 'fixed', + fixed = {-0.2, -0.4, 0.2, 0.2, 0.4, 0.5}, -- Right, Bottom, Back, Left, Top, Front + }, +}) + +minetest.register_abm({ + nodenames = {"default:jungletree"}, + neighbors = {"air"}, + interval = 400.0, + chance = 80, + action = function(pos, node) + local pos1 = {x=pos.x, y=pos.y+1, z=pos.z} + local n = minetest.env:get_node(pos1).name + if n == 'air' then + minetest.set_node({x = pos.x, y = pos.y+1, z = pos.z}, {name = "nsspf:marasmius_haematocephalus"}) + end + end +}) + +minetest.register_abm({ + nodenames = {"default:jungletree"}, + neighbors = {"air"}, + interval = 400.0, + chance = 80, + action = function(pos, node) + local pos1 = {x=pos.x, y=pos.y+1, z=pos.z} + local n = minetest.env:get_node(pos1).name + if n == 'air' then + minetest.set_node({x = pos.x, y = pos.y+1, z = pos.z}, {name = "nsspf:lentinus_strigosus"}) + end + end +}) \ No newline at end of file diff --git a/models/blend/clitocybula_azurea.blend b/models/blend/clitocybula_azurea.blend new file mode 100644 index 0000000..5e2fa01 Binary files /dev/null and b/models/blend/clitocybula_azurea.blend differ diff --git a/models/blend/clitocybula_azurea.blend1 b/models/blend/clitocybula_azurea.blend1 new file mode 100644 index 0000000..1a1bc67 Binary files /dev/null and b/models/blend/clitocybula_azurea.blend1 differ diff --git a/models/blend/lentinus_strigosus.blend b/models/blend/lentinus_strigosus.blend new file mode 100644 index 0000000..ba75896 Binary files /dev/null and b/models/blend/lentinus_strigosus.blend differ diff --git a/models/blend/lentinus_strigosus.blend1 b/models/blend/lentinus_strigosus.blend1 new file mode 100644 index 0000000..5178e2e Binary files /dev/null and b/models/blend/lentinus_strigosus.blend1 differ diff --git a/models/blend/marasmius_haematocephalus.blend b/models/blend/marasmius_haematocephalus.blend new file mode 100644 index 0000000..7d8ef7e Binary files /dev/null and b/models/blend/marasmius_haematocephalus.blend differ diff --git a/models/blend/marasmius_haematocephalus.blend1 b/models/blend/marasmius_haematocephalus.blend1 new file mode 100644 index 0000000..de1dcd2 Binary files /dev/null and b/models/blend/marasmius_haematocephalus.blend1 differ diff --git a/models/clitocybula_azurea.b3d b/models/clitocybula_azurea.b3d new file mode 100644 index 0000000..3ed8728 Binary files /dev/null and b/models/clitocybula_azurea.b3d differ diff --git a/models/lentinus_strigosus.b3d b/models/lentinus_strigosus.b3d new file mode 100644 index 0000000..0981b62 Binary files /dev/null and b/models/lentinus_strigosus.b3d differ diff --git a/models/marasmius_haematocephalus.b3d b/models/marasmius_haematocephalus.b3d new file mode 100644 index 0000000..9106bfa Binary files /dev/null and b/models/marasmius_haematocephalus.b3d differ diff --git a/textures/clitocybe_glacialis.png b/textures/clitocybe_glacialis.png new file mode 100644 index 0000000..45ed3a6 Binary files /dev/null and b/textures/clitocybe_glacialis.png differ diff --git a/textures/clitocybula_azurea.png b/textures/clitocybula_azurea.png new file mode 100644 index 0000000..9ca8b6f Binary files /dev/null and b/textures/clitocybula_azurea.png differ diff --git a/textures/ganoderma_lucidum.png b/textures/ganoderma_lucidum.png new file mode 100644 index 0000000..d2adeba Binary files /dev/null and b/textures/ganoderma_lucidum.png differ diff --git a/textures/hygrophorus_goetzii.png b/textures/hygrophorus_goetzii.png new file mode 100644 index 0000000..e0b486b Binary files /dev/null and b/textures/hygrophorus_goetzii.png differ diff --git a/textures/lentinus_strigosus.png b/textures/lentinus_strigosus.png new file mode 100644 index 0000000..dfb6448 Binary files /dev/null and b/textures/lentinus_strigosus.png differ diff --git a/textures/marasmius_haematocephalus.png b/textures/marasmius_haematocephalus.png new file mode 100644 index 0000000..cecda33 Binary files /dev/null and b/textures/marasmius_haematocephalus.png differ diff --git a/textures/plectania_nannfeldtii.png b/textures/plectania_nannfeldtii.png new file mode 100644 index 0000000..0c6d347 Binary files /dev/null and b/textures/plectania_nannfeldtii.png differ diff --git a/wildplants_and fungi.txt b/wildplants_and fungi.txt index f473001..a454df7 100644 --- a/wildplants_and fungi.txt +++ b/wildplants_and fungi.txt @@ -36,4 +36,7 @@ Marasmius haematocephalus Lentinus strigosus Clitocybula azurea - Snowbank fungi (removing normal fungi from pineforest with snow) \ No newline at end of file + Snowbank fungi (removing normal fungi from pineforest with snow) + Plectania nannfeldtii + Clitocybe glacialis + Hygrophorus goetzii \ No newline at end of file