minetest-mods/mydoors/my_misc_doors/unlocked.lua

75 lines
1.9 KiB
Lua
Raw Permalink Normal View History

2019-12-14 17:47:31 +01:00
local mdoor_list = { --Number , Description , Inven Image , Image
{"Misc Door 1" , "door1"},
{"Misc Door 2" , "door2"},
-- {"Misc Door 3" , "door3"},
-- {"Misc Door 4" , "door4"},
{"Misc Door 5" , "door5"},
}
for i in ipairs(mdoor_list) do
local desc = mdoor_list[i][1]
local img = mdoor_list[i][2]
doors.register_door("my_misc_doors:"..img, {
description = desc,
inventory_image = "mymdoors_"..img.."_inv.png",
groups = {choppy=2,cracky=2,door=1},
tiles = {{name="mymdoors_"..img..".png", backface_culling = true }},
protected = false,
})
end
-- Crafts
minetest.register_craft({
output = "my_misc_doors:door1 1",
recipe = {
{"my_door_wood:wood_white", "my_door_wood:wood_white", ""},
{"my_door_wood:wood_white", "my_door_wood:wood_white", ""},
{"my_door_wood:wood_white", "my_door_wood:wood_white", ""}
}
})
minetest.register_craft({
output = "my_misc_doors:door2 1",
recipe = {
{"my_door_wood:wood_grey", "my_door_wood:wood_grey", ""},
{"my_door_wood:wood_grey", "my_door_wood:wood_grey", ""},
{"my_door_wood:wood_grey", "my_door_wood:wood_grey", ""}
}
})
minetest.register_craft({
output = "my_misc_doors:door3 1",
recipe = {
{"default:stone", "default:stone", ""},
{"default:stone", "default:stone", ""},
{"default:stone", "default:stone", ""}
}
})
minetest.register_craft({
output = "my_misc_doors:door4 1",
recipe = {
{"default:cobble", "default:cobble", ""},
{"default:cobble", "default:cobble", ""},
{"default:cobble", "default:cobble", ""}
}
})
minetest.register_craft({
output = "my_misc_doors:door5 1",
recipe = {
{"my_door_wood:wood_white", "wool:red", ""},
{"my_door_wood:wood_white", "my_door_wood:wood_white", ""},
{"my_door_wood:wood_white", "wool:red", ""}
}
})
minetest.register_craft({
output = "my_misc_doors:door6 1",
recipe = {
{"default:steel_ingot", "default:iron_lump", ""},
{"default:steel_ingot", "default:iron_lump", ""},
{"default:steel_ingot", "default:iron_lump", ""}
}
})