commit ad14f8a2a827336f3f6080dd56a0092c566251ef Author: migdyn Date: Mon Dec 31 05:37:14 2018 +0100 Initial commit diff --git a/init.lua b/init.lua new file mode 100644 index 0000000..e20a4fd --- /dev/null +++ b/init.lua @@ -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", + }, + }) diff --git a/textures/industrial_decor_crate_upsidedown.png b/textures/industrial_decor_crate_upsidedown.png new file mode 100644 index 0000000..2a8304b Binary files /dev/null and b/textures/industrial_decor_crate_upsidedown.png differ diff --git a/textures/industrial_decor_desk.png b/textures/industrial_decor_desk.png new file mode 100644 index 0000000..952778b Binary files /dev/null and b/textures/industrial_decor_desk.png differ diff --git a/textures/industrial_decor_desk_front.png b/textures/industrial_decor_desk_front.png new file mode 100644 index 0000000..8f47f48 Binary files /dev/null and b/textures/industrial_decor_desk_front.png differ diff --git a/textures/industrial_decor_hvdevice_american.png b/textures/industrial_decor_hvdevice_american.png new file mode 100644 index 0000000..f4fc06e Binary files /dev/null and b/textures/industrial_decor_hvdevice_american.png differ diff --git a/textures/industrial_decor_hvdevice_polish.png b/textures/industrial_decor_hvdevice_polish.png new file mode 100644 index 0000000..029a34d Binary files /dev/null and b/textures/industrial_decor_hvdevice_polish.png differ diff --git a/textures/industrial_decor_lamp.png b/textures/industrial_decor_lamp.png new file mode 100644 index 0000000..66d4b3b Binary files /dev/null and b/textures/industrial_decor_lamp.png differ diff --git a/textures/industrial_decor_lamp_damaged.png b/textures/industrial_decor_lamp_damaged.png new file mode 100644 index 0000000..5d4b7a9 Binary files /dev/null and b/textures/industrial_decor_lamp_damaged.png differ diff --git a/textures/industrial_decor_lamp_fixed.png b/textures/industrial_decor_lamp_fixed.png new file mode 100644 index 0000000..713472c Binary files /dev/null and b/textures/industrial_decor_lamp_fixed.png differ diff --git a/textures/industrial_decor_planks.png b/textures/industrial_decor_planks.png new file mode 100644 index 0000000..5b32563 Binary files /dev/null and b/textures/industrial_decor_planks.png differ diff --git a/textures/industrial_decor_planks_destroyed.png b/textures/industrial_decor_planks_destroyed.png new file mode 100644 index 0000000..0c68dfe Binary files /dev/null and b/textures/industrial_decor_planks_destroyed.png differ diff --git a/textures/industrial_decor_sheet_tin.png b/textures/industrial_decor_sheet_tin.png new file mode 100644 index 0000000..e050ecd Binary files /dev/null and b/textures/industrial_decor_sheet_tin.png differ diff --git a/textures/industrial_decor_wires_hanging.png b/textures/industrial_decor_wires_hanging.png new file mode 100644 index 0000000..de20143 Binary files /dev/null and b/textures/industrial_decor_wires_hanging.png differ