177 lines
4.7 KiB
Lua
177 lines
4.7 KiB
Lua
minetest.register_node("industrial_decor:planks",{
|
|
description = "Planks",
|
|
drawtype = "signlike",
|
|
tiles = {"industrial_decor_planks.png"},
|
|
inventory_image = "industrial_decor_planks.png",
|
|
wield_image = "industrial_decor_planks.png",
|
|
light_propagates = true,
|
|
sunlight_propagates = true,
|
|
paramtype = "light",
|
|
paramtype2 = "wallmounted",
|
|
|
|
walkable = false,
|
|
|
|
|
|
groups = {choppy = 2},
|
|
selection_box = {
|
|
type = "wallmounted",
|
|
},
|
|
})
|
|
|
|
--Lamps
|
|
minetest.register_node("industrial_decor:lamp",{
|
|
description = "Industrial Lamp",
|
|
drawtype = "plantlike",
|
|
tiles = {"industrial_decor_lamp.png"},
|
|
inventory_image = "industrial_decor_lamp.png",
|
|
wield_image = "industrial_decor_lamp.png",
|
|
light_source = 14,
|
|
light_propagates = true,
|
|
sunlight_propagates = true,
|
|
is_ground_content = false,
|
|
walkable = false,
|
|
|
|
groups = {cracky = 1},
|
|
selection_box = {
|
|
type = "fixed",
|
|
fixed = {-6 / 16, -0.5, -6 / 16, 6 / 16, 0.5, 6 / 16},
|
|
},
|
|
|
|
on_punch = function(pos, node, player, pointed_thing)
|
|
minetest.set_node({x = pos.x, y = pos.y, z = pos.z}, {name = "industrial_decor:lamp_damaged"})
|
|
end
|
|
})
|
|
|
|
minetest.register_node("industrial_decor:lamp_damaged",{
|
|
description = "Damaged Industrial Lamp",
|
|
drawtype = "plantlike",
|
|
tiles = {"industrial_decor_lamp_damaged.png"},
|
|
inventory_image = "industrial_decor_lamp_damaged.png",
|
|
wield_image = "industrial_decor_lamp_damaged.png",
|
|
light_propagates = true,
|
|
sunlight_propagates = true,
|
|
paramtype = "light",
|
|
is_ground_content = false,
|
|
walkable = false,
|
|
|
|
groups = {cracky = 2},
|
|
selection_box = {
|
|
type = "fixed",
|
|
fixed = {-6 / 16, -0.5, -6 / 16, 6 / 16, 0.5, 6 / 16},
|
|
},
|
|
})
|
|
|
|
minetest.register_node("industrial_decor:wires_hanging",{
|
|
description = "Hanging Wires",
|
|
drawtype = "plantlike",
|
|
tiles = {"industrial_decor_wires_hanging.png"},
|
|
inventory_image = "industrial_decor_wires_hanging.png",
|
|
wield_image = "industrial_decor_wires_hanging.png",
|
|
light_propagates = true,
|
|
sunlight_propagates = true,
|
|
paramtype = "light",
|
|
is_ground_content = false,
|
|
walkable = false,
|
|
|
|
groups = {snappy = 3},
|
|
selection_box = {
|
|
type = "fixed",
|
|
fixed = {-6 / 16, -0.5, -6 / 16, 6 / 16, 0.5, 6 / 16},
|
|
},
|
|
})
|
|
|
|
minetest.register_node("industrial_decor:lamp_fixed",{
|
|
description = "Fixed Industrial Lamp",
|
|
drawtype = "plantlike",
|
|
tiles = {"industrial_decor_lamp_fixed.png"},
|
|
inventory_image = "industrial_decor_lamp_fixed.png",
|
|
wield_image = "industrial_decor_lamp_fixed.png",
|
|
light_source = 10,
|
|
light_propagates = true,
|
|
sunlight_propagates = true,
|
|
is_ground_content = false,
|
|
walkable = false,
|
|
|
|
groups = {cracky = 1},
|
|
selection_box = {
|
|
type = "fixed",
|
|
fixed = {-6 / 16, -0.5, -6 / 16, 6 / 16, 0.5, 6 / 16},
|
|
},
|
|
|
|
on_punch = function(pos, node, player, pointed_thing)
|
|
minetest.set_node({x = pos.x, y = pos.y, z = pos.z}, {name = "industrial_decor:lamp_damaged"})
|
|
end
|
|
})
|
|
|
|
minetest.register_node("industrial_decor:sheet_tin",{
|
|
description = "Industrial Tin Sheet",
|
|
tiles = {"industrial_decor_sheet_tin.png"},
|
|
|
|
|
|
groups = {cracky = 1},
|
|
})
|
|
|
|
minetest.register_node("industrial_decor:desk",{
|
|
drawtype = "allfaces_optional",
|
|
paramtype = "light",
|
|
description = "Desk",
|
|
tiles = {"industrial_decor_desk.png",
|
|
"industrial_decor_desk.png",
|
|
"industrial_decor_desk.png",
|
|
"industrial_decor_desk.png",
|
|
"industrial_decor_desk_front.png",},
|
|
|
|
|
|
groups = {choppy = 2},
|
|
})
|
|
|
|
minetest.register_node("industrial_decor:crate_upsidedown",{
|
|
drawtype = "allfaces_optional",
|
|
paramtype = "light",
|
|
description = "Food Crate",
|
|
tiles = {"industrial_decor_crate_upsidedown.png"},
|
|
|
|
|
|
groups = {choppy = 3},
|
|
})
|
|
|
|
minetest.register_node("industrial_decor:hvdevice_pol",{
|
|
description = "Polish High Voltage Device",
|
|
drawtype = "signlike",
|
|
tiles = {"industrial_decor_hvdevice_polish.png"},
|
|
inventory_image = "industrial_decor_hvdevice_polish.png",
|
|
wield_image = "industrial_decor_hvdevice_polish.png",
|
|
light_propagates = true,
|
|
sunlight_propagates = true,
|
|
paramtype = "light",
|
|
paramtype2 = "wallmounted",
|
|
|
|
walkable = false,
|
|
|
|
|
|
groups = {crumbly = 1},
|
|
selection_box = {
|
|
type = "wallmounted",
|
|
},
|
|
})
|
|
|
|
minetest.register_node("industrial_decor:hvdevice_usa",{
|
|
description = "American High Voltage Device",
|
|
drawtype = "signlike",
|
|
tiles = {"industrial_decor_hvdevice_american.png"},
|
|
inventory_image = "industrial_decor_hvdevice_american.png",
|
|
wield_image = "industrial_decor_hvdevice_american.png",
|
|
light_propagates = true,
|
|
sunlight_propagates = true,
|
|
paramtype = "light",
|
|
paramtype2 = "wallmounted",
|
|
|
|
walkable = false,
|
|
|
|
|
|
groups = {crumbly = 1},
|
|
selection_box = {
|
|
type = "wallmounted",
|
|
},
|
|
})
|