2019-05-21 23:04:05 +03:00
|
|
|
--[[
|
|
|
|
|
|
|
|
TechAge
|
|
|
|
=======
|
|
|
|
|
|
|
|
Copyright (C) 2019 Joachim Stolberg
|
|
|
|
|
2020-10-19 20:09:17 +03:00
|
|
|
AGPL v3
|
2019-05-21 23:04:05 +03:00
|
|
|
See LICENSE.txt for more information
|
2022-01-03 23:40:31 +03:00
|
|
|
|
2019-05-21 23:04:05 +03:00
|
|
|
TA3/TA4 Street Lamp
|
|
|
|
|
|
|
|
]]--
|
|
|
|
|
2019-07-02 22:33:12 +03:00
|
|
|
local S = techage.S
|
2019-05-21 23:04:05 +03:00
|
|
|
|
|
|
|
techage.register_lamp("techage:streetlamp", {
|
2019-07-02 22:33:12 +03:00
|
|
|
description = S("TA Street Lamp"),
|
2019-05-21 23:04:05 +03:00
|
|
|
tiles = {
|
|
|
|
-- up, down, right, left, back, front
|
|
|
|
'techage_streetlamp_top.png',
|
|
|
|
'techage_streetlamp_top.png',
|
|
|
|
'techage_streetlamp_off.png',
|
|
|
|
},
|
|
|
|
|
|
|
|
drawtype = "nodebox",
|
|
|
|
node_box = {
|
|
|
|
type = "fixed",
|
|
|
|
fixed = {
|
|
|
|
{-5/16, -8/16, -5/16, 5/16, 8/16, 5/16},
|
|
|
|
{-2/16, -8/16, -2/16, 2/16, 8/16, 2/16},
|
|
|
|
{-8/16, 4/16, -8/16, 8/16, 5/16, 8/16},
|
|
|
|
{-5/16, -8/16, -5/16, 5/16, -7/16, 5/16},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
selection_box = {
|
|
|
|
type = "fixed",
|
|
|
|
fixed = {-8/16, -8/16, -8/16, 8/16, 8/16, 8/16},
|
|
|
|
},
|
2019-06-25 21:35:51 +03:00
|
|
|
on_rotate = screwdriver.disallow,
|
|
|
|
conn_sides = {"U", "D"},
|
2019-05-21 23:04:05 +03:00
|
|
|
},{
|
2019-07-02 22:33:12 +03:00
|
|
|
description = S("TA Street Lamp"),
|
2019-05-21 23:04:05 +03:00
|
|
|
tiles = {
|
|
|
|
-- up, down, right, left, back, front
|
|
|
|
'techage_streetlamp_top.png',
|
|
|
|
'techage_streetlamp_top.png',
|
|
|
|
'techage_streetlamp.png',
|
|
|
|
},
|
|
|
|
|
|
|
|
drawtype = "nodebox",
|
|
|
|
node_box = {
|
|
|
|
type = "fixed",
|
|
|
|
fixed = {
|
|
|
|
{-5/16, -8/16, -5/16, 5/16, 8/16, 5/16},
|
|
|
|
{-8/16, 4/16, -8/16, 8/16, 5/16, 8/16},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
selection_box = {
|
|
|
|
type = "fixed",
|
|
|
|
fixed = {-8/16, -8/16, -8/16, 8/16, 8/16, 8/16},
|
|
|
|
},
|
2019-06-25 21:35:51 +03:00
|
|
|
on_rotate = screwdriver.disallow,
|
2019-05-21 23:04:05 +03:00
|
|
|
})
|
|
|
|
|
|
|
|
minetest.register_craft({
|
|
|
|
type = "shapeless",
|
|
|
|
output = "techage:streetlamp_off 2",
|
|
|
|
recipe = {"techage:simplelamp_off", "default:steel_ingot", "default:glass"},
|
2022-01-04 21:40:27 +03:00
|
|
|
})
|