added in secondary door/ trapdoor types. NYI.
This commit is contained in:
parent
12fc5b7be6
commit
46d9abde86
|
@ -32,7 +32,78 @@ local function tiki_lamp()
|
|||
end
|
||||
|
||||
|
||||
local function green_bamboo_doors()
|
||||
local BAMBOO_BLOCK = "mcl_bamboo:bamboo_block"
|
||||
if minetest.get_modpath("mcl_doors") and mcl_doors then
|
||||
minetest.register_craft({
|
||||
output = "mcl_bamboo:bamboo_door2 3",
|
||||
recipe = {
|
||||
{BAMBOO_BLOCK, BAMBOO_BLOCK},
|
||||
{BAMBOO_BLOCK, BAMBOO_BLOCK},
|
||||
{BAMBOO_BLOCK, BAMBOO_BLOCK}
|
||||
}
|
||||
})
|
||||
minetest.register_craft({
|
||||
output = "mcl_bamboo:bamboo_trapdoor2 2",
|
||||
recipe = {
|
||||
{BAMBOO_BLOCK, BAMBOO_BLOCK, BAMBOO_BLOCK},
|
||||
{BAMBOO_BLOCK, BAMBOO_BLOCK, BAMBOO_BLOCK},
|
||||
}
|
||||
})
|
||||
end
|
||||
|
||||
if minetest.get_modpath("mcl_doors") then
|
||||
if mcl_doors then
|
||||
local top_door_tiles = {}
|
||||
local bot_door_tiles = {}
|
||||
|
||||
if BROKEN_DOORS then
|
||||
top_door_tiles = {"mcl_bamboo_door_top_alt.png", "mcl_bamboo_door_top.png"}
|
||||
bot_door_tiles = {"mcl_bamboo_door_bottom_alt.png", "mcl_bamboo_door_bottom.png"}
|
||||
else
|
||||
top_door_tiles = {"mcl_bamboo_door_top.png", "mcl_bamboo_door_top.png"}
|
||||
bot_door_tiles = {"mcl_bamboo_door_bottom.png", "mcl_bamboo_door_bottom.png"}
|
||||
end
|
||||
|
||||
local name = "mcl_bamboo:bamboo_door2"
|
||||
local def = {
|
||||
description = S("Bamboo Door."),
|
||||
inventory_image = "mcl_bamboo_door_wield.png",
|
||||
wield_image = "mcl_bamboo_door_wield.png",
|
||||
groups = {handy = 1, axey = 1, material_wood = 1, flammable = -1},
|
||||
_mcl_hardness = 3,
|
||||
_mcl_blast_resistance = 3,
|
||||
tiles_bottom = bot_door_tiles,
|
||||
tiles_top = top_door_tiles,
|
||||
sounds = mcl_sounds.node_sound_wood_defaults(),
|
||||
}
|
||||
|
||||
mcl_doors:register_door(name, def)
|
||||
|
||||
name = "mcl_bamboo:bamboo_trapdoor2"
|
||||
local trap_def = {
|
||||
description = S("Bamboo Trapdoor."),
|
||||
inventory_image = "mcl_bamboo_door_complete.png",
|
||||
groups = {},
|
||||
tile_front = "mcl_bamboo_trapdoor_top.png",
|
||||
tile_side = "mcl_bamboo_trapdoor_side.png",
|
||||
_doc_items_longdesc = S("Wooden trapdoors are horizontal barriers which can be opened and closed by hand or a redstone signal. They occupy the upper or lower part of a block, depending on how they have been placed. When open, they can be climbed like a ladder."),
|
||||
_doc_items_usagehelp = S("To open or close the trapdoor, rightclick it or send a redstone signal to it."),
|
||||
wield_image = "mcl_bamboo_trapdoor_wield.png",
|
||||
inventory_image = "mcl_bamboo_trapdoor_wield.png",
|
||||
groups = {handy = 1, axey = 1, mesecon_effector_on = 1, material_wood = 1, flammable = -1},
|
||||
_mcl_hardness = 3,
|
||||
_mcl_blast_resistance = 3,
|
||||
sounds = mcl_sounds.node_sound_wood_defaults(),
|
||||
}
|
||||
|
||||
mcl_doors:register_trapdoor(name, trap_def)
|
||||
|
||||
minetest.register_alias("bamboo_door", "mcl_bamboo:bamboo_door")
|
||||
minetest.register_alias("bamboo_trapdoor", "mcl_bamboo:bamboo_trapdoor")
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
-- ------------------------------------
|
||||
|
|
Loading…
Reference in New Issue