diff options
Diffstat (limited to 'extranodes')
-rw-r--r-- | extranodes/init.lua | 1 | ||||
-rw-r--r-- | extranodes/plastic_block.lua | 128 | ||||
-rw-r--r-- | extranodes/textures/technic_plastic_block.png | bin | 0 -> 222 bytes | |||
-rw-r--r-- | extranodes/textures/technic_plastic_bricks.png | bin | 0 -> 263 bytes | |||
-rw-r--r-- | extranodes/textures/technic_plastic_clean.png | bin | 0 -> 182 bytes | |||
-rw-r--r-- | extranodes/textures/technic_plastic_cross.png | bin | 0 -> 329 bytes | |||
-rw-r--r-- | extranodes/textures/technic_plastic_siding_1.png | bin | 0 -> 193 bytes | |||
-rw-r--r-- | extranodes/textures/technic_plastic_siding_2.png | bin | 0 -> 195 bytes | |||
-rw-r--r-- | extranodes/textures/technic_plastic_siding_3.png | bin | 0 -> 187 bytes | |||
-rw-r--r-- | extranodes/textures/technic_plastic_tiles.png | bin | 0 -> 315 bytes | |||
-rw-r--r-- | extranodes/textures/technic_plastic_waves.png | bin | 0 -> 233 bytes |
11 files changed, 129 insertions, 0 deletions
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..6ab6a7f --- /dev/null +++ b/extranodes/plastic_block.lua @@ -0,0 +1,128 @@ +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_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_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"}}, +} + +for _,n in pairs(plastic_nodes) do + + minetest.register_node (":technic:" .. n.node, { + description = n.name, + drawtype = "normal", + tiles = n.tiles, + drop = "technic:" .. n.node, + groups = {dig_immediate = 2, paintable_plastic_block = 1}, + paramtype = "light", + paramtype2 = "colorwallmounted", + palette = "technic_paint_palette.png", + }) + +end + +local thin_nodes = { + {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"}}, +} + +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 + + + +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 Binary files differnew file mode 100644 index 0000000..7a7bc6c --- /dev/null +++ b/extranodes/textures/technic_plastic_block.png diff --git a/extranodes/textures/technic_plastic_bricks.png b/extranodes/textures/technic_plastic_bricks.png Binary files differnew file mode 100644 index 0000000..79d082a --- /dev/null +++ b/extranodes/textures/technic_plastic_bricks.png diff --git a/extranodes/textures/technic_plastic_clean.png b/extranodes/textures/technic_plastic_clean.png Binary files differnew file mode 100644 index 0000000..01c4ca7 --- /dev/null +++ b/extranodes/textures/technic_plastic_clean.png diff --git a/extranodes/textures/technic_plastic_cross.png b/extranodes/textures/technic_plastic_cross.png Binary files differnew file mode 100644 index 0000000..3257d2f --- /dev/null +++ b/extranodes/textures/technic_plastic_cross.png diff --git a/extranodes/textures/technic_plastic_siding_1.png b/extranodes/textures/technic_plastic_siding_1.png Binary files differnew file mode 100644 index 0000000..c1f451a --- /dev/null +++ b/extranodes/textures/technic_plastic_siding_1.png diff --git a/extranodes/textures/technic_plastic_siding_2.png b/extranodes/textures/technic_plastic_siding_2.png Binary files differnew file mode 100644 index 0000000..da3e736 --- /dev/null +++ b/extranodes/textures/technic_plastic_siding_2.png diff --git a/extranodes/textures/technic_plastic_siding_3.png b/extranodes/textures/technic_plastic_siding_3.png Binary files differnew file mode 100644 index 0000000..1588862 --- /dev/null +++ b/extranodes/textures/technic_plastic_siding_3.png diff --git a/extranodes/textures/technic_plastic_tiles.png b/extranodes/textures/technic_plastic_tiles.png Binary files differnew file mode 100644 index 0000000..e4aed57 --- /dev/null +++ b/extranodes/textures/technic_plastic_tiles.png diff --git a/extranodes/textures/technic_plastic_waves.png b/extranodes/textures/technic_plastic_waves.png Binary files differnew file mode 100644 index 0000000..997f81c --- /dev/null +++ b/extranodes/textures/technic_plastic_waves.png |