init.lua 5.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261
  1. darkage = {}; -- Create darkage namespace
  2. local MODPATH = minetest.get_modpath("darkage")
  3. dofile(MODPATH.."/nodes.lua")
  4. dofile(MODPATH.."/mapgen.lua")
  5. dofile(MODPATH.."/building.lua")
  6. dofile(MODPATH.."/furniture.lua")
  7. dofile(MODPATH.."/aliases.lua")
  8. dofile(MODPATH.."/walls.lua")
  9. dofile(MODPATH.."/stairs_functions.lua")
  10. dofile(MODPATH.."/stairs.lua")
  11. ---------------
  12. -- Crafts Items
  13. ---------------
  14. minetest.register_craftitem("darkage:chalk_powder", {
  15. description = "Chalk Powder",
  16. inventory_image = "darkage_chalk_powder.png",
  17. })
  18. minetest.register_craftitem("darkage:mud_lump", {
  19. description = "Mud Lump",
  20. inventory_image = "darkage_mud_lump.png",
  21. })
  22. minetest.register_craftitem("darkage:silt_lump", {
  23. description = "Silt Lump",
  24. inventory_image = "darkage_silt_lump.png",
  25. })
  26. minetest.register_craftitem("darkage:iron_stick", {
  27. description = "Iron Stick",
  28. inventory_image = "darkage_iron_stick.png",
  29. })
  30. ----------
  31. -- Crafts
  32. ----------
  33. minetest.register_craft({
  34. output = "darkage:adobe 4",
  35. recipe = {
  36. {"default:sand", "default:sand"},
  37. {"default:clay_lump", "farming:straw"},
  38. }
  39. })
  40. minetest.register_craft({
  41. output = "darkage:basalt_cobble 4",
  42. recipe = {
  43. {"default:cobble", "default:cobble"},
  44. {"default:coal_lump", "default:coal_lump"},
  45. }
  46. })
  47. minetest.register_craft({
  48. output = "darkage:cobble_with_plaster 2",
  49. recipe = {
  50. {"darkage:chalk_powder", "default:cobble"},
  51. {"darkage:chalk_powder", "default:cobble"},
  52. }
  53. })
  54. minetest.register_craft({
  55. output = "darkage:stonebrick_with_plaster 2",
  56. recipe = {
  57. {"darkage:chalk_powder", "default:stonebrick"},
  58. {"darkage:chalk_powder", "default:stonebrick"},
  59. }
  60. })
  61. minetest.register_craft({
  62. output = "darkage:darkdirt 4",
  63. recipe = {
  64. {"default:dirt", "default:dirt"},
  65. {"default:gravel", "default:gravel"},
  66. }
  67. })
  68. minetest.register_craft({
  69. output = "darkage:mud 3",
  70. recipe = {
  71. {"default:dirt", "default:dirt"},
  72. {"default:clay_lump", "darkage:silt_lump"},
  73. }
  74. })
  75. minetest.register_craft({
  76. output = "darkage:mud",
  77. recipe = {
  78. {"darkage:mud_lump", "darkage:mud_lump"},
  79. {"darkage:mud_lump", "darkage:mud_lump"},
  80. }
  81. })
  82. minetest.register_craft({
  83. output = "darkage:ors 4",
  84. recipe = {
  85. {"default:sandstone", "default:sandstone"},
  86. {"default:iron_lump", "default:sandstone"},
  87. }
  88. })
  89. minetest.register_craft({
  90. output = "darkage:silt 3",
  91. recipe = {
  92. {"default:sand", "default:sand"},
  93. {"default:clay_lump", "default:clay_lump"},
  94. }
  95. })
  96. minetest.register_craft({
  97. output = "darkage:silt",
  98. recipe = {
  99. {"darkage:silt_lump", "darkage:silt_lump"},
  100. {"darkage:silt_lump", "darkage:silt_lump"},
  101. }
  102. })
  103. minetest.register_craft({
  104. output = "darkage:slate_tile 2",
  105. recipe = {
  106. {"darkage:slate_cobble", "darkage:slate_cobble"},
  107. {"darkage:slate_cobble", "darkage:slate_cobble"},
  108. }
  109. })
  110. minetest.register_craft({
  111. output = "darkage:straw_bale",
  112. recipe = {
  113. {"farming:straw","farming:straw"},
  114. {"farming:straw","farming:straw"},
  115. }
  116. })
  117. minetest.register_craft({
  118. output = "darkage:iron_stick 4",
  119. recipe = {
  120. {"default:steel_ingot"},
  121. }
  122. })
  123. -- Cookings
  124. minetest.register_craft({
  125. type = "cooking",
  126. output = "darkage:basalt",
  127. recipe = "darkage:basalt_cobble",
  128. })
  129. minetest.register_craft({
  130. type = "cooking",
  131. output = "darkage:dry_leaves",
  132. recipe = "default:leaves",
  133. })
  134. minetest.register_craft({
  135. type = "cooking",
  136. output = "darkage:gneiss",
  137. recipe = "darkage:schist",
  138. })
  139. minetest.register_craft({
  140. type = "cooking",
  141. output = "darkage:gneiss",
  142. recipe = "darkage:gneiss_cobble",
  143. })
  144. minetest.register_craft({
  145. type = "cooking",
  146. output = "darkage:ors",
  147. recipe = "darkage:ors_cobble",
  148. })
  149. minetest.register_craft({
  150. type = "cooking",
  151. output = "darkage:schist",
  152. recipe = "darkage:slate",
  153. })
  154. minetest.register_craft({
  155. type = "cooking",
  156. output = "darkage:shale",
  157. recipe = "darkage:mud",
  158. })
  159. minetest.register_craft({
  160. type = "cooking",
  161. output = "darkage:slate",
  162. recipe = "darkage:shale",
  163. })
  164. minetest.register_craft({
  165. type = "cooking",
  166. output = "darkage:slate",
  167. recipe = "darkage:slate_cobble",
  168. })
  169. -- Desert
  170. minetest.register_craft({
  171. type = "cooking",
  172. output = "darkage:ors_cobble",
  173. recipe = "default:desert_stone",
  174. })
  175. -- Tuff
  176. minetest.register_craft({
  177. output = "darkage:tuff 2",
  178. recipe = {
  179. {"darkage:gneiss", "default:stone"},
  180. {"default:stone", "darkage:gneiss"},
  181. }
  182. })
  183. minetest.register_craft({
  184. type = "cooking",
  185. output = "darkage:tuff",
  186. recipe = "darkage:tuff_rubble",
  187. })
  188. minetest.register_craft({
  189. type = "cooking",
  190. output = "darkage:tuff",
  191. recipe = "darkage:old_tuff_bricks",
  192. })
  193. minetest.register_craft({
  194. output = "darkage:tuff_bricks",
  195. recipe = {
  196. {"darkage:tuff", "darkage:tuff"},
  197. {"darkage:tuff", "darkage:tuff"},
  198. }
  199. })
  200. -- Rhyolitic Tuff
  201. minetest.register_craft({
  202. output = "darkage:rhyolitic_tuff 2",
  203. recipe = {
  204. {"darkage:gneiss", "default:desert_stone"},
  205. {"default:desert_stone", "darkage:gneiss"},
  206. }
  207. })
  208. minetest.register_craft({
  209. type = "cooking",
  210. output = "darkage:rhyolitic_tuff",
  211. recipe = "darkage:rhyolitic_tuff_rubble",
  212. })
  213. minetest.register_craft({
  214. output = "darkage:rhyolitic_tuff_bricks",
  215. recipe = {
  216. {"darkage:rhyolitic_tuff", "darkage:rhyolitic_tuff"},
  217. {"darkage:rhyolitic_tuff", "darkage:rhyolitic_tuff"},
  218. }
  219. })