mirror of
https://github.com/luanti-org/minetest_game.git
synced 2025-05-30 18:46:28 -04:00
add steel bar door and trapdoor
This commit is contained in:
parent
e5ebb36cd5
commit
a0a83c5847
8 changed files with 42 additions and 1 deletions
|
@ -52,6 +52,10 @@ Glass door textures by Krock and paramat based on textures by VanessaE (CC BY-SA
|
||||||
doors_door_glass.png
|
doors_door_glass.png
|
||||||
doors_item_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):
|
All other textures (created by PilzAdam) (CC BY-SA 3.0):
|
||||||
|
|
||||||
Door textures were converted to the new texture map by sofar, paramat and
|
Door textures were converted to the new texture map by sofar, paramat and
|
||||||
|
|
|
@ -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.
|
-- Capture mods using the old API as best as possible.
|
||||||
function doors.register_door(name, def)
|
function doors.register_door(name, def)
|
||||||
if def.only_placer_can_open then
|
if def.only_placer_can_open then
|
||||||
|
@ -700,6 +715,19 @@ doors.register_trapdoor("doors:trapdoor_steel", {
|
||||||
groups = {cracky = 1, level = 2, door = 1},
|
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({
|
minetest.register_craft({
|
||||||
output = "doors:trapdoor 2",
|
output = "doors:trapdoor 2",
|
||||||
recipe = {
|
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----
|
----fence gate----
|
||||||
|
|
||||||
|
|
|
@ -38,6 +38,7 @@ Copyright (C) 2014-2016 BlockMen
|
||||||
Copyright (C) 2015-2016 sofar
|
Copyright (C) 2015-2016 sofar
|
||||||
Copyright (C) 2016 red-001
|
Copyright (C) 2016 red-001
|
||||||
Copyright (C) 2016 paramat
|
Copyright (C) 2016 paramat
|
||||||
|
Copyright (C) 2016-2019 TumeniNodes
|
||||||
|
|
||||||
You are free to:
|
You are free to:
|
||||||
Share — copy and redistribute the material in any medium or format.
|
Share — copy and redistribute the material in any medium or format.
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
name = doors
|
name = doors
|
||||||
description = Minetest Game mod: doors
|
description = Minetest Game mod: doors
|
||||||
depends = default
|
depends = default, xpanes
|
||||||
optional_depends = screwdriver
|
optional_depends = screwdriver
|
||||||
|
|
BIN
mods/doors/textures/doors_door_bar.png
Normal file
BIN
mods/doors/textures/doors_door_bar.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 520 B |
BIN
mods/doors/textures/doors_item_bar.png
Normal file
BIN
mods/doors/textures/doors_item_bar.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 293 B |
BIN
mods/doors/textures/doors_trapdoor_bar.png
Normal file
BIN
mods/doors/textures/doors_trapdoor_bar.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 179 B |
BIN
mods/doors/textures/doors_trapdoor_bar_side.png
Normal file
BIN
mods/doors/textures/doors_trapdoor_bar_side.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 98 B |
Loading…
Add table
Reference in a new issue