farlands/mods/mapgen/nodes.lua
2017-01-12 06:27:31 +10:00

69 lines
1.8 KiB
Lua

minetest.register_node("mapgen:granite", {
description = "Granite",
tiles = {"mapgen_granite.png"},
groups = {cracky = 2},
sounds = default.node_sound_stone_defaults()
})
minetest.register_node("mapgen:granite_brown", {
description = "Brown Granite",
tiles = {"mapgen_granite_brown.png"},
groups = {cracky = 2},
sounds = default.node_sound_stone_defaults()
})
minetest.register_node("mapgen:limestone", {
description = "Limestone",
tiles = {"mapgen_limestone.png"},
groups = {cracky = 2},
sounds = default.node_sound_stone_defaults()
})
minetest.register_node("mapgen:palm_tree", {
description = "Palm Tree",
tiles = {
"mapgen_palmtree_top.png",
"mapgen_palmtree_top.png",
"mapgen_palmtree_side.png",
},
groups = {choppy = 2, tree = 1, flammable = 1, oddly_breakable_by_hand=1},
sounds = default.node_sound_wood_defaults(),
on_place = minetest.rotate_node
})
minetest.register_node("mapgen:palm_wood", {
description = "Palm Wood Planks",
tiles = {
"mapgen_palmtree_wood.png",
},
groups = {choppy = 1, flammable = 1, oddly_breakable_by_hand=1},
sounds = default.node_sound_wood_defaults()
})
minetest.register_node("mapgen:palm_leaves", {
description = "Palm Leaves",
drawtype = "allfaces",
paramtype = "light",
tiles = {
"mapgen_palmleaves.png",
},
groups = {snappy = 1, oddly_breakable_by_hand = 1, flammable = 1, dig_immediate = 1, leaves = 1, leafdecay = 3},
sounds = default.node_sound_leaves_defaults()
})
minetest.register_node("mapgen:moss", {
description = "Moss",
drawtype = "nodebox",
tiles = {"mapgen_moss.png"},
paramtype = "light",
node_box = {
type = "fixed",
fixed = {
{-0.5, -0.5, -0.5, 0.5, -0.3125, 0.5},
}
},
buildable_to = true,
groups = {snappy = 1, oddly_breakable_by_hand=1, dig_immediate=3},
sounds = default.node_sound_defaults()
})