46 lines
1.3 KiB
Lua
46 lines
1.3 KiB
Lua
local modname = minetest.get_current_modname()
|
|
-- Mud for swamps
|
|
minetest.register_node(modname..":mud", {
|
|
description = "Mud",
|
|
tiles = {"biomes_mud.png"},
|
|
liquid_viscosity = 8,
|
|
liquidtype = "source",
|
|
liquid_renewable = false,
|
|
liquid_alternative_source = modname..":mud",
|
|
liquid_alternative_flowing = modname..":mud",
|
|
liquid_range = 0,
|
|
post_effect_color = {r=115, g=61, b=31, a=255},
|
|
drowning = 1,
|
|
walkable = false,
|
|
groups = {crumbly = 2},
|
|
sounds = default.node_sound_dirt_defaults(),
|
|
})
|
|
|
|
-- Fir tree
|
|
minetest.register_node(modname..":fir_tree", {
|
|
description = "Fir Tree",
|
|
tiles = {"biomes_fir_tree_top.png", "biomes_fir_tree_top.png", "biomes_fir_tree.png"},
|
|
paramtype2 = "facedir",
|
|
is_ground_content = false,
|
|
groups = {tree = 1, choppy = 2, oddly_breakable_by_hand = 1, flammable = 2},
|
|
sounds = default.node_sound_wood_defaults(),
|
|
|
|
on_place = minetest.rotate_node
|
|
})
|
|
|
|
-- Fir needles
|
|
minetest.register_node(modname..":fir_needles", {
|
|
description = "Fir Needles",
|
|
drawtype = "allfaces_optional",
|
|
waving = 1,
|
|
tiles = {"biomes_fir_leaves.png"},
|
|
paramtype = "light",
|
|
is_ground_content = false,
|
|
groups = {snappy = 3, leafdecay = 3, flammable = 2, leaves = 1},
|
|
sounds = default.node_sound_leaves_defaults(),
|
|
|
|
after_place_node = default.after_place_leaves,
|
|
})
|
|
|
|
minetest.register_alias(modname..":fir_needles", "fir_needles")
|