fantasy_biomes/nodes.lua

84 lines
2.9 KiB
Lua

minetest.register_node("fantasy_biomes:lapis_tree", {
description = ("Lapis Tree"),
tiles = {"default_tree_top.png^[colorize:blue:100", "default_tree_top.png^[colorize:blue:100", "default_tree.png^[colorize:blue:100"},
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
})
minetest.register_node("fantasy_biomes:dirt_with_grass_and_flowers", {
description = ("Dirt with Grass and Flowers"),
tiles = {"fantasy_biomes_grass_with_flowers.png", "default_dirt.png",
{name = "default_dirt.png^default_grass_side.png",
tileable_vertical = false}},
groups = {crumbly = 3, soil = 1, spreading_dirt_type = 1},
drop = "default:dirt",
sounds = default.node_sound_dirt_defaults({
footstep = {name = "default_grass_footstep", gain = 0.25},
}),
})
minetest.register_node("fantasy_biomes:lapis_tree_leaves", {
description = ("Lapis Tree Leaves"),
drawtype = "allfaces_optional",
waving = 1,
tiles = {"default_leaves.png^[colorize:blue:100"},
special_tiles = {"default_leaves_simple.png^[colorize:blue:100"},
paramtype = "light",
is_ground_content = false,
groups = {snappy = 3, leafdecay = 3, flammable = 2, leaves = 1},
sounds = default.node_sound_leaves_defaults(),
after_place_node = after_place_leaves,
})
minetest.register_node("fantasy_biomes:lapis_dirt", {
description = ("Lapis Dirt"),
tiles = {"default_gravel.png^[colorize:blue:100"},
groups = {crumbly = 3, soil = 1},
sounds = default.node_sound_dirt_defaults(),
})
minetest.register_node("fantasy_biomes:rafflesia", {
description = ("Rafflesia"),
drawtype = "plantlike",
waving = 1,
paramtype = "light",
walkable = false,
sunlight_propagates = true,
buildable_to = true,
tiles = {"fantasy_biomes_rafflesia.png"},
groups = {oddly_breakable_by_hand = 1},
sounds = default.node_sound_leaves_defaults(),
})
minetest.register_node("fantasy_biomes:anthill", {
description = ("Anthill"),
drawtype = "plantlike",
waving = 0,
paramtype = "light",
walkable = false,
sunlight_propagates = true,
buildable_to = true,
tiles = {"fantasy_biomes_anthill.png"},
groups = {oddly_breakable_by_hand = 3},
damage_per_second = 1,
selection_box = {
type = "fixed",
fixed = {-4 / 16, -0.5, -4 / 16, 4 / 16, 2 / 16, 4 / 16}
},
sounds = default.node_sound_dirt_defaults(),
})
minetest.register_node("fantasy_biomes:lapis_wood_planks", {
description = ("Lapis Wood Planks"),
paramtype2 = "facedir",
place_param2 = 0,
tiles = {"default_wood.png^[colorize:blue:100"},
is_ground_content = false,
groups = {choppy = 2, oddly_breakable_by_hand = 2, flammable = 2, wood = 1},
sounds = default.node_sound_wood_defaults(),
})