38 lines
1.1 KiB
Lua
38 lines
1.1 KiB
Lua
minetest.register_node("default:torch", {
|
|
description = "Torch",
|
|
inventory_image = "default_torch_on_floor.png",
|
|
wield_image = "default_torch_on_floor.png",
|
|
tiles = {
|
|
"default_torch_on_floor_top.png",
|
|
"default_torch_on_floor_bottom.png",
|
|
"default_torch_on_floor.png",
|
|
"default_torch_on_floor.png",
|
|
"default_torch_on_floor.png",
|
|
"default_torch_on_floor.png"
|
|
},
|
|
paramtype = "light",
|
|
paramtype2 = "wallmounted",
|
|
sunlight_propagates = true,
|
|
is_ground_content = false,
|
|
walkable = false,
|
|
light_source = default.LIGHT_MAX - 1,
|
|
groups = {choppy = 2, dig_immediate = 3, flammable = 1, attached_node = 1},
|
|
legacy_wallmounted = true,
|
|
sounds = default.node_sound_defaults(),
|
|
liquids_pointable = false,
|
|
drawtype = "nodebox",
|
|
paramtype = "light",
|
|
node_box = {
|
|
type = "fixed",
|
|
fixed = {
|
|
{-0.0625, -0.5, -0.0625, 0.0625, 0.125, 0.0625}, -- NodeBox1
|
|
}
|
|
},
|
|
selection_box = {
|
|
type = "wallmounted",
|
|
wall_top = {-0.1, 0.5 - 0.6, -0.1, 0.1, 0.5, 0.1},
|
|
wall_bottom = {-0.1, -0.5, -0.1, 0.1, -0.5 + 0.6, 0.1},
|
|
wall_side = {-0.5, -0.3, -0.1, -0.5 + 0.3, 0.3, 0.1},
|
|
},
|
|
})
|