2012-04-07 07:04:39 -07:00
|
|
|
minetest.register_craft({
|
|
|
|
output = 'street:lamp 4',
|
|
|
|
recipe = {
|
|
|
|
{'default:coal_lump'},
|
|
|
|
{'default:torch'},
|
|
|
|
}
|
|
|
|
})
|
|
|
|
|
|
|
|
minetest.register_node("street:lamp", {
|
|
|
|
description = "Lamp",
|
|
|
|
drawtype = "plantlike",
|
|
|
|
tile_images = {"lamp.png"},
|
|
|
|
inventory_image = "lamp.png",
|
|
|
|
wield_image = "lamp.png",
|
|
|
|
paramtype = "light",
|
2012-04-07 09:26:51 -07:00
|
|
|
--paramtype2 = "wallmounted",
|
2012-04-07 07:04:39 -07:00
|
|
|
sunlight_propagates = true,
|
2012-04-07 09:26:51 -07:00
|
|
|
walkable = false,
|
2012-04-07 07:04:39 -07:00
|
|
|
light_source = LIGHT_MAX-1,
|
|
|
|
selection_box = {
|
2012-04-07 09:26:51 -07:00
|
|
|
--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},
|
2012-04-07 07:04:39 -07:00
|
|
|
},
|
|
|
|
material = minetest.digprop_constanttime(0.0),
|
|
|
|
legacy_wallmounted = true,
|
|
|
|
})
|
|
|
|
|
|
|
|
minetest.register_craft({
|
|
|
|
output = 'street:lamppost 12',
|
|
|
|
recipe = {
|
|
|
|
{'default:coal_lump'},
|
|
|
|
{'default:fence_wood'},
|
|
|
|
}
|
|
|
|
})
|
|
|
|
|
|
|
|
minetest.register_node("street:lamppost", {
|
|
|
|
description = "Lamppost",
|
|
|
|
drawtype = "fencelike",
|
2012-04-07 09:26:51 -07:00
|
|
|
tile_images = {"lamppost.png"},
|
|
|
|
inventory_image = "lamppost.png",
|
|
|
|
wield_image = "lamppost.png",
|
2012-04-07 07:04:39 -07:00
|
|
|
paramtype = "light",
|
|
|
|
is_ground_content = true,
|
|
|
|
sunlight_propagates = true,
|
|
|
|
walkable = false,
|
|
|
|
light_source = LIGHT_MAX-1,
|
|
|
|
selection_box = {
|
|
|
|
type = "fixed",
|
|
|
|
fixed = {-1/7, -1/2, -1/7, 1/7, 1/2, 1/7},
|
|
|
|
},
|
|
|
|
material = minetest.digprop_woodlike(0.75),
|
|
|
|
})
|