29812fec87
https://github.com/minetest-mods/mydoors/tree/63aef13 https://github.com/AntumDeluge/mtmp-mydoors/tree/e36c9d1
55 lines
1.5 KiB
Lua
55 lines
1.5 KiB
Lua
local cdoor_list = { --Number , Description , Inven Image , Image
|
|
-- { "1", "Old Door 1" , "old1"},
|
|
-- { "2", "Old Door 2" , "old2"},
|
|
-- { "3", "Old Door 3" , "old3"},
|
|
-- { "4", "Old Door 4" , "old4"},
|
|
}
|
|
for i in ipairs(cdoor_list) do
|
|
local num = cdoor_list[i][1]
|
|
local desc = cdoor_list[i][2]
|
|
local img = cdoor_list[i][3]
|
|
|
|
doors.register_door("my_old_doors:door"..num, {
|
|
description = desc,
|
|
inventory_image = "mydoors_"..img.."_inv.png",
|
|
groups = {choppy=2,cracky=2,door=1},
|
|
tiles = {{ name = "mydoors_"..img..".png", backface_culling = true }},
|
|
protected = true,
|
|
})
|
|
end
|
|
|
|
-- Crafts
|
|
|
|
minetest.register_craft({
|
|
output = "my_old_doors:door1 1",
|
|
recipe = {
|
|
{"default:glass", "coloredwood:wood_yellow", ""},
|
|
{"coloredwood:wood_yellow", "coloredwood:wood_yellow", ""},
|
|
{"coloredwood:wood_yellow", "coloredwood:wood_yellow", ""}
|
|
}
|
|
})
|
|
minetest.register_craft({
|
|
output = "my_old_doors:door2 1",
|
|
recipe = {
|
|
{"default:glass", "coloredwood:wood_red", ""},
|
|
{"coloredwood:wood_red", "coloredwood:wood_red", ""},
|
|
{"coloredwood:wood_red", "coloredwood:wood_red", ""}
|
|
}
|
|
})
|
|
minetest.register_craft({
|
|
output = "my_old_doors:door3 1",
|
|
recipe = {
|
|
{"default:glass", "coloredwood:wood_gray", ""},
|
|
{"coloredwood:wood_gray", "coloredwood:wood_gray", ""},
|
|
{"coloredwood:wood_gray", "coloredwood:wood_gray", ""}
|
|
}
|
|
})
|
|
minetest.register_craft({
|
|
output = "my_old_doors:door4 1",
|
|
recipe = {
|
|
{"coloredwood:wood_red", "coloredwood:wood_red", ""},
|
|
{"coloredwood:wood_red", "dye:black", ""},
|
|
{"coloredwood:wood_red", "coloredwood:wood_red", ""}
|
|
}
|
|
})
|