diff --git a/mods/doors/README.txt b/mods/doors/README.txt index f9caaffc..9e7a72ed 100644 --- a/mods/doors/README.txt +++ b/mods/doors/README.txt @@ -52,6 +52,10 @@ Glass door textures by Krock and paramat based on textures by VanessaE (CC BY-SA doors_door_glass.png doors_item_glass.png +Steel Bar door textures by TumeniNodes based on textures by Gambit (CC BY-SA 3.0): + doors_door_bar.png + doors_item_bar.png + All other textures (created by PilzAdam) (CC BY-SA 3.0): Door textures were converted to the new texture map by sofar, paramat and diff --git a/mods/doors/init.lua b/mods/doors/init.lua index 9a5c9b43..ef99d73c 100644 --- a/mods/doors/init.lua +++ b/mods/doors/init.lua @@ -505,6 +505,21 @@ doors.register("door_obsidian_glass", { }, }) +doors.register("door_bar", { + tiles = {{ name = "doors_door_bar.png", backface_culling = true }}, + description = "Steel Bar Door", + inventory_image = "doors_item_bar.png", + groups = {cracky = 1, level = 2}, + sounds = default.node_sound_metal_defaults(), + sound_open = "doors_steel_door_open", + sound_close = "doors_steel_door_close", + recipe = { + {"xpanes:bar_flat", "xpanes:bar_flat"}, + {"xpanes:bar_flat", "xpanes:bar_flat"}, + {"xpanes:bar_flat", "xpanes:bar_flat"}, + }, +}) + -- Capture mods using the old API as best as possible. function doors.register_door(name, def) if def.only_placer_can_open then @@ -700,6 +715,19 @@ doors.register_trapdoor("doors:trapdoor_steel", { groups = {cracky = 1, level = 2, door = 1}, }) +doors.register_trapdoor("doors:trapdoor_bar", { + description = "Steel Bar Trapdoor", + inventory_image = "doors_trapdoor_bar.png", + wield_image = "doors_trapdoor_bar.png", + tile_front = "doors_trapdoor_bar.png", + tile_side = "doors_trapdoor_bar_side.png", + protected = true, + sounds = default.node_sound_metal_defaults(), + sound_open = "doors_steel_door_open", + sound_close = "doors_steel_door_close", + groups = {cracky = 1, level = 2, door = 1}, +}) + minetest.register_craft({ output = "doors:trapdoor 2", recipe = { @@ -717,6 +745,14 @@ minetest.register_craft({ } }) +minetest.register_craft({ + output = 'doors:trapdoor_bar', + recipe = { + {'xpanes:bar_flat', 'xpanes:bar_flat'}, + {'xpanes:bar_flat', 'xpanes:bar_flat'}, + } +}) + ----fence gate---- diff --git a/mods/doors/license.txt b/mods/doors/license.txt index 8ce73c49..9dcbbdad 100644 --- a/mods/doors/license.txt +++ b/mods/doors/license.txt @@ -38,6 +38,7 @@ Copyright (C) 2014-2016 BlockMen Copyright (C) 2015-2016 sofar Copyright (C) 2016 red-001 Copyright (C) 2016 paramat +Copyright (C) 2016-2019 TumeniNodes You are free to: Share — copy and redistribute the material in any medium or format. diff --git a/mods/doors/mod.conf b/mods/doors/mod.conf index de053c27..29dc4a65 100644 --- a/mods/doors/mod.conf +++ b/mods/doors/mod.conf @@ -1,4 +1,4 @@ name = doors description = Minetest Game mod: doors -depends = default +depends = default, xpanes optional_depends = screwdriver diff --git a/mods/doors/textures/doors_door_bar.png b/mods/doors/textures/doors_door_bar.png new file mode 100644 index 00000000..81965ca1 Binary files /dev/null and b/mods/doors/textures/doors_door_bar.png differ diff --git a/mods/doors/textures/doors_item_bar.png b/mods/doors/textures/doors_item_bar.png new file mode 100644 index 00000000..005f6665 Binary files /dev/null and b/mods/doors/textures/doors_item_bar.png differ diff --git a/mods/doors/textures/doors_trapdoor_bar.png b/mods/doors/textures/doors_trapdoor_bar.png new file mode 100644 index 00000000..b638646e Binary files /dev/null and b/mods/doors/textures/doors_trapdoor_bar.png differ diff --git a/mods/doors/textures/doors_trapdoor_bar_side.png b/mods/doors/textures/doors_trapdoor_bar_side.png new file mode 100644 index 00000000..14e3b0ff Binary files /dev/null and b/mods/doors/textures/doors_trapdoor_bar_side.png differ