From 732a5ae2bc1a5c37752703a92e2f78c07490e861 Mon Sep 17 00:00:00 2001 From: h-v-smacker Date: Sun, 29 Jul 2018 00:53:31 +0300 Subject: think siding pieces --- extranodes/plastic_block.lua | 30 ++++++++++++++++++++++- extranodes/textures/technic_plastic_clean.png | Bin 0 -> 182 bytes extranodes/textures/technic_plastic_siding.png | Bin 193 -> 193 bytes extranodes/textures/technic_plastic_siding_2.png | Bin 195 -> 195 bytes extranodes/textures/technic_plastic_siding_3.png | Bin 187 -> 187 bytes extranodes/textures/technic_plastic_waves.png | Bin 242 -> 233 bytes 6 files changed, 29 insertions(+), 1 deletion(-) create mode 100644 extranodes/textures/technic_plastic_clean.png diff --git a/extranodes/plastic_block.lua b/extranodes/plastic_block.lua index d426c26..332f0d5 100644 --- a/extranodes/plastic_block.lua +++ b/extranodes/plastic_block.lua @@ -1,6 +1,7 @@ local S = rawget(_G, "intllib") and intllib.Getter() or function(s) return s end local plastic_nodes = { + {node = "plastic_clean", name = S("Plastic Clean"), tiles = {"technic_plastic_clean.png"}}, {node = "plastic_siding", name = S("Plastic Siding"), tiles = {"technic_plastic_siding.png"}}, {node = "plastic_siding_2", name = S("Plastic Siding 2"), tiles = {"technic_plastic_siding_2.png"}}, {node = "plastic_siding_3", name = S("Plastic Siding 3"), tiles = {"technic_plastic_siding_3.png"}}, @@ -17,7 +18,7 @@ for _,n in pairs(plastic_nodes) do description = n.name, drawtype = "normal", tiles = n.tiles, - drop = "technic:plastic_siding", + drop = "technic:" .. n.node, groups = {dig_immediate = 2, paintable_plastic_block = 1}, paramtype = "light", paramtype2 = "colorwallmounted", @@ -25,3 +26,30 @@ for _,n in pairs(plastic_nodes) do }) end + +local thin_nodes = { + {node = "plastic_siding", name = S("Plastic Siding"), tiles = {"technic_plastic_siding.png"}}, + {node = "plastic_siding_2", name = S("Plastic Siding 2"), tiles = {"technic_plastic_siding_2.png"}}, + {node = "plastic_siding_3", name = S("Plastic Siding 3"), tiles = {"technic_plastic_siding_3.png"}}, +} + +for _,n in pairs(thin_nodes) do + + minetest.register_node (":technic:" .. n.node .. "_thin", { + description = n.name, + drawtype = "nodebox", + tiles = n.tiles, + node_box = { + type = "wallmounted", + wall_bottom = {-0.5, -0.5, -0.5, 0.5, -0.25, 0.5}, + wall_top = {-0.5, 0.25, -0.5, 0.5, 0.5, 0.5}, + wall_side = {-0.5, -0.5, -0.5, -0.25, 0.5, 0.5}, + }, + drop = "technic:" .. n.node .. "_thin", + groups = {dig_immediate = 2, paintable_plastic_block = 1}, + paramtype = "light", + paramtype2 = "colorwallmounted", + palette = "technic_paint_palette.png", + }) + +end \ No newline at end of file diff --git a/extranodes/textures/technic_plastic_clean.png b/extranodes/textures/technic_plastic_clean.png new file mode 100644 index 0000000..01c4ca7 Binary files /dev/null and b/extranodes/textures/technic_plastic_clean.png differ diff --git a/extranodes/textures/technic_plastic_siding.png b/extranodes/textures/technic_plastic_siding.png index 464c94c..c1f451a 100644 Binary files a/extranodes/textures/technic_plastic_siding.png and b/extranodes/textures/technic_plastic_siding.png differ diff --git a/extranodes/textures/technic_plastic_siding_2.png b/extranodes/textures/technic_plastic_siding_2.png index 4e81797..da3e736 100644 Binary files a/extranodes/textures/technic_plastic_siding_2.png and b/extranodes/textures/technic_plastic_siding_2.png differ diff --git a/extranodes/textures/technic_plastic_siding_3.png b/extranodes/textures/technic_plastic_siding_3.png index 081ae9c..1588862 100644 Binary files a/extranodes/textures/technic_plastic_siding_3.png and b/extranodes/textures/technic_plastic_siding_3.png differ diff --git a/extranodes/textures/technic_plastic_waves.png b/extranodes/textures/technic_plastic_waves.png index c71e52c..997f81c 100644 Binary files a/extranodes/textures/technic_plastic_waves.png and b/extranodes/textures/technic_plastic_waves.png differ -- cgit v1.2.3