2016-01-06 12:53:30 +01:00
|
|
|
minetest.register_node("torch:torch", {
|
|
|
|
description = "Torch",
|
2016-04-21 16:23:11 +02:00
|
|
|
tiles = {"torch_torch_floor.png", "torch_torch_ceiling.png", "torch_torch_wall.png"},
|
|
|
|
drawtype = "torchlike",
|
2016-01-06 12:53:30 +01:00
|
|
|
groups = {crumbly = 3},
|
|
|
|
paramtype = "light",
|
2016-04-21 16:23:11 +02:00
|
|
|
paramtype2 = "wallmounted",
|
2016-01-06 12:53:30 +01:00
|
|
|
light_source = 14,
|
|
|
|
walkable = false,
|
|
|
|
inventory_image = "torch_torch_inv.png",
|
2016-04-21 16:23:11 +02:00
|
|
|
legacy_wallmounted = true,
|
|
|
|
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},
|
|
|
|
},
|
|
|
|
wield_image = "torch_torch_inv.png",
|
2016-01-06 12:53:30 +01:00
|
|
|
})
|
2016-01-18 19:38:20 +01:00
|
|
|
|
|
|
|
minetest.register_craft({
|
2016-03-20 10:22:11 +01:00
|
|
|
output = "torch:torch 4",
|
2016-01-18 19:38:20 +01:00
|
|
|
recipe = {
|
|
|
|
{"", "default:coal_lump", ""},
|
|
|
|
{"", "default:string_strong", ""},
|
2016-02-20 12:13:32 +01:00
|
|
|
{"", "default:stick", ""},
|
2016-01-18 19:38:20 +01:00
|
|
|
}
|
|
|
|
})
|