techage/lamps/industriallamp2.lua

69 lines
1.6 KiB
Lua
Raw Permalink Normal View History

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
2022-01-03 23:40:31 +03:00
2019-05-27 00:22:29 +03:00
TA3/TA4 Industrial Lamp 2
]]--
local S = techage.S
2019-05-27 00:22:29 +03:00
local size = {x = 8/32, y = 8/32, z = 5/32}
techage.register_lamp("techage:industriallamp2", {
description = S("TA Industrial Lamp 2"),
2019-05-27 00:22:29 +03:00
inventory_image = 'techage_industriallamp_inv2.png',
tiles = {
-- up, down, right, left, back, front
'techage_industriallamp2.png',
'techage_industriallamp2.png',
'techage_industriallamp2.png^[transformR180',
'techage_industriallamp2.png^[transformR180',
'techage_industriallamp2.png',
'techage_industriallamp2.png',
},
drawtype = "nodebox",
node_box = {
type = "fixed",
fixed = {
{-8/32, -16/32, -4/32, 8/32, -9/32, 4/32},
{-7/32, -16/32, -5/32, 7/32, -9/32, 5/32},
{-7/32, -9/32, -4/32, 7/32, -8/32, 4/32},
},
},
},{
tiles = {
-- up, down, right, left, back, front
'techage_industriallamp2_on.png',
'techage_industriallamp2_on.png',
'techage_industriallamp2_on.png^[transformR180',
'techage_industriallamp2_on.png^[transformR180',
'techage_industriallamp2_on.png',
'techage_industriallamp2_on.png',
},
drawtype = "nodebox",
node_box = {
type = "fixed",
fixed = {
{-8/32, -16/32, -4/32, 8/32, -9/32, 4/32},
{-7/32, -16/32, -5/32, 7/32, -9/32, 5/32},
{-7/32, -9/32, -4/32, 7/32, -8/32, 4/32},
},
},
})
minetest.register_craft({
output = "techage:industriallamp2_off 2",
recipe = {
{"default:glass", "default:glass", ""},
{"techage:simplelamp_off", "dye:black", ""},
{"basic_materials:steel_bar", "basic_materials:steel_bar", ""},
},
})