2019-05-21 23:04:05 +03:00
|
|
|
--[[
|
|
|
|
|
|
|
|
TechAge
|
|
|
|
=======
|
|
|
|
|
|
|
|
Copyright (C) 2019 Joachim Stolberg
|
|
|
|
|
2019-08-22 21:49:47 +03:00
|
|
|
GPL v3
|
2019-05-21 23:04:05 +03:00
|
|
|
See LICENSE.txt for more information
|
|
|
|
|
|
|
|
TA3/TA4 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:simplelamp", {
|
2019-07-02 22:33:12 +03:00
|
|
|
description = S("TA Lamp"),
|
2019-05-21 23:04:05 +03:00
|
|
|
tiles = {
|
|
|
|
'techage_electric_button.png',
|
|
|
|
},
|
2019-06-10 22:31:58 +03:00
|
|
|
conn_sides = {"L", "R", "U", "D", "F", "B"},
|
2019-05-21 23:04:05 +03:00
|
|
|
paramtype = "light",
|
|
|
|
light_source = 0,
|
|
|
|
sunlight_propagates = true,
|
|
|
|
paramtype2 = "facedir",
|
|
|
|
groups = {choppy=2, cracky=2, crumbly=2},
|
|
|
|
is_ground_content = false,
|
|
|
|
sounds = default.node_sound_wood_defaults(),
|
|
|
|
},{
|
2019-07-02 22:33:12 +03:00
|
|
|
description = S("TA Lamp"),
|
2019-05-21 23:04:05 +03:00
|
|
|
tiles = {
|
|
|
|
'techage_electric_button.png',
|
|
|
|
},
|
2019-06-10 22:31:58 +03:00
|
|
|
conn_sides = {"L", "R", "U", "D", "F", "B"},
|
2019-05-21 23:04:05 +03:00
|
|
|
paramtype = "light",
|
|
|
|
light_source = minetest.LIGHT_MAX,
|
|
|
|
sunlight_propagates = true,
|
|
|
|
paramtype2 = "facedir",
|
|
|
|
drop = "techage:test_lamp",
|
|
|
|
groups = {choppy=2, cracky=2, crumbly=2, not_in_creative_inventory=1},
|
|
|
|
is_ground_content = false,
|
|
|
|
sounds = default.node_sound_wood_defaults(),
|
|
|
|
})
|
|
|
|
|
|
|
|
minetest.register_craft({
|
|
|
|
output = "techage:simplelamp_off 2",
|
|
|
|
recipe = {
|
|
|
|
{"", "", ""},
|
|
|
|
{"", "default:glass", ""},
|
|
|
|
{"", "basic_materials:heating_element", ""},
|
|
|
|
},
|
|
|
|
})
|