undergrowth/trunks/nodes.lua

61 lines
2.1 KiB
Lua
Raw Normal View History

2013-09-29 17:47:12 -07:00
-----------------------------------------------------------------------------------------------
-- TWiG
-----------------------------------------------------------------------------------------------
2013-09-27 16:37:07 -07:00
local flat_stick = {-1/2, -1/2, -1/2, 1/2, -7/16, 1/2}
minetest.register_node("trunks:twig", {
description = "Twig",
inventory_image = "trunks_twig.png",
wield_image = "trunks_twig.png",
drawtype = "nodebox",
tiles = { "trunks_twig.png" },
paramtype = "light",
paramtype2 = "facedir",
sunlight_propagates = true,
buildable_to = true,
node_box = {type = "fixed", fixed = flat_stick},
groups = {
dig_immediate=3, -- almost literally immediate, like just picking up
attached_node=1
},
sounds = default.node_sound_leaves_defaults(),
})
2013-09-29 17:47:12 -07:00
-----------------------------------------------------------------------------------------------
-- MoSS
-----------------------------------------------------------------------------------------------
minetest.register_node("trunks:moss", {
2013-09-29 17:47:12 -07:00
description = "Moss",
drawtype = "signlike",
tiles = {"trunks_moss.png"},
inventory_image = "trunks_moss.png",
wield_image = "trunks_moss.png",
paramtype = "light",
paramtype2 = "wallmounted",
2013-09-29 17:47:12 -07:00
sunlight_propagates = true,
walkable = false,
2013-09-29 17:47:12 -07:00
selection_box = {type = "wallmounted"},
groups = {dig_immediate=2,attached_node=1},
--legacy_wallmounted = true,
sounds = default.node_sound_leaves_defaults(),
})
2013-09-28 08:31:56 -07:00
2013-09-29 17:47:12 -07:00
-----------------------------------------------------------------------------------------------
-- MoSS & FuNGuS
-----------------------------------------------------------------------------------------------
2013-09-28 08:31:56 -07:00
minetest.register_node("trunks:moss_fungus", {
2013-09-29 17:47:12 -07:00
description = "Moss & Fungus",
2013-09-28 08:31:56 -07:00
drawtype = "signlike",
tiles = {"trunks_moss_fungus.png"},
inventory_image = "trunks_moss_fungus.png",
wield_image = "trunks_moss_fungus.png",
paramtype = "light",
paramtype2 = "wallmounted",
2013-09-29 17:47:12 -07:00
sunlight_propagates = true,
2013-09-28 08:31:56 -07:00
walkable = false,
2013-09-29 17:47:12 -07:00
selection_box = {type = "wallmounted"},
groups = {dig_immediate=2,attached_node=1},
--legacy_wallmounted = true,
2013-09-28 08:31:56 -07:00
sounds = default.node_sound_leaves_defaults(),
})