summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorh-v-smacker <hans-von-smacker+github@gmail.com>2018-05-13 14:15:29 +0300
committerh-v-smacker <hans-von-smacker+github@gmail.com>2018-05-13 14:15:29 +0300
commitfdab1a0b04bcde6950af8393da089d12d68ba082 (patch)
tree5a0b6560bae2eeb30ad508d5dac243d8c8617236
parent043b563c9cd1bec109acd34c07c13c5057839fa0 (diff)
support for drawers mod
-rw-r--r--README.md6
-rw-r--r--depends.txt1
-rw-r--r--init.lua19
-rw-r--r--textures/drawers_maple_wood.pngbin0 -> 580 bytes
-rw-r--r--textures/drawers_maple_wood_front_1.pngbin0 -> 712 bytes
-rw-r--r--textures/drawers_maple_wood_front_2.pngbin0 -> 716 bytes
-rw-r--r--textures/drawers_maple_wood_front_4.pngbin0 -> 707 bytes
7 files changed, 25 insertions, 1 deletions
diff --git a/README.md b/README.md
index 46eef3d..5851074 100644
--- a/README.md
+++ b/README.md
@@ -37,4 +37,8 @@ end
## Stairs and slabs
-Maple tries to register fancy wooden shapes for maple wood with stairs or moreblocks. \ No newline at end of file
+Maple tries to register fancy wooden shapes for maple wood with stairs or moreblocks.
+
+## Drawers
+
+If storage drawers mod is available, maple registers the corresponding assortment of drawers. \ No newline at end of file
diff --git a/depends.txt b/depends.txt
index 43b225e..8db48a9 100644
--- a/depends.txt
+++ b/depends.txt
@@ -1,4 +1,5 @@
default
stairs
moreblocks?
+drawers?
bonemeal? \ No newline at end of file
diff --git a/init.lua b/init.lua
index cec359a..c722af7 100644
--- a/init.lua
+++ b/init.lua
@@ -185,4 +185,23 @@ else
default.node_sound_wood_defaults())
+end
+
+-- registering the wood type with drawers mod
+if minetest.get_modpath("drawers") and default then
+
+ drawers.register_drawer(":drawers:maple", {
+ description = "Maple",
+ tiles1 = drawers.node_tiles_front_other("drawers_maple_wood_front_1.png",
+ "drawers_maple_wood.png"),
+ tiles2 = drawers.node_tiles_front_other("drawers_maple_wood_front_2.png",
+ "drawers_maple_wood.png"),
+ tiles4 = drawers.node_tiles_front_other("drawers_maple_wood_front_4.png",
+ "drawers_maple_wood.png"),
+ groups = {choppy = 3, oddly_breakable_by_hand = 2},
+ sounds = drawers.WOOD_SOUNDS,
+ drawer_stack_max_factor = 4 * 8, -- normal chest size
+ material = drawers.WOOD_ITEMSTRING
+ })
+
end \ No newline at end of file
diff --git a/textures/drawers_maple_wood.png b/textures/drawers_maple_wood.png
new file mode 100644
index 0000000..668620b
--- /dev/null
+++ b/textures/drawers_maple_wood.png
Binary files differ
diff --git a/textures/drawers_maple_wood_front_1.png b/textures/drawers_maple_wood_front_1.png
new file mode 100644
index 0000000..8ad44c8
--- /dev/null
+++ b/textures/drawers_maple_wood_front_1.png
Binary files differ
diff --git a/textures/drawers_maple_wood_front_2.png b/textures/drawers_maple_wood_front_2.png
new file mode 100644
index 0000000..4eec04d
--- /dev/null
+++ b/textures/drawers_maple_wood_front_2.png
Binary files differ
diff --git a/textures/drawers_maple_wood_front_4.png b/textures/drawers_maple_wood_front_4.png
new file mode 100644
index 0000000..0cf2bfd
--- /dev/null
+++ b/textures/drawers_maple_wood_front_4.png
Binary files differ