unlocked.lua 4.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139
  1. local cdoor_list = { --Number , Description , Inven Image , Image
  2. -- {"Castle Door 1" , "door1"},
  3. -- {"Castle Door 2" , "door2"},
  4. {"Castle Door 3" , "door3"},
  5. {"Castle Door 4" , "door4"},
  6. {"Castle Door 5" , "door5"},
  7. -- {"Castle Door 6" , "door6"},
  8. -- {"Castle Door 7" , "door7"},
  9. -- {"Castle Door 8" , "door8"},
  10. {"Castle Door 9" , "door9"},
  11. {"Castle Door 10" , "door10"},
  12. {"Castle Door 11" , "door11"},
  13. {"Castle Door 12" , "door12"},
  14. {"Castle Door 13" , "door13"},
  15. }
  16. for i in ipairs(cdoor_list) do
  17. local desc = cdoor_list[i][1]
  18. local img = cdoor_list[i][2]
  19. doors.register_door("my_castle_doors:"..img, {
  20. description = desc,
  21. inventory_image = "mydoors_"..img.."_inv.png",
  22. groups = {choppy=2,cracky=2,door=1},
  23. tiles = {{name="mydoors_"..img..".png", backface_culling = true}},
  24. protected = false,
  25. })
  26. end
  27. -- Crafts
  28. minetest.register_craft({
  29. output = "my_castle_doors:door1 1",
  30. recipe = {
  31. {"default:steel_ingot", "default:glass", ""},
  32. {"my_door_wood:wood_dark_grey", "my_door_wood:wood_dark_grey", ""},
  33. {"my_door_wood:wood_dark_grey", "default:steel_ingot", ""}
  34. }
  35. })
  36. minetest.register_craft({
  37. output = "my_castle_doors:door2 1",
  38. recipe = {
  39. {"default:steel_ingot", "default:glass", ""},
  40. {"my_door_wood:wood_red", "my_door_wood:wood_red", ""},
  41. {"my_door_wood:wood_red", "default:steel_ingot", ""}
  42. }
  43. })
  44. minetest.register_craft({
  45. output = "my_castle_doors:door3 1",
  46. recipe = {
  47. {"my_door_wood:wood_yellow", "default:steel_ingot", ""},
  48. {"my_door_wood:wood_yellow", "my_door_wood:wood_yellow", ""},
  49. {"my_door_wood:wood_yellow", "my_door_wood:wood_yellow", ""}
  50. }
  51. })
  52. minetest.register_craft({
  53. output = "my_castle_doors:door4 1",
  54. recipe = {
  55. {"my_door_wood:wood_brown", "default:steel_ingot", ""},
  56. {"my_door_wood:wood_brown", "my_door_wood:wood_brown", ""},
  57. {"my_door_wood:wood_brown", "my_door_wood:wood_brown", ""}
  58. }
  59. })
  60. minetest.register_craft({
  61. output = "my_castle_doors:door5 1",
  62. recipe = {
  63. {"my_door_wood:wood_yellow", "default:steel_ingot", ""},
  64. {"my_door_wood:wood_white", "my_door_wood:wood_yellow", ""},
  65. {"my_door_wood:wood_yellow", "my_door_wood:wood_yellow", ""}
  66. }
  67. })
  68. minetest.register_craft({
  69. output = "my_castle_doors:door6 1",
  70. recipe = {
  71. {"my_door_wood:wood_grey", "my_door_wood:wood_grey", ""},
  72. {"my_door_wood:wood_grey", "default:steel_ingot", ""},
  73. {"my_door_wood:wood_grey", "my_door_wood:wood_grey", ""}
  74. }
  75. })
  76. minetest.register_craft({
  77. output = "my_castle_doors:door7 1",
  78. recipe = {
  79. {"my_door_wood:wood_red", "my_door_wood:wood_red", ""},
  80. {"my_door_wood:wood_red", "default:steel_ingot", ""},
  81. {"my_door_wood:wood_red", "my_door_wood:wood_red", ""}
  82. }
  83. })
  84. minetest.register_craft({
  85. output = "my_castle_doors:door8 1",
  86. recipe = {
  87. {"default:steel_ingot", "default:steel_ingot", ""},
  88. {"my_door_wood:wood_dark_grey", "my_door_wood:wood_dark_grey", ""},
  89. {"default:steel_ingot", "default:steel_ingot", ""}
  90. }
  91. })
  92. minetest.register_craft({
  93. output = "my_castle_doors:door9 1",
  94. recipe = {
  95. {"default:steel_ingot", "my_door_wood:wood_yellow", ""},
  96. {"my_door_wood:wood_yellow", "my_door_wood:wood_yellow", ""},
  97. {"my_door_wood:wood_yellow", "my_door_wood:wood_yellow", ""}
  98. }
  99. })
  100. minetest.register_craft({
  101. output = "my_castle_doors:door10 1",
  102. recipe = {
  103. {"my_door_wood:wood_red", "default:steel_ingot", ""},
  104. {"my_door_wood:wood_red", "my_door_wood:wood_red", ""},
  105. {"my_door_wood:wood_red", "my_door_wood:wood_red", ""}
  106. }
  107. })
  108. minetest.register_craft({
  109. output = "my_castle_doors:door11 1",
  110. recipe = {
  111. {"my_door_wood:wood_brown", "default:steel_ingot", ""},
  112. {"my_door_wood:wood_brown", "my_door_wood:wood_brown", ""},
  113. {"my_door_wood:wood_brown", "my_door_wood:wood_brown", ""}
  114. }
  115. })
  116. minetest.register_craft({
  117. output = "my_castle_doors:door12 1",
  118. recipe = {
  119. {"my_door_wood:wood_brown", "default:steel_ingot", ""},
  120. {"my_door_wood:wood_grey", "my_door_wood:wood_brown", ""},
  121. {"my_door_wood:wood_brown", "my_door_wood:wood_brown", ""}
  122. }
  123. })
  124. minetest.register_craft({
  125. output = "my_castle_doors:door13 1",
  126. recipe = {
  127. {"my_door_wood:wood_brown", "my_door_wood:wood_brown", "default:steel_ingot"},
  128. {"my_door_wood:wood_brown", "my_door_wood:wood_brown", ""},
  129. {"my_door_wood:wood_brown", "my_door_wood:wood_brown", "default:steel_ingot"}
  130. }
  131. })