hades_revisited/mods/hades_doors/register.lua

775 lines
24 KiB
Lua
Raw Permalink Normal View History

2022-04-25 17:53:49 -07:00
local S = minetest.get_translator("hades_doors")
2020-10-20 05:13:42 -07:00
2022-04-25 17:53:49 -07:00
hades_doors.register_door("hades_doors:door_wood", {
2021-07-01 13:55:46 -07:00
description = S("Temperate Wood Door"),
2022-04-25 17:53:49 -07:00
inventory_image = "hades_doors_wood.png",
2021-07-12 12:48:36 -07:00
groups = {choppy=3,oddly_breakable_by_hand=2,flammable=2,door=1},
2022-04-25 17:53:49 -07:00
tiles = {{name="hades_doors_door_wood.png", backface_culling=true}},
2021-10-08 08:45:52 -07:00
use_texture_alpha = "clip",
sounds = hades_sounds.node_sound_wood_defaults(),
2021-10-09 03:37:41 -07:00
sunlight_propagates = false,
})
minetest.register_craft({
2022-04-25 17:53:49 -07:00
output = "hades_doors:door_wood",
recipe = {
2020-03-27 10:33:20 -07:00
{"hades_trees:wood", "hades_trees:wood"},
{"hades_trees:wood", "hades_trees:wood"},
{"hades_trees:wood", "hades_trees:wood"}
}
})
2022-04-25 17:53:49 -07:00
hades_doors.register_door("hades_doors:door_wood_pale", {
2020-10-20 05:13:42 -07:00
description = S("Pale Wood Door"),
2022-04-25 17:53:49 -07:00
inventory_image = "hades_doors_wood_pale.png",
2021-07-12 12:48:36 -07:00
groups = {choppy=3,oddly_breakable_by_hand=2,flammable=2,door=1},
2022-04-25 17:53:49 -07:00
tiles = {{name="hades_doors_door_wood_pale.png", backface_culling=true}},
2021-10-08 08:45:52 -07:00
use_texture_alpha = "clip",
sounds = hades_sounds.node_sound_wood_defaults(),
2021-10-09 03:37:41 -07:00
sunlight_propagates = false,
})
minetest.register_craft({
2022-04-25 17:53:49 -07:00
output = "hades_doors:door_wood_pale",
recipe = {
2020-03-27 10:33:20 -07:00
{"hades_trees:pale_wood", "hades_trees:pale_wood"},
{"hades_trees:pale_wood", "hades_trees:pale_wood"},
{"hades_trees:pale_wood", "hades_trees:pale_wood"}
}
})
2018-01-04 11:36:55 -08:00
2022-04-25 17:53:49 -07:00
hades_doors.register_door("hades_doors:door_wood_jungle", {
2021-07-01 13:55:46 -07:00
description = S("Tropical Wood Door"),
2022-04-25 17:53:49 -07:00
inventory_image = "hades_doors_wood_jungle.png",
2021-07-12 12:48:36 -07:00
groups = {choppy=3,oddly_breakable_by_hand=2,flammable=2,door=1},
2022-04-25 17:53:49 -07:00
tiles = {{name="hades_doors_door_wood_jungle.png", backface_culling=true}},
2021-10-08 08:45:52 -07:00
use_texture_alpha = "clip",
sounds = hades_sounds.node_sound_wood_defaults(),
2021-10-09 03:37:41 -07:00
sunlight_propagates = false,
})
minetest.register_craft({
2022-04-25 17:53:49 -07:00
output = "hades_doors:door_wood_jungle",
recipe = {
2020-03-27 10:33:20 -07:00
{"hades_trees:jungle_wood", "hades_trees:jungle_wood"},
{"hades_trees:jungle_wood", "hades_trees:jungle_wood"},
{"hades_trees:jungle_wood", "hades_trees:jungle_wood"}
}
})
2022-04-25 17:53:49 -07:00
hades_doors.register_door("hades_doors:door_wood_cream", {
2021-07-01 12:55:40 -07:00
description = S("Cream Wood Door"),
2022-04-25 17:53:49 -07:00
inventory_image = "hades_doors_wood_cream.png",
2021-07-12 12:48:36 -07:00
groups = {choppy=3,oddly_breakable_by_hand=2,flammable=2,door=1},
2022-04-25 17:53:49 -07:00
tiles = {{name="hades_doors_door_wood_cream.png", backface_culling=true}},
2021-10-08 08:45:52 -07:00
use_texture_alpha = "clip",
2021-07-01 12:55:40 -07:00
sounds = hades_sounds.node_sound_wood_defaults(),
2021-10-09 03:37:41 -07:00
sunlight_propagates = false,
2021-07-01 12:55:40 -07:00
})
minetest.register_craft({
2022-04-25 17:53:49 -07:00
output = "hades_doors:door_wood_cream",
2021-07-01 12:55:40 -07:00
recipe = {
{"hades_trees:cream_wood", "hades_trees:cream_wood"},
{"hades_trees:cream_wood", "hades_trees:cream_wood"},
{"hades_trees:cream_wood", "hades_trees:cream_wood"}
}
})
2022-04-25 17:53:49 -07:00
hades_doors.register_door("hades_doors:door_wood_lush", {
2021-07-01 12:55:40 -07:00
description = S("Lush Wood Door"),
2022-04-25 17:53:49 -07:00
inventory_image = "hades_doors_wood_lush.png",
2021-07-12 12:48:36 -07:00
groups = {choppy=3,oddly_breakable_by_hand=2,flammable=2,door=1},
2022-04-25 17:53:49 -07:00
tiles = {{name="hades_doors_door_wood_lush.png", backface_culling=true}},
2021-10-08 08:45:52 -07:00
use_texture_alpha = "clip",
2021-07-01 12:55:40 -07:00
sounds = hades_sounds.node_sound_wood_defaults(),
2021-10-09 03:37:41 -07:00
sunlight_propagates = false,
2021-07-01 12:55:40 -07:00
})
minetest.register_craft({
2022-04-25 17:53:49 -07:00
output = "hades_doors:door_wood_lush",
2021-07-01 12:55:40 -07:00
recipe = {
{"hades_trees:lush_wood", "hades_trees:lush_wood"},
{"hades_trees:lush_wood", "hades_trees:lush_wood"},
{"hades_trees:lush_wood", "hades_trees:lush_wood"}
}
})
minetest.register_craft({
type = "shapeless",
2022-04-25 17:53:49 -07:00
output = "hades_doors:door_steel",
recipe = { "group:steel_door", "hades_trees:canvas_leaves" },
})
2022-04-25 17:53:49 -07:00
hades_doors.register_door("hades_doors:door_steel", {
2020-10-20 05:13:42 -07:00
description = S("Plain Steel Door"),
2022-04-25 17:53:49 -07:00
inventory_image = "hades_doors_steel.png",
2021-07-12 12:48:36 -07:00
groups = {cracky=2,door=1,steel_door=1},
2022-04-25 17:53:49 -07:00
tiles = {{name="hades_doors_door_steel.png", backface_culling=true}},
2021-10-08 08:45:52 -07:00
use_texture_alpha = "clip",
only_placer_can_open = true,
sounds = hades_sounds.node_sound_metal_defaults(),
sound_open = "doors_steel_door_open",
sound_close = "doors_steel_door_close",
2021-10-09 03:37:41 -07:00
sunlight_propagates = false,
})
minetest.register_craft({
2022-04-25 17:53:49 -07:00
output = "hades_doors:door_steel",
recipe = {
{"hades_core:steel_ingot", "hades_core:steel_ingot"},
{"hades_core:steel_ingot", "hades_core:steel_ingot"},
{"hades_core:steel_ingot", "hades_core:steel_ingot"}
}
})
-- colored Steeldoors
local colors = {
2022-04-25 18:23:22 -07:00
{ "black", S("Black Steel Door"), "hades_dye:black" },
{ "grey", S("Grey Steel Door"), "hades_dye:grey" },
{ "darkgrey", S("Dark Grey Steel Door"), "hades_dye:dark_grey" },
{ "white", S("White Steel Door"), "hades_dye:white" },
{ "magenta", S("Magenta Steel Door"), "hades_dye:magenta" },
{ "violet", S("Violet Steel Door"), "hades_dye:violet" },
{ "blue", S("Blue Steel Door"), "hades_dye:blue" },
{ "cyan", S("Cyan Steel Door"), "hades_dye:cyan" },
{ "green", S("Green Steel Door"), "hades_dye:green" },
{ "darkgreen", S("Dark Green Steel Door"), "hades_dye:dark_green" },
{ "pink", S("Pink Steel Door"), "hades_dye:pink" },
{ "red", S("Red Steel Door"), "hades_dye:red" },
{ "orange", S("Orange Steel Door"), "hades_dye:orange" },
{ "brown", S("Brown Steel Door"), "hades_dye:brown" },
{ "yellow", S("Yellow Steel Door"), "hades_dye:yellow" },
}
for c=1, #colors do
local id = colors[c][1]
local desc = colors[c][2]
2022-04-25 17:53:49 -07:00
hades_doors.register_door("hades_doors:door_steel_"..id, {
description = desc,
2022-04-25 17:53:49 -07:00
inventory_image = "hades_doors_steel_"..id..".png",
2021-07-12 12:48:36 -07:00
groups = {cracky=2,door=1,steel_door=1},
2022-04-25 17:53:49 -07:00
tiles = {{name="hades_doors_door_steel_"..id..".png", backface_culling=true}},
2021-10-08 08:45:52 -07:00
use_texture_alpha = "clip",
only_placer_can_open = true,
sounds = hades_sounds.node_sound_metal_defaults(),
sound_open = "doors_steel_door_open",
sound_close = "doors_steel_door_close",
2021-10-09 03:37:41 -07:00
sunlight_propagates = false,
})
minetest.register_craft({
2020-03-28 19:56:39 -07:00
type = "shapeless",
2022-04-25 17:53:49 -07:00
output = "hades_doors:door_steel_"..id,
2020-11-04 15:08:43 -08:00
recipe = { "group:steel_door", colors[c][3] },
})
end
2022-04-25 17:53:49 -07:00
hades_doors.register_door("hades_doors:door_dungeon1", {
tiles = {{ name = "hades_doors_door_dungeon1.png", backface_culling = true}},
2021-10-08 11:27:33 -07:00
description = S("Dungeon Interior Door"),
2022-04-25 17:53:49 -07:00
inventory_image = "hades_doors_item_dungeon1.png",
2021-10-08 11:27:33 -07:00
only_placer_can_open = true,
groups = { cracky = 2, door = 1 },
sounds = hades_sounds.node_sound_metal_defaults(),
sound_open = "doors_steel_door_open",
sound_close = "doors_steel_door_close",
})
minetest.register_craft({
2022-04-25 17:53:49 -07:00
output = "hades_doors:door_dungeon1",
2021-10-08 11:27:33 -07:00
recipe = {
2021-10-09 06:38:52 -07:00
{ "hades_core:steel_ingot", "hades_core:steel_rod", "hades_core:steel_ingot" },
{ "hades_core:steel_rod", "hades_core:steel_rod", "hades_core:steel_rod" },
{ "hades_core:steel_ingot", "hades_core:steel_rod", "hades_core:steel_ingot" },
2021-10-08 11:27:33 -07:00
},
})
2022-04-25 17:53:49 -07:00
hades_doors.register_door("hades_doors:door_dungeon2", {
tiles = {{ name = "hades_doors_door_dungeon2.png", backface_culling = true}},
2021-10-09 06:38:52 -07:00
use_texture_alpha = "clip",
2021-10-08 11:27:33 -07:00
description = S("Dungeon Exterior Door"),
2022-04-25 17:53:49 -07:00
inventory_image = "hades_doors_item_dungeon2.png",
2021-10-08 11:27:33 -07:00
only_placer_can_open = true,
groups = { cracky = 2, door = 1 },
sounds = hades_sounds.node_sound_metal_defaults(),
sound_open = "doors_steel_door_open",
sound_close = "doors_steel_door_close",
sunlight = true,
})
minetest.register_craft({
2022-04-25 17:53:49 -07:00
output = "hades_doors:door_dungeon2",
2021-10-08 11:27:33 -07:00
recipe = {
2021-10-09 06:38:52 -07:00
{ "hades_core:steel_rod", "hades_core:steel_rod", "hades_core:steel_rod" },
2021-10-08 11:27:33 -07:00
{ "hades_core:steel_ingot", "hades_core:steel_ingot", "hades_core:steel_ingot" },
{ "hades_core:steel_ingot", "hades_core:steel_ingot", "hades_core:steel_ingot" },
},
})
2022-04-25 17:53:49 -07:00
hades_doors.register_door("hades_doors:door_rusty", {
tiles = {{ name = "hades_doors_door_rusty.png", backface_culling = true}},
description = S("Rusty Door"),
2022-04-25 17:53:49 -07:00
inventory_image = "hades_doors_item_rusty.png",
only_placer_can_open = true,
groups = { cracky = 2, door = 1 },
sounds = hades_sounds.node_sound_metal_defaults(),
sound_open = "doors_steel_door_open",
sound_close = "doors_steel_door_close",
})
minetest.register_craft({
2022-04-25 17:53:49 -07:00
output = "hades_doors:door_rusty",
recipe = {
{ "hades_core:iron_lump", "hades_core:iron_lump" },
{ "hades_core:iron_lump", "hades_core:iron_lump" },
{ "hades_core:iron_lump", "hades_core:iron_lump" },
},
})
2022-04-25 17:53:49 -07:00
hades_doors.register_door("hades_doors:door_steel_bar", {
tiles = {{ name = "hades_doors_door_steel_bar.png", backface_culling = true}},
2021-10-12 06:35:32 -07:00
use_texture_alpha = "clip",
description = S("Steel Bar Door"),
2022-04-25 17:53:49 -07:00
inventory_image = "hades_doors_item_steel_bar.png",
2021-10-12 06:35:32 -07:00
groups = { cracky = 3, door = 1 },
sounds = hades_sounds.node_sound_metal_defaults(),
sound_open = "doors_door_steel_bar_open",
sound_close = "doors_door_steel_bar_close",
})
minetest.register_craft({
2022-04-25 17:53:49 -07:00
output = "hades_doors:door_steel_bar",
2021-10-12 06:35:32 -07:00
recipe = {
{ "hades_core:steel_rod", "hades_core:steel_rod" },
{ "hades_core:steel_rod", "hades_core:steel_rod" },
{ "hades_core:steel_rod", "hades_core:steel_rod" },
},
})
2022-04-25 17:53:49 -07:00
hades_doors.register_door("hades_doors:door_rusty_bar", {
tiles = {{ name = "hades_doors_door_rusty_bar.png", backface_culling = true}},
2021-10-12 06:35:32 -07:00
use_texture_alpha = "clip",
description = S("Rusty Bar Door"),
2022-04-25 17:53:49 -07:00
inventory_image = "hades_doors_item_rusty_bar.png",
2021-10-12 06:35:32 -07:00
groups = { cracky = 3, door = 1 },
sounds = hades_sounds.node_sound_metal_defaults(),
sound_open = "doors_door_steel_bar_open",
sound_close = "doors_door_steel_bar_close",
})
minetest.register_craft({
2022-04-25 17:53:49 -07:00
output = "hades_doors:door_rusty_bar",
2021-10-12 06:35:32 -07:00
recipe = {
{ "hades_core:steel_rod", "hades_core:steel_rod" },
{ "hades_core:iron_lump", "hades_core:iron_lump" },
{ "hades_core:steel_rod", "hades_core:steel_rod" },
},
})
-- stone
2022-04-25 17:53:49 -07:00
hades_doors.register_door("hades_doors:door_stone", {
2020-10-20 05:13:42 -07:00
description = S("Stone Door"),
2022-04-25 17:53:49 -07:00
inventory_image = "hades_doors_stone.png",
2021-07-12 12:48:36 -07:00
groups = {cracky=3,door=1},
2022-04-25 17:53:49 -07:00
tiles = {{name="hades_doors_door_stone.png", backface_culling=true}},
only_placer_can_open = true,
sounds = hades_sounds.node_sound_stone_defaults(),
2017-12-18 14:49:51 -08:00
sound_open = "mcl_fences_nether_brick_fence_gate_open",
sound_close = "mcl_fences_nether_brick_fence_gate_close",
2021-10-09 05:52:23 -07:00
sound_locked = "doors_door_locked_stone",
sound_held_open = "doors_door_held_open_stone",
2021-10-09 03:37:41 -07:00
sunlight_propagates = false,
})
minetest.register_craft({
2022-04-25 17:53:49 -07:00
output = "hades_doors:door_stone",
recipe = {
{"hades_core:stone", "hades_core:stone"},
{"hades_core:stone", "hades_core:stone"},
{"hades_core:stone", "hades_core:stone"}
}
})
-- chondrite
2022-04-25 17:53:49 -07:00
hades_doors.register_door("hades_doors:door_chondrite", {
description = S("Chondrite Door"),
2022-04-25 17:53:49 -07:00
inventory_image = "hades_doors_item_chondrite.png",
groups = {cracky=3,door=1},
2022-04-25 17:53:49 -07:00
tiles = {{name="hades_doors_door_chondrite.png", backface_culling=true}},
only_placer_can_open = true,
sounds = hades_sounds.node_sound_stone_defaults(),
sound_open = "mcl_fences_nether_brick_fence_gate_open",
sound_close = "mcl_fences_nether_brick_fence_gate_close",
2021-10-09 06:38:52 -07:00
sound_locked = "doors_door_locked_stone",
sound_held_open = "doors_door_held_open_stone",
sunlight = false,
})
minetest.register_craft({
2022-04-25 17:53:49 -07:00
output = "hades_doors:door_chondrite",
recipe = {
{"hades_core:chondrite", "hades_core:chondrite"},
{"hades_core:chondrite", "hades_core:chondrite"},
{"hades_core:chondrite", "hades_core:chondrite"},
}
})
-- essexite
2022-04-25 17:53:49 -07:00
hades_doors.register_door("hades_doors:door_essexite", {
description = S("Essexite Door"),
2022-04-25 17:53:49 -07:00
inventory_image = "hades_doors_item_essexite.png",
groups = {cracky=3,door=1},
2022-04-25 17:53:49 -07:00
tiles = {{name="hades_doors_door_essexite.png", backface_culling=true}},
only_placer_can_open = true,
sounds = hades_sounds.node_sound_stone_defaults(),
sound_open = "mcl_fences_nether_brick_fence_gate_open",
sound_close = "mcl_fences_nether_brick_fence_gate_close",
2021-10-09 06:38:52 -07:00
sound_locked = "doors_door_locked_stone",
sound_held_open = "doors_door_held_open_stone",
sunlight = false,
})
minetest.register_craft({
2022-04-25 17:53:49 -07:00
output = "hades_doors:door_essexite",
recipe = {
{"hades_core:essexite", "hades_core:essexite"},
{"hades_core:essexite", "hades_core:essexite"},
{"hades_core:essexite", "hades_core:essexite"},
}
})
-- marble
2022-04-25 17:53:49 -07:00
hades_doors.register_door("hades_doors:door_marble", {
description = S("Marble Door"),
2022-04-25 17:53:49 -07:00
inventory_image = "hades_doors_item_marble.png",
groups = {cracky=3,door=1},
2022-04-25 17:53:49 -07:00
tiles = {{name="hades_doors_door_marble.png", backface_culling=true}},
only_placer_can_open = true,
sounds = hades_sounds.node_sound_stone_defaults(),
sound_open = "mcl_fences_nether_brick_fence_gate_open",
sound_close = "mcl_fences_nether_brick_fence_gate_close",
2021-10-09 06:38:52 -07:00
sound_locked = "doors_door_locked_stone",
sound_held_open = "doors_door_held_open_stone",
sunlight = false,
})
minetest.register_craft({
2022-04-25 17:53:49 -07:00
output = "hades_doors:door_marble",
recipe = {
{"hades_core:marble", "hades_core:marble"},
{"hades_core:marble", "hades_core:marble"},
{"hades_core:marble", "hades_core:marble"},
}
})
-- sandstone
2022-04-25 17:53:49 -07:00
hades_doors.register_door("hades_doors:door_sandstone", {
description = S("Fine Sandstone Door"),
2022-04-25 17:53:49 -07:00
inventory_image = "hades_doors_item_sandstone.png",
groups = {cracky=3,door=1},
2022-04-25 17:53:49 -07:00
tiles = {{name="hades_doors_door_sandstone.png", backface_culling=true}},
only_placer_can_open = true,
sounds = hades_sounds.node_sound_stone_defaults(),
sound_open = "mcl_fences_nether_brick_fence_gate_open",
sound_close = "mcl_fences_nether_brick_fence_gate_close",
2021-10-09 06:38:52 -07:00
sound_locked = "doors_door_locked_stone",
sound_held_open = "doors_door_held_open_stone",
sunlight = false,
})
minetest.register_craft({
2022-04-25 17:53:49 -07:00
output = "hades_doors:door_sandstone",
recipe = {
{"hades_core:sandstone", "hades_core:sandstone"},
{"hades_core:sandstone", "hades_core:sandstone"},
{"hades_core:sandstone", "hades_core:sandstone"}
}
})
-- volcanic sandstone
2022-04-25 17:53:49 -07:00
hades_doors.register_door("hades_doors:door_sandstone_volcanic", {
description = S("Volcanic Sandstone Door"),
2022-04-25 17:53:49 -07:00
inventory_image = "hades_doors_item_sandstone_volcanic.png",
groups = {cracky=3,door=1},
2022-04-25 17:53:49 -07:00
tiles = {{name="hades_doors_door_sandstone_volcanic.png", backface_culling=true}},
only_placer_can_open = true,
sounds = hades_sounds.node_sound_stone_defaults(),
sound_open = "mcl_fences_nether_brick_fence_gate_open",
sound_close = "mcl_fences_nether_brick_fence_gate_close",
2021-10-09 06:38:52 -07:00
sound_locked = "doors_door_locked_stone",
sound_held_open = "doors_door_held_open_stone",
sunlight = false,
})
minetest.register_craft({
2022-04-25 17:53:49 -07:00
output = "hades_doors:door_sandstone_volcanic",
recipe = {
{"hades_core:sandstone_volcanic", "hades_core:sandstone_volcanic"},
{"hades_core:sandstone_volcanic", "hades_core:sandstone_volcanic"},
{"hades_core:sandstone_volcanic", "hades_core:sandstone_volcanic"},
}
})
--glass
2022-04-25 17:53:49 -07:00
hades_doors.register_door("hades_doors:door_glass", {
2020-10-20 05:13:42 -07:00
description = S("Glass Door"),
2022-04-25 17:53:49 -07:00
inventory_image = "hades_doors_glass.png",
2021-07-12 12:48:36 -07:00
groups = {cracky=3,oddly_breakable_by_hand=3,door=1},
2022-04-25 17:53:49 -07:00
tiles = {"hades_doors_door_glass.png"},
2021-10-08 08:45:52 -07:00
use_texture_alpha = "clip",
sounds = hades_sounds.node_sound_glass_defaults(),
sound_open = "doors_glass_door_open",
sound_close = "doors_glass_door_close",
2021-10-09 03:37:41 -07:00
sunlight_propagates = true,
})
minetest.register_craft({
2022-04-25 17:53:49 -07:00
output = "hades_doors:door_glass",
recipe = {
{"hades_core:glass", "hades_core:glass"},
{"hades_core:glass", "hades_core:glass"},
{"hades_core:glass", "hades_core:glass"}
}
})
2022-04-25 17:53:49 -07:00
hades_doors.register_door("hades_doors:door_obsidian_glass", {
2020-10-20 05:13:42 -07:00
description = S("Obsidian Glass Door"),
2022-04-25 17:53:49 -07:00
inventory_image = "hades_doors_obsidian_glass.png",
2021-07-12 12:48:36 -07:00
groups = {cracky=3,door=1},
2022-04-25 17:53:49 -07:00
tiles = {"hades_doors_door_obsidian_glass.png"},
2021-10-08 08:45:52 -07:00
use_texture_alpha = "clip",
sound_open = "doors_open_glass",
sounds = hades_sounds.node_sound_glass_defaults(),
sound_open = "doors_glass_door_open",
sound_close = "doors_glass_door_close",
2021-10-09 03:37:41 -07:00
sunlight_propagates = true,
})
minetest.register_craft({
2022-04-25 17:53:49 -07:00
output = "hades_doors:door_obsidian_glass",
recipe = {
{"hades_core:obsidian_glass", "hades_core:obsidian_glass"},
{"hades_core:obsidian_glass", "hades_core:obsidian_glass"},
{"hades_core:obsidian_glass", "hades_core:obsidian_glass"}
}
})
2022-04-25 17:53:49 -07:00
hades_doors.register_trapdoor("hades_doors:trapdoor", {
2021-07-01 13:55:46 -07:00
description = S("Temperate Wood Trapdoor"),
2022-04-25 17:53:49 -07:00
inventory_image = "hades_doors_trapdoor.png",
wield_image = "hades_doors_trapdoor.png",
tile_front = "hades_doors_trapdoor.png",
tile_side = "hades_doors_trapdoor_side.png",
2021-10-08 08:45:52 -07:00
use_texture_alpha = "clip",
2021-07-12 12:48:36 -07:00
groups = {choppy=3, oddly_breakable_by_hand=2, flammable=2, door=1},
sounds = hades_sounds.node_sound_wood_defaults(),
sound_open = "doors_door_open",
sound_close = "doors_door_close"
})
minetest.register_craft({
2022-04-25 17:53:49 -07:00
output = 'hades_doors:trapdoor 2',
recipe = {
2020-03-27 10:33:20 -07:00
{'hades_trees:wood', 'hades_trees:wood', 'hades_trees:wood'},
{'hades_trees:wood', 'hades_trees:wood', 'hades_trees:wood'},
}
})
2022-04-25 17:53:49 -07:00
hades_doors.register_trapdoor("hades_doors:trapdoor_jungle", {
2021-07-01 13:55:46 -07:00
description = S("Tropical Wood Trapdoor"),
2022-04-25 17:53:49 -07:00
inventory_image = "hades_doors_trapdoor_jungle.png",
wield_image = "hades_doors_trapdoor_jungle.png",
tile_front = "hades_doors_trapdoor_jungle.png",
tile_side = "hades_doors_trapdoor_jungle_side.png",
2021-10-08 08:45:52 -07:00
use_texture_alpha = "clip",
2021-07-12 12:48:36 -07:00
groups = {choppy=3, oddly_breakable_by_hand=2, flammable=2, door=1},
sounds = hades_sounds.node_sound_wood_defaults(),
2017-12-18 15:13:45 -08:00
sound_open = "doors_door_open",
sound_close = "doors_door_close"
})
minetest.register_craft({
2022-04-25 17:53:49 -07:00
output = 'hades_doors:trapdoor_jungle 2',
2017-12-18 15:13:45 -08:00
recipe = {
2020-03-27 10:33:20 -07:00
{'hades_trees:jungle_wood', 'hades_trees:jungle_wood', 'hades_trees:jungle_wood'},
{'hades_trees:jungle_wood', 'hades_trees:jungle_wood', 'hades_trees:jungle_wood'},
2017-12-18 15:13:45 -08:00
}
})
2022-04-25 17:53:49 -07:00
hades_doors.register_trapdoor("hades_doors:trapdoor_pale", {
2020-10-20 05:13:42 -07:00
description = S("Pale Wood Trapdoor"),
2022-04-25 17:53:49 -07:00
inventory_image = "hades_doors_trapdoor_pale.png",
wield_image = "hades_doors_trapdoor_pale.png",
tile_front = "hades_doors_trapdoor_pale.png",
tile_side = "hades_doors_trapdoor_pale_side.png",
2021-10-08 08:45:52 -07:00
use_texture_alpha = "clip",
2021-07-12 12:48:36 -07:00
groups = {choppy=3, oddly_breakable_by_hand=2, flammable=2, door=1},
sounds = hades_sounds.node_sound_wood_defaults(),
2017-12-18 15:13:45 -08:00
sound_open = "doors_door_open",
sound_close = "doors_door_close"
})
minetest.register_craft({
2022-04-25 17:53:49 -07:00
output = 'hades_doors:trapdoor_pale 2',
2017-12-18 15:13:45 -08:00
recipe = {
2020-03-27 10:33:20 -07:00
{'hades_trees:pale_wood', 'hades_trees:pale_wood', 'hades_trees:pale_wood'},
{'hades_trees:pale_wood', 'hades_trees:pale_wood', 'hades_trees:pale_wood'},
2017-12-18 15:13:45 -08:00
}
})
2022-04-25 17:53:49 -07:00
hades_doors.register_trapdoor("hades_doors:trapdoor_cream", {
2021-07-01 12:55:40 -07:00
description = S("Cream Wood Trapdoor"),
2022-04-25 17:53:49 -07:00
inventory_image = "hades_doors_trapdoor_cream.png",
wield_image = "hades_doors_trapdoor_cream.png",
tile_front = "hades_doors_trapdoor_cream.png",
tile_side = "hades_doors_trapdoor_cream_side.png",
2021-10-08 08:45:52 -07:00
use_texture_alpha = "clip",
2021-07-12 12:48:36 -07:00
groups = {choppy=3, oddly_breakable_by_hand=2, flammable=2, door=1},
2021-07-01 12:55:40 -07:00
sounds = hades_sounds.node_sound_wood_defaults(),
sound_open = "doors_door_open",
sound_close = "doors_door_close"
})
minetest.register_craft({
2022-04-25 17:53:49 -07:00
output = 'hades_doors:trapdoor_cream 2',
2021-07-01 12:55:40 -07:00
recipe = {
{'hades_trees:cream_wood', 'hades_trees:cream_wood', 'hades_trees:cream_wood'},
{'hades_trees:cream_wood', 'hades_trees:cream_wood', 'hades_trees:cream_wood'},
}
})
2022-04-25 17:53:49 -07:00
hades_doors.register_trapdoor("hades_doors:trapdoor_lush", {
2021-07-01 12:55:40 -07:00
description = S("Lush Wood Trapdoor"),
2022-04-25 17:53:49 -07:00
inventory_image = "hades_doors_trapdoor_lush.png",
wield_image = "hades_doors_trapdoor_lush.png",
tile_front = "hades_doors_trapdoor_lush.png",
tile_side = "hades_doors_trapdoor_lush_side.png",
2021-10-08 08:45:52 -07:00
use_texture_alpha = "clip",
2021-07-12 12:48:36 -07:00
groups = {choppy=3, oddly_breakable_by_hand=2, flammable=2, door=1},
2021-07-01 12:55:40 -07:00
sounds = hades_sounds.node_sound_wood_defaults(),
sound_open = "doors_door_open",
sound_close = "doors_door_close"
})
minetest.register_craft({
2022-04-25 17:53:49 -07:00
output = 'hades_doors:trapdoor_lush 2',
2021-07-01 12:55:40 -07:00
recipe = {
{'hades_trees:lush_wood', 'hades_trees:lush_wood', 'hades_trees:lush_wood'},
{'hades_trees:lush_wood', 'hades_trees:lush_wood', 'hades_trees:lush_wood'},
}
})
2022-04-25 17:53:49 -07:00
hades_doors.register_trapdoor("hades_doors:trapdoor_steel", {
2020-10-20 05:13:42 -07:00
description = S("Steel Trapdoor"),
2022-04-25 17:53:49 -07:00
inventory_image = "hades_doors_trapdoor_steel.png",
wield_image = "hades_doors_trapdoor_steel.png",
tile_front = "hades_doors_trapdoor_steel.png",
tile_side = "hades_doors_trapdoor_steel_side.png",
2021-10-08 08:45:52 -07:00
use_texture_alpha = "clip",
sounds = hades_sounds.node_sound_metal_defaults(),
sound_open = "doors_steel_door_open",
sound_close = "doors_steel_door_close",
groups = {cracky = 2, door = 1},
})
minetest.register_craft({
2022-04-25 17:53:49 -07:00
output = 'hades_doors:trapdoor_steel',
recipe = {
{'hades_core:steel_ingot', 'hades_core:steel_ingot'},
{'hades_core:steel_ingot', 'hades_core:steel_ingot'},
}
})
2022-04-25 17:53:49 -07:00
hades_doors.register_trapdoor("hades_doors:trapdoor_steel_bar", {
2021-10-12 06:35:32 -07:00
description = S("Steel Bar Trapdoor"),
2022-04-25 17:53:49 -07:00
inventory_image = "hades_doors_trapdoor_steel_bar.png",
wield_image = "hades_doors_trapdoor_steel_bar.png",
tile_front = "hades_doors_trapdoor_steel_bar.png",
tile_side = "hades_doors_trapdoor_steel_bar_side.png",
2021-10-12 06:35:32 -07:00
use_texture_alpha = "clip",
sounds = hades_sounds.node_sound_metal_defaults(),
sound_open = "doors_door_steel_bar_open",
sound_close = "doors_door_steel_bar_close",
groups = {cracky = 3, door = 1},
})
minetest.register_craft({
2022-04-25 17:53:49 -07:00
output = 'hades_doors:trapdoor_steel_bar',
2021-10-12 06:35:32 -07:00
recipe = {
{'hades_core:steel_rod', 'hades_core:steel_rod', 'hades_core:steel_rod'},
{'hades_core:steel_rod', 'hades_core:steel_rod', 'hades_core:steel_rod'},
}
})
2022-04-25 17:53:49 -07:00
hades_doors.register_trapdoor("hades_doors:trapdoor_rusty_bar", {
2021-10-12 06:35:32 -07:00
description = S("Rusty Bar Trapdoor"),
2022-04-25 17:53:49 -07:00
inventory_image = "hades_doors_trapdoor_rusty_bar.png",
wield_image = "hades_doors_trapdoor_rusty_bar.png",
tile_front = "hades_doors_trapdoor_rusty_bar.png",
tile_side = "hades_doors_trapdoor_rusty_bar_side.png",
2021-10-12 06:35:32 -07:00
use_texture_alpha = "clip",
sounds = hades_sounds.node_sound_metal_defaults(),
sound_open = "doors_door_steel_bar_open",
sound_close = "doors_door_steel_bar_close",
groups = {cracky = 3, door = 1},
})
minetest.register_craft({
2022-04-25 17:53:49 -07:00
output = 'hades_doors:trapdoor_rusty_bar',
2021-10-12 06:35:32 -07:00
recipe = {
{'hades_core:steel_rod', 'hades_core:iron_lump', 'hades_core:steel_rod'},
{'hades_core:steel_rod', 'hades_core:iron_lump', 'hades_core:steel_rod'},
}
})
2022-04-25 17:53:49 -07:00
hades_doors.register_fencegate("hades_doors:gate_wood", {
2021-07-01 13:55:46 -07:00
description = S("Temperate Wood Fence Gate"),
texture = "default_wood.png",
2020-03-27 10:33:20 -07:00
material = "hades_trees:wood",
groups = {choppy = 3, oddly_breakable_by_hand = 2, flammable = 2}
})
2022-04-25 17:53:49 -07:00
hades_doors.register_fencegate("hades_doors:gate_jungle_wood", {
2021-07-01 13:55:46 -07:00
description = S("Tropical Wood Fence Gate"),
texture = "default_junglewood.png",
2020-03-27 10:33:20 -07:00
material = "hades_trees:jungle_wood",
groups = {choppy = 3, oddly_breakable_by_hand = 2, flammable = 2}
})
2022-04-25 17:53:49 -07:00
hades_doors.register_fencegate("hades_doors:gate_pale_wood", {
2020-10-20 05:13:42 -07:00
description = S("Pale Wood Fence Gate"),
2020-03-27 10:33:20 -07:00
texture = "hades_trees_pale_wood.png",
material = "hades_trees:pale_wood",
groups = {choppy = 3, oddly_breakable_by_hand = 2, flammable = 3}
})
2022-04-25 17:53:49 -07:00
hades_doors.register_fencegate("hades_doors:gate_cream_wood", {
2021-07-01 12:55:40 -07:00
description = S("Cream Wood Fence Gate"),
texture = "hades_trees_cream_wood.png",
material = "hades_trees:cream_wood",
groups = {choppy = 3, oddly_breakable_by_hand = 2, flammable = 3}
})
2022-04-25 17:53:49 -07:00
hades_doors.register_fencegate("hades_doors:gate_lush_wood", {
2021-07-01 12:55:40 -07:00
description = S("Lush Wood Fence Gate"),
texture = "hades_trees_lush_wood.png",
material = "hades_trees:lush_wood",
groups = {choppy = 3, oddly_breakable_by_hand = 2, flammable = 3}
})
minetest.register_craft({
type = "cooking",
output = "hades_core:steel_ingot 6",
recipe = "group:steel_door",
cooktime = 18,
})
2021-10-12 06:35:32 -07:00
minetest.register_craft({
type = "cooking",
output = "hades_core:steel_ingot",
2022-04-25 17:53:49 -07:00
recipe = "hades_doors:door_steel_bar",
2021-10-12 06:35:32 -07:00
cooktime = 9,
})
minetest.register_craft({
type = "cooking",
output = "hades_core:steel_ingot 4",
2022-04-25 17:53:49 -07:00
recipe = "hades_doors:trapdoor_steel",
cooktime = 12,
})
2021-10-12 06:35:32 -07:00
minetest.register_craft({
type = "cooking",
output = "hades_core:steel_ingot",
2022-04-25 17:53:49 -07:00
recipe = "hades_doors:trapdoor_steel_bar",
2021-10-12 06:35:32 -07:00
cooktime = 6,
})
2021-07-01 12:55:40 -07:00
minetest.register_craft({
type = "fuel",
2022-04-25 17:53:49 -07:00
recipe = "hades_doors:trapdoor",
burntime = 7,
})
2017-12-18 15:13:45 -08:00
minetest.register_craft({
type = "fuel",
2022-04-25 17:53:49 -07:00
recipe = "hades_doors:trapdoor_jungle",
2017-12-18 15:13:45 -08:00
burntime = 7,
})
minetest.register_craft({
type = "fuel",
2022-04-25 17:53:49 -07:00
recipe = "hades_doors:trapdoor_pale",
2017-12-18 15:13:45 -08:00
burntime = 7,
})
2021-07-01 12:55:40 -07:00
minetest.register_craft({
type = "fuel",
2022-04-25 17:53:49 -07:00
recipe = "hades_doors:trapdoor_cream",
2021-07-01 12:55:40 -07:00
burntime = 7,
})
minetest.register_craft({
type = "fuel",
2022-04-25 17:53:49 -07:00
recipe = "hades_doors:trapdoor_lush",
2021-07-01 12:55:40 -07:00
burntime = 7,
})
minetest.register_craft({
type = "fuel",
2022-04-25 17:53:49 -07:00
recipe = "hades_doors:door_wood",
burntime = 14,
})
minetest.register_craft({
type = "fuel",
2022-04-25 17:53:49 -07:00
recipe = "hades_doors:door_wood_jungle",
burntime = 14,
})
minetest.register_craft({
type = "fuel",
2022-04-25 17:53:49 -07:00
recipe = "hades_doors:door_wood_pale",
burntime = 14,
})
2021-07-01 12:55:40 -07:00
minetest.register_craft({
type = "fuel",
2022-04-25 17:53:49 -07:00
recipe = "hades_doors:door_wood_cream",
2021-07-01 12:55:40 -07:00
burntime = 14,
})
minetest.register_craft({
type = "fuel",
2022-04-25 17:53:49 -07:00
recipe = "hades_doors:door_wood_lush",
2021-07-01 12:55:40 -07:00
burntime = 14,
})
minetest.register_craft({
type = "fuel",
2022-04-25 17:53:49 -07:00
recipe = "hades_doors:gate_wood_closed",
burntime = 7,
})
minetest.register_craft({
type = "fuel",
2022-04-25 17:53:49 -07:00
recipe = "hades_doors:gate_jungle_wood_closed",
burntime = 7,
})
minetest.register_craft({
type = "fuel",
2022-04-25 17:53:49 -07:00
recipe = "hades_doors:gate_pale_wood_closed",
burntime = 7,
})
2021-07-01 12:55:40 -07:00
minetest.register_craft({
type = "fuel",
2022-04-25 17:53:49 -07:00
recipe = "hades_doors:gate_cream_wood_closed",
2021-07-01 12:55:40 -07:00
burntime = 7,
})
minetest.register_craft({
type = "fuel",
2022-04-25 17:53:49 -07:00
recipe = "hades_doors:gate_lush_wood_closed",
2021-07-01 12:55:40 -07:00
burntime = 7,
})