From 6d0d9081099ce6a36e0db0c7ddebeb768a9d618f Mon Sep 17 00:00:00 2001 From: h-v-smacker Date: Sun, 29 Jul 2018 00:32:39 +0300 Subject: colorable plastic nodes --- extranodes/init.lua | 1 + extranodes/plastic_block.lua | 27 +++++++++++++++++++++++ extranodes/textures/technic_plastic_blocks.png | Bin 0 -> 222 bytes extranodes/textures/technic_plastic_bricks.png | Bin 0 -> 263 bytes extranodes/textures/technic_plastic_cross.png | Bin 0 -> 329 bytes extranodes/textures/technic_plastic_siding.png | Bin 0 -> 193 bytes extranodes/textures/technic_plastic_siding_2.png | Bin 0 -> 195 bytes extranodes/textures/technic_plastic_siding_3.png | Bin 0 -> 187 bytes extranodes/textures/technic_plastic_tiles.png | Bin 0 -> 315 bytes extranodes/textures/technic_plastic_waves.png | Bin 0 -> 242 bytes 10 files changed, 28 insertions(+) create mode 100644 extranodes/plastic_block.lua create mode 100644 extranodes/textures/technic_plastic_blocks.png create mode 100644 extranodes/textures/technic_plastic_bricks.png create mode 100644 extranodes/textures/technic_plastic_cross.png create mode 100644 extranodes/textures/technic_plastic_siding.png create mode 100644 extranodes/textures/technic_plastic_siding_2.png create mode 100644 extranodes/textures/technic_plastic_siding_3.png create mode 100644 extranodes/textures/technic_plastic_tiles.png create mode 100644 extranodes/textures/technic_plastic_waves.png (limited to 'extranodes') diff --git a/extranodes/init.lua b/extranodes/init.lua index edaa41a..d986b6e 100644 --- a/extranodes/init.lua +++ b/extranodes/init.lua @@ -10,6 +10,7 @@ dofile(path.."/trampoline.lua") dofile(path.."/extratubes.lua") dofile(path.."/extramesecons.lua") dofile(path.."/lox.lua") +dofile(path.."/plastic_block.lua") if minetest.get_modpath("ethereal") and minetest.get_modpath("flowers") then dofile(path.."/antishroom.lua") diff --git a/extranodes/plastic_block.lua b/extranodes/plastic_block.lua new file mode 100644 index 0000000..d426c26 --- /dev/null +++ b/extranodes/plastic_block.lua @@ -0,0 +1,27 @@ +local S = rawget(_G, "intllib") and intllib.Getter() or function(s) return s end + +local plastic_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"}}, + {node = "plastic_bricks", name = S("Plastic Bricks"), tiles = {"technic_plastic_bricks.png"}}, + {node = "plastic_blocks", name = S("Plastic Blocks"), tiles = {"technic_plastic_blocks.png"}}, + {node = "plastic_cross", name = S("Plastic Cross"), tiles = {"technic_plastic_cross.png"}}, + {node = "plastic_waves", name = S("Plastic Waves"), tiles = {"technic_plastic_waves.png"}}, + {node = "plastic_tiles", name = S("Plastic Tiles"), tiles = {"technic_plastic_tiles.png"}}, +} + +for _,n in pairs(plastic_nodes) do + + minetest.register_node (":technic:" .. n.node, { + description = n.name, + drawtype = "normal", + tiles = n.tiles, + drop = "technic:plastic_siding", + groups = {dig_immediate = 2, paintable_plastic_block = 1}, + paramtype = "light", + paramtype2 = "colorwallmounted", + palette = "technic_paint_palette.png", + }) + +end diff --git a/extranodes/textures/technic_plastic_blocks.png b/extranodes/textures/technic_plastic_blocks.png new file mode 100644 index 0000000..7a7bc6c Binary files /dev/null and b/extranodes/textures/technic_plastic_blocks.png differ diff --git a/extranodes/textures/technic_plastic_bricks.png b/extranodes/textures/technic_plastic_bricks.png new file mode 100644 index 0000000..79d082a Binary files /dev/null and b/extranodes/textures/technic_plastic_bricks.png differ diff --git a/extranodes/textures/technic_plastic_cross.png b/extranodes/textures/technic_plastic_cross.png new file mode 100644 index 0000000..3257d2f Binary files /dev/null and b/extranodes/textures/technic_plastic_cross.png differ diff --git a/extranodes/textures/technic_plastic_siding.png b/extranodes/textures/technic_plastic_siding.png new file mode 100644 index 0000000..464c94c Binary files /dev/null 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 new file mode 100644 index 0000000..4e81797 Binary files /dev/null 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 new file mode 100644 index 0000000..081ae9c Binary files /dev/null and b/extranodes/textures/technic_plastic_siding_3.png differ diff --git a/extranodes/textures/technic_plastic_tiles.png b/extranodes/textures/technic_plastic_tiles.png new file mode 100644 index 0000000..e4aed57 Binary files /dev/null and b/extranodes/textures/technic_plastic_tiles.png differ diff --git a/extranodes/textures/technic_plastic_waves.png b/extranodes/textures/technic_plastic_waves.png new file mode 100644 index 0000000..c71e52c Binary files /dev/null and b/extranodes/textures/technic_plastic_waves.png differ -- cgit v1.2.3 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 (limited to 'extranodes') 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 From df5cb9076e30ff337b53d4c38500eff27bb68528 Mon Sep 17 00:00:00 2001 From: h-v-smacker Date: Mon, 6 Aug 2018 08:04:25 +0300 Subject: recipes for best varieties --- extranodes/plastic_block.lua | 85 +++++++++++++++++++++-- extranodes/textures/technic_plastic_block.png | Bin 0 -> 222 bytes extranodes/textures/technic_plastic_blocks.png | Bin 222 -> 0 bytes extranodes/textures/technic_plastic_siding.png | Bin 193 -> 0 bytes extranodes/textures/technic_plastic_siding_1.png | Bin 0 -> 193 bytes 5 files changed, 79 insertions(+), 6 deletions(-) create mode 100644 extranodes/textures/technic_plastic_block.png delete mode 100644 extranodes/textures/technic_plastic_blocks.png delete mode 100644 extranodes/textures/technic_plastic_siding.png create mode 100644 extranodes/textures/technic_plastic_siding_1.png (limited to 'extranodes') diff --git a/extranodes/plastic_block.lua b/extranodes/plastic_block.lua index 332f0d5..6ab6a7f 100644 --- a/extranodes/plastic_block.lua +++ b/extranodes/plastic_block.lua @@ -2,11 +2,11 @@ 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"}}, + {node = "plastic_siding_1", name = S("Plastic Siding Block 1"), tiles = {"technic_plastic_siding_1.png"}}, + {node = "plastic_siding_2", name = S("Plastic Siding Block 2"), tiles = {"technic_plastic_siding_2.png"}}, + {node = "plastic_siding_3", name = S("Plastic Siding Block 3"), tiles = {"technic_plastic_siding_3.png"}}, {node = "plastic_bricks", name = S("Plastic Bricks"), tiles = {"technic_plastic_bricks.png"}}, - {node = "plastic_blocks", name = S("Plastic Blocks"), tiles = {"technic_plastic_blocks.png"}}, + {node = "plastic_block", name = S("Plastic Block"), tiles = {"technic_plastic_block.png"}}, {node = "plastic_cross", name = S("Plastic Cross"), tiles = {"technic_plastic_cross.png"}}, {node = "plastic_waves", name = S("Plastic Waves"), tiles = {"technic_plastic_waves.png"}}, {node = "plastic_tiles", name = S("Plastic Tiles"), tiles = {"technic_plastic_tiles.png"}}, @@ -28,7 +28,7 @@ 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_1", name = S("Plastic Siding 1"), tiles = {"technic_plastic_siding_1.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"}}, } @@ -52,4 +52,77 @@ for _,n in pairs(thin_nodes) do palette = "technic_paint_palette.png", }) -end \ No newline at end of file +end + + + +minetest.register_craft({ + output = "technic:plastic_clean", + recipe = { + { "homedecor:plastic_sheeting", "homedecor:plastic_sheeting", "homedecor:plastic_sheeting"}, + { "homedecor:plastic_sheeting", "homedecor:plastic_sheeting", "homedecor:plastic_sheeting"}, + { "homedecor:plastic_sheeting", "homedecor:plastic_sheeting", "homedecor:plastic_sheeting"} + }, +}) + +minetest.register_craft({ + output = "technic:plastic_siding_1_thin 2", + recipe = { + {"technic:plastic_clean"}, + }, +}) + +minetest.register_craft({ + output = "technic:plastic_siding_1", + recipe = { + {"technic:plastic_siding_1_thin", "technic:plastic_siding_1_thin"}, + }, +}) + +minetest.register_craft({ + output = "technic:plastic_siding_2_thin 4", + recipe = { + { "technic:plastic_clean", "", ""}, + { "technic:plastic_clean", "", ""}, + }, +}) + +minetest.register_craft({ + output = "technic:plastic_siding_2", + recipe = { + {"technic:plastic_siding_2_thin", "technic:plastic_siding_2_thin"}, + }, +}) + +minetest.register_craft({ + output = "technic:plastic_siding_3_thin 6", + recipe = { + { "technic:plastic_clean", "", ""}, + { "technic:plastic_clean", "", ""}, + { "technic:plastic_clean", "", ""}, + }, +}) + +minetest.register_craft({ + output = "technic:plastic_siding_3", + recipe = { + {"technic:plastic_siding_3_thin", "technic:plastic_siding_3_thin"}, + }, +}) + +minetest.register_craft({ + output = "technic:plastic_bricks 4", + recipe = { + { "technic:plastic_clean", "technic:plastic_clean"}, + { "technic:plastic_clean", "technic:plastic_clean"}, + }, +}) + +minetest.register_craft({ + output = "technic:plastic_block 9", + recipe = { + { "technic:plastic_clean", "technic:plastic_clean", "technic:plastic_clean"}, + { "technic:plastic_clean", "technic:plastic_clean", "technic:plastic_clean"}, + { "technic:plastic_clean", "technic:plastic_clean", "technic:plastic_clean"}, + }, +}) diff --git a/extranodes/textures/technic_plastic_block.png b/extranodes/textures/technic_plastic_block.png new file mode 100644 index 0000000..7a7bc6c Binary files /dev/null and b/extranodes/textures/technic_plastic_block.png differ diff --git a/extranodes/textures/technic_plastic_blocks.png b/extranodes/textures/technic_plastic_blocks.png deleted file mode 100644 index 7a7bc6c..0000000 Binary files a/extranodes/textures/technic_plastic_blocks.png and /dev/null differ diff --git a/extranodes/textures/technic_plastic_siding.png b/extranodes/textures/technic_plastic_siding.png deleted file mode 100644 index c1f451a..0000000 Binary files a/extranodes/textures/technic_plastic_siding.png and /dev/null differ diff --git a/extranodes/textures/technic_plastic_siding_1.png b/extranodes/textures/technic_plastic_siding_1.png new file mode 100644 index 0000000..c1f451a Binary files /dev/null and b/extranodes/textures/technic_plastic_siding_1.png differ -- cgit v1.2.3