123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139 |
- local cdoor_list = { --Number , Description , Inven Image , Image
- -- {"Castle Door 1" , "door1"},
- -- {"Castle Door 2" , "door2"},
- {"Castle Door 3" , "door3"},
- {"Castle Door 4" , "door4"},
- {"Castle Door 5" , "door5"},
- -- {"Castle Door 6" , "door6"},
- -- {"Castle Door 7" , "door7"},
- -- {"Castle Door 8" , "door8"},
- {"Castle Door 9" , "door9"},
- {"Castle Door 10" , "door10"},
- {"Castle Door 11" , "door11"},
- {"Castle Door 12" , "door12"},
- {"Castle Door 13" , "door13"},
- }
- for i in ipairs(cdoor_list) do
- local desc = cdoor_list[i][1]
- local img = cdoor_list[i][2]
- doors.register_door("my_castle_doors:"..img, {
- description = desc,
- inventory_image = "mydoors_"..img.."_inv.png",
- groups = {choppy=2,cracky=2,door=1},
- tiles = {{name="mydoors_"..img..".png", backface_culling = true}},
- protected = false,
- })
- end
- -- Crafts
- minetest.register_craft({
- output = "my_castle_doors:door1 1",
- recipe = {
- {"default:steel_ingot", "default:glass", ""},
- {"my_door_wood:wood_dark_grey", "my_door_wood:wood_dark_grey", ""},
- {"my_door_wood:wood_dark_grey", "default:steel_ingot", ""}
- }
- })
- minetest.register_craft({
- output = "my_castle_doors:door2 1",
- recipe = {
- {"default:steel_ingot", "default:glass", ""},
- {"my_door_wood:wood_red", "my_door_wood:wood_red", ""},
- {"my_door_wood:wood_red", "default:steel_ingot", ""}
- }
- })
- minetest.register_craft({
- output = "my_castle_doors:door3 1",
- recipe = {
- {"my_door_wood:wood_yellow", "default:steel_ingot", ""},
- {"my_door_wood:wood_yellow", "my_door_wood:wood_yellow", ""},
- {"my_door_wood:wood_yellow", "my_door_wood:wood_yellow", ""}
- }
- })
- minetest.register_craft({
- output = "my_castle_doors:door4 1",
- recipe = {
- {"my_door_wood:wood_brown", "default:steel_ingot", ""},
- {"my_door_wood:wood_brown", "my_door_wood:wood_brown", ""},
- {"my_door_wood:wood_brown", "my_door_wood:wood_brown", ""}
- }
- })
- minetest.register_craft({
- output = "my_castle_doors:door5 1",
- recipe = {
- {"my_door_wood:wood_yellow", "default:steel_ingot", ""},
- {"my_door_wood:wood_white", "my_door_wood:wood_yellow", ""},
- {"my_door_wood:wood_yellow", "my_door_wood:wood_yellow", ""}
- }
- })
- minetest.register_craft({
- output = "my_castle_doors:door6 1",
- recipe = {
- {"my_door_wood:wood_grey", "my_door_wood:wood_grey", ""},
- {"my_door_wood:wood_grey", "default:steel_ingot", ""},
- {"my_door_wood:wood_grey", "my_door_wood:wood_grey", ""}
- }
- })
- minetest.register_craft({
- output = "my_castle_doors:door7 1",
- recipe = {
- {"my_door_wood:wood_red", "my_door_wood:wood_red", ""},
- {"my_door_wood:wood_red", "default:steel_ingot", ""},
- {"my_door_wood:wood_red", "my_door_wood:wood_red", ""}
- }
- })
- minetest.register_craft({
- output = "my_castle_doors:door8 1",
- recipe = {
- {"default:steel_ingot", "default:steel_ingot", ""},
- {"my_door_wood:wood_dark_grey", "my_door_wood:wood_dark_grey", ""},
- {"default:steel_ingot", "default:steel_ingot", ""}
- }
- })
- minetest.register_craft({
- output = "my_castle_doors:door9 1",
- recipe = {
- {"default:steel_ingot", "my_door_wood:wood_yellow", ""},
- {"my_door_wood:wood_yellow", "my_door_wood:wood_yellow", ""},
- {"my_door_wood:wood_yellow", "my_door_wood:wood_yellow", ""}
- }
- })
- minetest.register_craft({
- output = "my_castle_doors:door10 1",
- recipe = {
- {"my_door_wood:wood_red", "default:steel_ingot", ""},
- {"my_door_wood:wood_red", "my_door_wood:wood_red", ""},
- {"my_door_wood:wood_red", "my_door_wood:wood_red", ""}
- }
- })
- minetest.register_craft({
- output = "my_castle_doors:door11 1",
- recipe = {
- {"my_door_wood:wood_brown", "default:steel_ingot", ""},
- {"my_door_wood:wood_brown", "my_door_wood:wood_brown", ""},
- {"my_door_wood:wood_brown", "my_door_wood:wood_brown", ""}
- }
- })
- minetest.register_craft({
- output = "my_castle_doors:door12 1",
- recipe = {
- {"my_door_wood:wood_brown", "default:steel_ingot", ""},
- {"my_door_wood:wood_grey", "my_door_wood:wood_brown", ""},
- {"my_door_wood:wood_brown", "my_door_wood:wood_brown", ""}
- }
- })
- minetest.register_craft({
- output = "my_castle_doors:door13 1",
- recipe = {
- {"my_door_wood:wood_brown", "my_door_wood:wood_brown", "default:steel_ingot"},
- {"my_door_wood:wood_brown", "my_door_wood:wood_brown", ""},
- {"my_door_wood:wood_brown", "my_door_wood:wood_brown", "default:steel_ingot"}
- }
- })
|