Initial commit

master
migdyn 2018-12-31 05:37:14 +01:00
commit ad14f8a2a8
13 changed files with 176 additions and 0 deletions

176
init.lua Normal file
View File

@ -0,0 +1,176 @@
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",
},
})

Binary file not shown.

After

Width:  |  Height:  |  Size: 302 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 181 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 445 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 304 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 263 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 477 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 552 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 545 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 414 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 444 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 353 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 636 B