mirror of
https://git.minetest.land/VoxeLibre/VoxeLibre.git
synced 2024-11-22 10:31:06 +01:00
Add mycelium
This commit is contained in:
parent
a16d5ee9bf
commit
2083b6a76b
4 changed files with 13 additions and 1 deletions
|
@ -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"},
|
||||
|
|
BIN
mods/default/textures/default_mycelium_side.png
Normal file
BIN
mods/default/textures/default_mycelium_side.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 1.5 KiB |
BIN
mods/default/textures/default_mycelium_top.png
Normal file
BIN
mods/default/textures/default_mycelium_top.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 1.1 KiB |
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue