diff --git a/mods/default/nodes.lua b/mods/default/nodes.lua index b1858765e..e59f04cd7 100644 --- a/mods/default/nodes.lua +++ b/mods/default/nodes.lua @@ -264,6 +264,18 @@ minetest.register_node("default:dirt_with_grass", { }), }) +minetest.register_node("default:mycelium", { + description = "Mycelium", + tiles = {"default_mycelium_top.png", "default_dirt.png", "default_mycelium_side.png"}, + is_ground_content = true, + stack_max = 64, + groups = {crumbly=3, soil=1}, + drop = 'default:dirt', + sounds = default.node_sound_dirt_defaults({ + footstep = {name="default_grass_footstep", gain=0.4}, + }), +}) + minetest.register_node("default:dirt_with_snow", { description = "Dirt with Snow", tiles = {"default_snow.png", "default_dirt.png", "default_dirt.png^default_snow_side.png"}, diff --git a/mods/default/textures/default_mycelium_side.png b/mods/default/textures/default_mycelium_side.png new file mode 100644 index 000000000..c9e49be31 Binary files /dev/null and b/mods/default/textures/default_mycelium_side.png differ diff --git a/mods/default/textures/default_mycelium_top.png b/mods/default/textures/default_mycelium_top.png new file mode 100644 index 000000000..2727625d0 Binary files /dev/null and b/mods/default/textures/default_mycelium_top.png differ diff --git a/mods/farming/hoes.lua b/mods/farming/hoes.lua index f448e2974..d14e29d11 100644 --- a/mods/farming/hoes.lua +++ b/mods/farming/hoes.lua @@ -5,7 +5,7 @@ local function create_soil(pos, inv) local node = minetest.get_node(pos) local name = node.name local above = minetest.get_node({x=pos.x, y=pos.y+1, z=pos.z}) - if name == "default:dirt" or name == "default:dirt_with_grass" then + if name == "default:dirt" or name == "default:dirt_with_grass" or name == "default:mycelium" then if above.name == "air" then node.name = "farming:soil" minetest.set_node(pos, node)