123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119 |
- local hdoor_list = { --Number , Description , default image
- { "cobble" , "Hidden Cobble Door", "default_cobble"},
- { "stone" , "Hidden Stone Door", "default_stone"},
- { "wood", "Hidden Wood Door", "default_wood"},
- { "stone_brick", "Hidden Stone Brick Door", "default_stone_brick"},
- { "brick", "Hidden Brick Door", "default_brick"},
- { "desert_cobble", "Hidden Desert Cobble Door", "default_desert_cobble"},
- { "furnace", "Hidden Furnace Door" , "mydoors_furnace" , "door7"},
- { "chest", "Hidden Chest Door" , "mydoors_chest" , "door8"},
- { "bookshelf", "Hidden Bookshelf Door" , "mydoors_bookshelf" , "door9"},
- }
- for i in ipairs(hdoor_list) do
- local img = hdoor_list[i][1]
- local desc = hdoor_list[i][2]
- --local dimg = hdoor_list[i][3]
- doors.register_door("my_hidden_doors:hidden_door"..img, {
- description = desc.." Locked",
- inventory_image = "mydoors_"..img.."_inv.png",
- groups = {choppy=2,cracky=2,door=1},
- only_placer_can_open = false,
- tiles = {{ name = "mydoors_"..img..".png", backface_culling = true }},
- protected = false,
- })
- end
- doors.register_door("my_hidden_doors:hidden_door_grey", {
- description = "Grey Door Locked",
- inventory_image = "mydoors_grey_inv.png",
- groups = {choppy=2,cracky=2,door=1},
- tiles = {{ name = "mydoors_grey.png", backface_culling = true }},
- protected = false,
- })
- -- Crafts
- minetest.register_craft({
- output = "my_hidden_doors:hidden_doorcobble 1",
- recipe = {
- {"my_hidden_doors:hidden_door_grey", "default:cobble", ""},
- {"", "", ""},
- {"", "", ""}
- }
- })
- minetest.register_craft({
- output = "my_hidden_doors:hidden_doorstone 1",
- recipe = {
- {"my_hidden_doors:hidden_door_grey", "default:stone", ""},
- {"", "", ""},
- {"", "", ""}
- }
- })
- minetest.register_craft({
- output = "my_hidden_doors:hidden_doorwood 1",
- recipe = {
- {"my_hidden_doors:hidden_door_grey", "default:wood", ""},
- {"", "", ""},
- {"", "", ""}
- }
- })
- minetest.register_craft({
- output = "my_hidden_doors:hidden_doorstone_brick 1",
- recipe = {
- {"my_hidden_doors:hidden_door_grey", "default:stonebrick", ""},
- {"", "", ""},
- {"", "", ""}
- }
- })
- minetest.register_craft({
- output = "my_hidden_doors:hidden_doordesert_cobble 1",
- recipe = {
- {"my_hidden_doors:hidden_door_grey", "default:desert_cobble", ""},
- {"", "", ""},
- {"", "", ""}
- }
- })
- minetest.register_craft({
- output = "my_hidden_doors:hidden_doorfurnace 1",
- recipe = {
- {"my_hidden_doors:hidden_door_grey", "default:furnace", ""},
- {"", "", ""},
- {"", "", ""}
- }
- })
- minetest.register_craft({
- output = "my_hidden_doors:hidden_doorchest 1",
- recipe = {
- {"my_hidden_doors:hidden_door_grey", "default:chest", ""},
- {"", "", ""},
- {"", "", ""}
- }
- })
- minetest.register_craft({
- output = "my_hidden_doors:hidden_doorbookshelf 1",
- recipe = {
- {"my_hidden_doors:hidden_door_grey", "default:bookshelf", ""},
- {"", "", ""},
- {"", "", ""}
- }
- })
- minetest.register_craft({
- output = "my_hidden_doors:hidden_doorbrick 1",
- recipe = {
- {"my_hidden_doors:hidden_door_grey", "default:brick", ""},
- {"", "", ""},
- {"", "", ""}
- }
- })
- minetest.register_craft({
- output = "my_hidden_doors:hidden_door_grey 1",
- recipe = {
- {"my_door_wood:wood_dark_grey", "my_door_wood:wood_dark_grey", ""},
- {"my_door_wood:wood_dark_grey", "my_door_wood:wood_dark_grey", ""},
- {"my_door_wood:wood_dark_grey", "my_door_wood:wood_dark_grey", ""}
- }
- })
|