mirror of
https://github.com/minetest/minetest_game.git
synced 2024-11-05 07:13:52 +01:00
Xpanes: Register steel bar door and steel bar trapdoor
Register using the 'doors' mod API.
This commit is contained in:
parent
106c36da33
commit
23ceb30e88
@ -22,3 +22,9 @@ paramat (CC BY-SA 3.0):
|
||||
|
||||
Krock (CC0 1.0):
|
||||
xpanes_edge.png
|
||||
|
||||
TumeniNodes (CC BY-SA 3.0):
|
||||
xpanes_door_steel_bar.png
|
||||
xpanes_item_steel_bar.png
|
||||
xpanes_trapdoor_steel_bar.png
|
||||
xpanes_trapdoor_steel_bar_side.png
|
||||
|
@ -202,3 +202,45 @@ minetest.register_lbm({
|
||||
end
|
||||
end
|
||||
})
|
||||
|
||||
-- Register steel bar doors and trapdoors
|
||||
|
||||
if minetest.get_modpath("doors") then
|
||||
|
||||
doors.register("xpanes:door_steel_bar", {
|
||||
tiles = {{name = "xpanes_door_steel_bar.png", backface_culling = true}},
|
||||
description = S("Steel Bar Door"),
|
||||
inventory_image = "xpanes_item_steel_bar.png",
|
||||
protected = true,
|
||||
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"},
|
||||
},
|
||||
})
|
||||
|
||||
doors.register_trapdoor("xpanes:trapdoor_steel_bar", {
|
||||
description = S("Steel Bar Trapdoor"),
|
||||
inventory_image = "xpanes_trapdoor_steel_bar.png",
|
||||
wield_image = "xpanes_trapdoor_steel_bar.png",
|
||||
tile_front = "xpanes_trapdoor_steel_bar.png",
|
||||
tile_side = "xpanes_trapdoor_steel_bar_side.png",
|
||||
protected = true,
|
||||
groups = {cracky = 1, level = 2, door = 1},
|
||||
sounds = default.node_sound_metal_defaults(),
|
||||
sound_open = "doors_steel_door_open",
|
||||
sound_close = "doors_steel_door_close",
|
||||
})
|
||||
|
||||
minetest.register_craft({
|
||||
output = "xpanes:trapdoor_steel_bar",
|
||||
recipe = {
|
||||
{"xpanes:bar_flat", "xpanes:bar_flat"},
|
||||
{"xpanes:bar_flat", "xpanes:bar_flat"},
|
||||
}
|
||||
})
|
||||
end
|
||||
|
@ -34,6 +34,7 @@ Attribution-ShareAlike 3.0 Unported (CC BY-SA 3.0)
|
||||
Copyright (C) 2014-2016 xyz
|
||||
Copyright (C) 2013-2016 Gambit
|
||||
Copyright (C) 2016 paramat
|
||||
Copyright (C) 2019 TumeniNodes
|
||||
|
||||
You are free to:
|
||||
Share — copy and redistribute the material in any medium or format.
|
||||
|
@ -1,3 +1,4 @@
|
||||
name = xpanes
|
||||
description = Minetest Game mod: xpanes
|
||||
depends = default
|
||||
optional_depends = doors
|
||||
|
BIN
mods/xpanes/textures/xpanes_door_steel_bar.png
Normal file
BIN
mods/xpanes/textures/xpanes_door_steel_bar.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 605 B |
BIN
mods/xpanes/textures/xpanes_item_steel_bar.png
Normal file
BIN
mods/xpanes/textures/xpanes_item_steel_bar.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 354 B |
BIN
mods/xpanes/textures/xpanes_trapdoor_steel_bar.png
Normal file
BIN
mods/xpanes/textures/xpanes_trapdoor_steel_bar.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 261 B |
BIN
mods/xpanes/textures/xpanes_trapdoor_steel_bar_side.png
Normal file
BIN
mods/xpanes/textures/xpanes_trapdoor_steel_bar_side.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 98 B |
Loading…
Reference in New Issue
Block a user