summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLinus Jahn <lnj@kaidan.im>2018-09-11 17:52:07 +0200
committerLinus Jahn <lnj@kaidan.im>2018-09-11 17:52:07 +0200
commitbc48fc0c077a453c20d758318eee6ad6d06783b9 (patch)
treeedb375334b6fb2415e3c08c1393812ed49addc67
parent8702b6ac927342043697f3930fa14b96131ab3b5 (diff)
Add Wooden Trim for easy drawer network connections
This node is only used for connecting drawers, so that they are all in one drawer network and can be used with a drawer controller.
-rw-r--r--LICENSE.txt1
-rwxr-xr-xinit.lua18
-rw-r--r--textures/drawers_trim.pngbin0 -> 180 bytes
3 files changed, 19 insertions, 0 deletions
diff --git a/LICENSE.txt b/LICENSE.txt
index 3ff1ed4..60a1cdd 100644
--- a/LICENSE.txt
+++ b/LICENSE.txt
@@ -96,6 +96,7 @@ Copyright (C) 2014 Justin Aquadro (MIT):
textures/drawers_spruce_wood_front_2.png
textures/drawers_spruce_wood_front_4.png
textures/drawers_spruce_wood.png
+ textures/drawers_trim.png
textures/drawers_upgrade_diamond.png
textures/drawers_upgrade_emerald.png
textures/drawers_upgrade_gold.png
diff --git a/init.lua b/init.lua
index 2e079eb..ebdf5fb 100755
--- a/init.lua
+++ b/init.lua
@@ -314,6 +314,24 @@ elseif core.get_modpath("mcl_core") and mcl_core then
})
end
+--
+-- Register drawer trim
+--
+
+core.register_node("drawers:trim", {
+ description = S("Wooden Trim"),
+ tiles = {"drawers_trim.png"},
+ groups = {drawer = 1, choppy = 3, oddly_breakable_by_hand = 2}
+})
+
+core.register_craft({
+ output = "drawers:trim 6",
+ recipe = {
+ {"group:stick", "group:wood", "group:stick"},
+ {"group:wood", "group:wood", "group:wood"},
+ {"group:stick", "group:wood", "group:stick"}
+ }
+})
--
-- Register drawer upgrade template
diff --git a/textures/drawers_trim.png b/textures/drawers_trim.png
new file mode 100644
index 0000000..ab398c4
--- /dev/null
+++ b/textures/drawers_trim.png
Binary files differ