From fdab1a0b04bcde6950af8393da089d12d68ba082 Mon Sep 17 00:00:00 2001 From: h-v-smacker Date: Sun, 13 May 2018 14:15:29 +0300 Subject: support for drawers mod --- README.md | 6 +++++- depends.txt | 1 + init.lua | 19 +++++++++++++++++++ textures/drawers_maple_wood.png | Bin 0 -> 580 bytes textures/drawers_maple_wood_front_1.png | Bin 0 -> 712 bytes textures/drawers_maple_wood_front_2.png | Bin 0 -> 716 bytes textures/drawers_maple_wood_front_4.png | Bin 0 -> 707 bytes 7 files changed, 25 insertions(+), 1 deletion(-) create mode 100644 textures/drawers_maple_wood.png create mode 100644 textures/drawers_maple_wood_front_1.png create mode 100644 textures/drawers_maple_wood_front_2.png create mode 100644 textures/drawers_maple_wood_front_4.png 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 Binary files /dev/null and b/textures/drawers_maple_wood.png 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 Binary files /dev/null and b/textures/drawers_maple_wood_front_1.png 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 Binary files /dev/null and b/textures/drawers_maple_wood_front_2.png 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 Binary files /dev/null and b/textures/drawers_maple_wood_front_4.png differ -- cgit v1.2.3