2019-05-27 00:22:29 +03:00
|
|
|
--[[
|
|
|
|
|
|
|
|
TechAge
|
|
|
|
=======
|
|
|
|
|
|
|
|
Copyright (C) 2019 Joachim Stolberg
|
|
|
|
|
2020-10-19 20:09:17 +03:00
|
|
|
AGPL v3
|
2019-05-27 00:22:29 +03:00
|
|
|
See LICENSE.txt for more information
|
|
|
|
|
|
|
|
TA3/TA4 Ceiling Lamp
|
|
|
|
|
|
|
|
]]--
|
|
|
|
|
2019-07-02 22:33:12 +03:00
|
|
|
local S = techage.S
|
2019-05-27 00:22:29 +03:00
|
|
|
|
|
|
|
techage.register_lamp("techage:ceilinglamp", {
|
2019-07-02 22:33:12 +03:00
|
|
|
description = S("TA Ceiling Lamp"),
|
2019-05-27 00:22:29 +03:00
|
|
|
tiles = {
|
|
|
|
-- up, down, right, left, back, front
|
|
|
|
'techage_ceilinglamp_top.png',
|
|
|
|
'techage_ceilinglamp_bottom.png',
|
|
|
|
'techage_ceilinglamp.png',
|
|
|
|
'techage_ceilinglamp.png',
|
|
|
|
'techage_ceilinglamp.png',
|
|
|
|
'techage_ceilinglamp.png',
|
|
|
|
'techage_ceilinglamp.png',
|
|
|
|
'techage_ceilinglamp.png',
|
|
|
|
},
|
|
|
|
|
|
|
|
drawtype = "nodebox",
|
|
|
|
node_box = {
|
|
|
|
type = "fixed",
|
|
|
|
fixed = {
|
|
|
|
{-5/16, -7/16, -5/16, 5/16, -5/16, 5/16},
|
|
|
|
{-4/16, -8/16, -4/16, 4/16, -7/16, 4/16},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
|
|
|
|
},{
|
2019-07-02 22:33:12 +03:00
|
|
|
description = S("TA Ceiling Lamp"),
|
2019-05-27 00:22:29 +03:00
|
|
|
tiles = {
|
|
|
|
-- up, down, right, left, back, front
|
|
|
|
'techage_ceilinglamp_top.png',
|
|
|
|
'techage_ceilinglamp_bottom.png',
|
|
|
|
'techage_ceilinglamp.png',
|
|
|
|
'techage_ceilinglamp.png',
|
|
|
|
'techage_ceilinglamp.png',
|
|
|
|
'techage_ceilinglamp.png',
|
|
|
|
},
|
|
|
|
|
|
|
|
drawtype = "nodebox",
|
|
|
|
node_box = {
|
|
|
|
type = "fixed",
|
|
|
|
fixed = {
|
|
|
|
{-5/16, -7/16, -5/16, 5/16, -5/16, 5/16},
|
|
|
|
{-4/16, -8/16, -4/16, 4/16, -7/16, 4/16},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
})
|
|
|
|
|
|
|
|
minetest.register_craft({
|
|
|
|
type = "shapeless",
|
|
|
|
output = "techage:ceilinglamp_off 3",
|
|
|
|
recipe = {"techage:simplelamp_off", "default:wood", "default:glass"},
|
|
|
|
})
|