add steel bar door and trapdoor

This commit is contained in:
TumeniNodes 2019-08-13 00:41:39 -04:00
parent e5ebb36cd5
commit a0a83c5847
8 changed files with 42 additions and 1 deletions

View file

@ -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

View file

@ -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----

View file

@ -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.

View file

@ -1,4 +1,4 @@
name = doors
description = Minetest Game mod: doors
depends = default
depends = default, xpanes
optional_depends = screwdriver

Binary file not shown.

After

Width:  |  Height:  |  Size: 520 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 293 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 179 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 98 B