From 9867365568fe11331ff05b78dc8e0b2f04789915 Mon Sep 17 00:00:00 2001 From: D00Med Date: Mon, 20 Nov 2017 14:48:47 +1000 Subject: [PATCH] corrugated iron --- mods/stm_nodes/init.lua | 29 ++++++++++++++++++ .../textures/stm_nodes_corrugated_tin.png | Bin 0 -> 446 bytes 2 files changed, 29 insertions(+) create mode 100644 mods/stm_nodes/textures/stm_nodes_corrugated_tin.png diff --git a/mods/stm_nodes/init.lua b/mods/stm_nodes/init.lua index 49d4207..fb1e913 100644 --- a/mods/stm_nodes/init.lua +++ b/mods/stm_nodes/init.lua @@ -271,6 +271,35 @@ minetest.register_abm({ end }) +minetest.register_node("stm_nodes:tin_roof", { + description = "Corrugated Tin Roof", + tiles = { + "stm_nodes_corrugated_tin.png", + "stm_nodes_corrugated_tin.png", + "stm_nodes_tin.png", + }, + drawtype = "nodebox", + paramtype = "light", + paramtype2 = "facedir", + node_box = { + type = "fixed", + fixed = { + {-0.5, -0.5, -0.5, -0.375, -0.4375, 0.5}, -- NodeBox6 + {-0.375, -0.4375, -0.5, -0.25, -0.375, 0.5}, -- NodeBox7 + {-0.375, -0.4375, -0.5, -0.25, -0.375, 0.5}, -- NodeBox8 + {-0.25, -0.5, -0.5, -0.125, -0.4375, 0.5}, -- NodeBox9 + {-0.125, -0.4375, -0.5, 0, -0.375, 0.5}, -- NodeBox10 + {0, -0.5, -0.5, 0.125, -0.4375, 0.5}, -- NodeBox11 + {0.125, -0.4375, -0.5, 0.25, -0.375, 0.5}, -- NodeBox12 + {0.25, -0.5, -0.5, 0.375, -0.4375, 0.5}, -- NodeBox13 + {0.375, -0.4375, -0.5, 0.5, -0.375, 0.5}, -- NodeBox14 + } + }, + sounds = default.node_sound_metal_defaults(), + groups = {cracky=1}, + on_place = minetest.rotate_node +}) + minetest.register_node("stm_nodes:porthole", { description = "Porthole", tiles = { diff --git a/mods/stm_nodes/textures/stm_nodes_corrugated_tin.png b/mods/stm_nodes/textures/stm_nodes_corrugated_tin.png new file mode 100644 index 0000000000000000000000000000000000000000..7bb448f6ca913657e0bbbf43c4f64efd3c135ff4 GIT binary patch literal 446 zcmV;v0YUzWP)TDMfb&xL*g9&1RN>nbjCw zvIA5VoF-BmTtE&luQp!xC=PoHl)}Dfs z_|QdUZ^1vBSy(8WO(>F-;!H9gUT0>Js}q=6bn@CQwTt9lfls|v)F$wke-Wwgz&o@6 om-yS_Z^F)t7T`Zm3-~X_Z*GhJ=>YTrLI3~&07*qoM6N<$g0)4xaR2}S literal 0 HcmV?d00001