mirror of
https://github.com/FaceDeer/dfcaverns.git
synced 2025-02-23 07:20:22 +01:00
add a use for giant mycelium
This commit is contained in:
parent
63efbf6179
commit
1a86f38f71
@ -68,7 +68,7 @@ local mushroom_cavern_ceiling = function(abs_cracks, humidity, vi, area, data, d
|
||||
data[vi] = c_mycelial_dirt
|
||||
if abs_cracks < 0.3 then
|
||||
local rand = math.random() * humidityfactor
|
||||
if rand < 0.003 then
|
||||
if rand < 0.002 then
|
||||
data[vi-ystride] = c_giant_mycelium
|
||||
elseif rand < 0.03 then
|
||||
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
|
||||
if abs_cracks < 0.2 then
|
||||
local rand = math.random()
|
||||
if rand < 0.003 then
|
||||
if rand < 0.002 then
|
||||
data[vi-ystride] = c_giant_mycelium
|
||||
elseif rand < 0.2 then
|
||||
data[vi-ystride] = c_orb
|
||||
|
@ -34,6 +34,18 @@ minetest.register_node("df_primordial_items:giant_hypha_root", {
|
||||
is_ground_content = false,
|
||||
groups = {oddly_breakable_by_hand = 1, choppy = 2, hypha = 1},
|
||||
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", {
|
||||
description = S("Giant Hypha"),
|
||||
@ -49,6 +61,36 @@ minetest.register_node("df_primordial_items:giant_hypha", {
|
||||
is_ground_content = false,
|
||||
groups = {oddly_breakable_by_hand = 1, choppy = 2, hypha = 1},
|
||||
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,
|
||||
|
BIN
df_primordial_items/textures/dfcaverns_mush_mycelial_fibers.png
Normal file
BIN
df_primordial_items/textures/dfcaverns_mush_mycelial_fibers.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 1.1 KiB |
Loading…
x
Reference in New Issue
Block a user