diff options
author | h-v-smacker <hans-von-smacker+github@gmail.com> | 2018-05-13 14:15:29 +0300 |
---|---|---|
committer | h-v-smacker <hans-von-smacker+github@gmail.com> | 2018-05-13 14:15:29 +0300 |
commit | fdab1a0b04bcde6950af8393da089d12d68ba082 (patch) | |
tree | 5a0b6560bae2eeb30ad508d5dac243d8c8617236 | |
parent | 043b563c9cd1bec109acd34c07c13c5057839fa0 (diff) |
support for drawers mod
-rw-r--r-- | README.md | 6 | ||||
-rw-r--r-- | depends.txt | 1 | ||||
-rw-r--r-- | init.lua | 19 | ||||
-rw-r--r-- | textures/drawers_maple_wood.png | bin | 0 -> 580 bytes | |||
-rw-r--r-- | textures/drawers_maple_wood_front_1.png | bin | 0 -> 712 bytes | |||
-rw-r--r-- | textures/drawers_maple_wood_front_2.png | bin | 0 -> 716 bytes | |||
-rw-r--r-- | textures/drawers_maple_wood_front_4.png | bin | 0 -> 707 bytes |
7 files changed, 25 insertions, 1 deletions
@@ -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 @@ -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 Binary files differnew file mode 100644 index 0000000..668620b --- /dev/null +++ b/textures/drawers_maple_wood.png diff --git a/textures/drawers_maple_wood_front_1.png b/textures/drawers_maple_wood_front_1.png Binary files differnew file mode 100644 index 0000000..8ad44c8 --- /dev/null +++ b/textures/drawers_maple_wood_front_1.png diff --git a/textures/drawers_maple_wood_front_2.png b/textures/drawers_maple_wood_front_2.png Binary files differnew file mode 100644 index 0000000..4eec04d --- /dev/null +++ b/textures/drawers_maple_wood_front_2.png diff --git a/textures/drawers_maple_wood_front_4.png b/textures/drawers_maple_wood_front_4.png Binary files differnew file mode 100644 index 0000000..0cf2bfd --- /dev/null +++ b/textures/drawers_maple_wood_front_4.png |