add a use for giant mycelium

This commit is contained in:
FaceDeer 2019-08-12 20:03:55 -06:00
parent 63efbf6179
commit 1a86f38f71
3 changed files with 44 additions and 2 deletions

View File

@ -68,7 +68,7 @@ local mushroom_cavern_ceiling = function(abs_cracks, humidity, vi, area, data, d
data[vi] = c_mycelial_dirt data[vi] = c_mycelial_dirt
if abs_cracks < 0.3 then if abs_cracks < 0.3 then
local rand = math.random() * humidityfactor local rand = math.random() * humidityfactor
if rand < 0.003 then if rand < 0.002 then
data[vi-ystride] = c_giant_mycelium data[vi-ystride] = c_giant_mycelium
elseif rand < 0.03 then elseif rand < 0.03 then
df_primordial_items.spawn_ceiling_spire_vm(vi, area, data) df_primordial_items.spawn_ceiling_spire_vm(vi, area, data)
@ -87,7 +87,7 @@ local mushroom_warren_ceiling = function(abs_cracks, vi, area, data, data_param2
data[vi] = c_mycelial_dirt data[vi] = c_mycelial_dirt
if abs_cracks < 0.2 then if abs_cracks < 0.2 then
local rand = math.random() local rand = math.random()
if rand < 0.003 then if rand < 0.002 then
data[vi-ystride] = c_giant_mycelium data[vi-ystride] = c_giant_mycelium
elseif rand < 0.2 then elseif rand < 0.2 then
data[vi-ystride] = c_orb data[vi-ystride] = c_orb

View File

@ -34,6 +34,18 @@ minetest.register_node("df_primordial_items:giant_hypha_root", {
is_ground_content = false, is_ground_content = false,
groups = {oddly_breakable_by_hand = 1, choppy = 2, hypha = 1}, groups = {oddly_breakable_by_hand = 1, choppy = 2, hypha = 1},
sounds = default.node_sound_wood_defaults(), sounds = default.node_sound_wood_defaults(),
drop = {
max_items = 1,
items = {
{
items = {"df_primordial_items:mycelial_fibers","df_primordial_items:giant_hypha_apical_meristem"},
rarity = 100,
},
{
items = {"df_primordial_items:mycelial_fibers"},
},
},
},
}) })
minetest.register_node("df_primordial_items:giant_hypha", { minetest.register_node("df_primordial_items:giant_hypha", {
description = S("Giant Hypha"), description = S("Giant Hypha"),
@ -49,6 +61,36 @@ minetest.register_node("df_primordial_items:giant_hypha", {
is_ground_content = false, is_ground_content = false,
groups = {oddly_breakable_by_hand = 1, choppy = 2, hypha = 1}, groups = {oddly_breakable_by_hand = 1, choppy = 2, hypha = 1},
sounds = default.node_sound_wood_defaults(), sounds = default.node_sound_wood_defaults(),
drop = {
max_items = 1,
items = {
{
items = {"df_primordial_items:mycelial_fibers","df_primordial_items:giant_hypha_apical_meristem"},
rarity = 100,
},
{
items = {"df_primordial_items:mycelial_fibers"},
},
},
},
})
minetest.register_craftitem("df_primordial_items:mycelial_fibers", {
description = S("Giant Mycelial Fibers"),
groups = {wool = 1},
inventory_image = "dfcaverns_mush_mycelial_fibers.png",
})
minetest.register_craftitem("df_primordial_items:mycelial_thread", {
description = S("Mycelial thread"),
inventory_image = "dfcaverns_pig_tail_thread.png",
groups = {flammable = 1, thread = 1},
})
minetest.register_craft({
output = "df_primordial_items:mycelial_thread 4",
type = "shapeless",
recipe = { "df_primordial_items:mycelial_fibers"},
}) })
-- Check each of the six cardinal directions to see if it's buildable-to, -- Check each of the six cardinal directions to see if it's buildable-to,

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB