init.lua 7.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361
  1. minetest.log("action"," ---- Dark Age Version 1.3 is Loading! ---- ")
  2. darkage = {}; -- Create darkage namespace
  3. darkage.formbg = (default.gui_bg or "")..
  4. (default.gui_bg_img or "")..
  5. (default.gui_slots or "")
  6. local MODPATH = minetest.get_modpath("darkage")..DIR_DELIM
  7. dofile(MODPATH.."nodes.lua")
  8. dofile(MODPATH.."glass.lua")
  9. dofile(MODPATH.."mapgen.lua")
  10. dofile(MODPATH.."building.lua")
  11. dofile(MODPATH.."furniture.lua")
  12. dofile(MODPATH.."walls.lua")
  13. dofile(MODPATH.."stairs_functions.lua")
  14. dofile(MODPATH.."stairs.lua")
  15. ---------------
  16. -- Crafts Items
  17. ---------------
  18. minetest.register_craftitem("darkage:chalk_powder", {
  19. description = "Chalk Powder",
  20. inventory_image = "darkage_chalk_powder.png",
  21. })
  22. minetest.register_craftitem("darkage:mud_lump", {
  23. description = "Mud Lump",
  24. inventory_image = "darkage_mud_lump.png",
  25. })
  26. minetest.register_craftitem("darkage:silt_lump", {
  27. description = "Silt Lump",
  28. inventory_image = "darkage_silt_lump.png",
  29. })
  30. minetest.register_craftitem("darkage:iron_stick", {
  31. description = "Iron Stick",
  32. inventory_image = "darkage_iron_stick.png",
  33. })
  34. ----------
  35. -- Crafts
  36. ----------
  37. minetest.register_craft({
  38. type = "cooking",
  39. output = "darkage:basalt",
  40. recipe = "darkage:basalt_rubble",
  41. })
  42. minetest.register_craft({
  43. output = "darkage:basalt_rubble 4",
  44. recipe = {
  45. {"default:cobble", "default:cobble"},
  46. {"default:coal_lump", "default:coal_lump"},
  47. }
  48. })
  49. minetest.register_craft({
  50. output = "darkage:basalt_brick 4",
  51. recipe = {
  52. {"darkage:basalt", "darkage:basalt"},
  53. {"darkage:basalt", "darkage:basalt"},
  54. }
  55. })
  56. minetest.register_craft({
  57. output = "darkage:basalt_block 9",
  58. recipe = {
  59. {"darkage:basalt", "darkage:basalt", "darkage:basalt"},
  60. {"darkage:basalt", "darkage:basalt", "darkage:basalt"},
  61. {"darkage:basalt", "darkage:basalt", "darkage:basalt"},
  62. }
  63. })
  64. minetest.register_craft({
  65. output = "darkage:cobble_with_plaster 2",
  66. recipe = {
  67. {"default:cobble", "darkage:chalk_powder"},
  68. {"default:cobble", "darkage:chalk_powder"},
  69. }
  70. })
  71. minetest.register_craft({
  72. output = "darkage:cobble_with_plaster 2",
  73. recipe = {
  74. {"darkage:chalk_powder", "default:cobble"},
  75. {"darkage:chalk_powder", "default:cobble"},
  76. }
  77. })
  78. minetest.register_craft({
  79. output = "darkage:chalked_bricks_with_plaster 2",
  80. recipe = {
  81. {"darkage:chalked_bricks", "darkage:chalk_powder"},
  82. {"darkage:chalked_bricks", "darkage:chalk_powder"},
  83. }
  84. })
  85. minetest.register_craft({
  86. output = "darkage:chalked_bricks_with_plaster 2",
  87. recipe = {
  88. {"darkage:chalk_powder", "darkage:chalked_bricks"},
  89. {"darkage:chalk_powder", "darkage:chalked_bricks"},
  90. }
  91. })
  92. --[[
  93. Gneiss
  94. ]]
  95. minetest.register_craft({
  96. type = "cooking",
  97. output = "darkage:gneiss",
  98. recipe = "darkage:schist",
  99. })
  100. minetest.register_craft({
  101. type = "cooking",
  102. output = "darkage:gneiss",
  103. recipe = "darkage:gneiss_rubble",
  104. })
  105. minetest.register_craft({
  106. output = "darkage:gneiss_brick 4",
  107. recipe = {
  108. {"darkage:gneiss", "darkage:gneiss"},
  109. {"darkage:gneiss", "darkage:gneiss"},
  110. }
  111. })
  112. minetest.register_craft({
  113. output = "darkage:gneiss_block 9",
  114. recipe = {
  115. {"darkage:gneiss", "darkage:gneiss", "darkage:gneiss"},
  116. {"darkage:gneiss", "darkage:gneiss", "darkage:gneiss"},
  117. {"darkage:gneiss", "darkage:gneiss", "darkage:gneiss"},
  118. }
  119. })
  120. minetest.register_craft({
  121. output = "darkage:mud 3",
  122. recipe = {
  123. {"default:dirt", "default:dirt"},
  124. {"default:clay_lump", "darkage:silt_lump"},
  125. }
  126. })
  127. minetest.register_craft({
  128. output = "darkage:mud",
  129. recipe = {
  130. {"darkage:mud_lump", "darkage:mud_lump"},
  131. {"darkage:mud_lump", "darkage:mud_lump"},
  132. }
  133. })
  134. minetest.register_craft({
  135. output = "darkage:marble_tile 2",
  136. recipe = {
  137. {"darkage:marble", "darkage:marble"},
  138. {"darkage:marble", "darkage:marble"},
  139. }
  140. })
  141. --[[
  142. Old Red Sandstone
  143. ]]
  144. minetest.register_craft({
  145. type = "cooking",
  146. output = "darkage:ors",
  147. recipe = "darkage:ors_rubble",
  148. })
  149. minetest.register_craft({
  150. output = "darkage:ors 4",
  151. recipe = {
  152. {"default:sandstone", "default:sandstone"},
  153. {"default:iron_lump", "default:sandstone"},
  154. }
  155. })
  156. minetest.register_craft({
  157. output = "darkage:ors_brick 4",
  158. recipe = {
  159. {"darkage:ors", "darkage:ors"},
  160. {"darkage:ors", "darkage:ors"},
  161. }
  162. })
  163. minetest.register_craft({
  164. output = "darkage:ors_block 9",
  165. recipe = {
  166. {"darkage:ors", "darkage:ors", "darkage:ors"},
  167. {"darkage:ors", "darkage:ors", "darkage:ors"},
  168. {"darkage:ors", "darkage:ors", "darkage:ors"},
  169. }
  170. })
  171. minetest.register_craft({
  172. output = "darkage:silt 3",
  173. recipe = {
  174. {"default:sand", "default:sand"},
  175. {"default:clay_lump", "default:clay_lump"},
  176. }
  177. })
  178. minetest.register_craft({
  179. output = "darkage:silt",
  180. recipe = {
  181. {"darkage:silt_lump", "darkage:silt_lump"},
  182. {"darkage:silt_lump", "darkage:silt_lump"},
  183. }
  184. })
  185. --[[
  186. Slate
  187. ]]
  188. minetest.register_craft({
  189. type = "cooking",
  190. output = "darkage:slate",
  191. recipe = "darkage:slate_rubble",
  192. })
  193. minetest.register_craft({
  194. output = "darkage:slate_brick 4",
  195. recipe = {
  196. {"darkage:slate", "darkage:slate"},
  197. {"darkage:slate", "darkage:slate"},
  198. }
  199. })
  200. minetest.register_craft({
  201. output = "darkage:slate_block 9",
  202. recipe = {
  203. {"darkage:slate", "darkage:slate", "darkage:slate"},
  204. {"darkage:slate", "darkage:slate", "darkage:slate"},
  205. {"darkage:slate", "darkage:slate", "darkage:slate"},
  206. }
  207. })
  208. minetest.register_craft({
  209. output = "darkage:slate_tile 2",
  210. recipe = {
  211. {"darkage:slate_brick", "darkage:slate_brick"},
  212. {"darkage:slate_brick", "darkage:slate_brick"},
  213. }
  214. })
  215. minetest.register_craft({
  216. output = "darkage:stone_brick",
  217. recipe = {
  218. {"default:stone_block"},
  219. }
  220. })
  221. minetest.register_craft({
  222. output = "darkage:straw_bale",
  223. recipe = {
  224. {"farming:straw","farming:straw"},
  225. {"farming:straw","farming:straw"},
  226. }
  227. })
  228. minetest.register_craft({
  229. output = "darkage:iron_stick 4",
  230. recipe = {
  231. {"default:steel_ingot"},
  232. }
  233. })
  234. -- Cookings
  235. minetest.register_craft({
  236. type = "cooking",
  237. output = "darkage:schist",
  238. recipe = "darkage:slate",
  239. })
  240. minetest.register_craft({
  241. type = "cooking",
  242. output = "darkage:shale",
  243. recipe = "darkage:mud",
  244. })
  245. minetest.register_craft({
  246. type = "cooking",
  247. output = "darkage:slate",
  248. recipe = "darkage:shale",
  249. })
  250. minetest.register_craft({
  251. type = "cooking",
  252. output = "darkage:slate",
  253. recipe = "darkage:slate_rubble",
  254. })
  255. -- Desert
  256. minetest.register_craft({
  257. type = "cooking",
  258. output = "darkage:ors_brick",
  259. recipe = "default:desert_stone",
  260. })
  261. -- Tuff
  262. minetest.register_craft({
  263. output = "darkage:tuff 2",
  264. recipe = {
  265. {"darkage:gneiss", "default:stone"},
  266. {"default:stone", "darkage:gneiss"},
  267. }
  268. })
  269. minetest.register_craft({
  270. type = "cooking",
  271. output = "darkage:tuff",
  272. recipe = "darkage:tuff_rubble",
  273. })
  274. minetest.register_craft({
  275. type = "cooking",
  276. output = "darkage:tuff",
  277. recipe = "darkage:old_tuff_bricks",
  278. })
  279. minetest.register_craft({
  280. output = "darkage:tuff_bricks 4",
  281. recipe = {
  282. {"darkage:tuff", "darkage:tuff"},
  283. {"darkage:tuff", "darkage:tuff"},
  284. }
  285. })
  286. -- Rhyolitic Tuff
  287. minetest.register_craft({
  288. output = "darkage:rhyolitic_tuff 2",
  289. recipe = {
  290. {"darkage:gneiss", "default:desert_stone"},
  291. {"default:desert_stone", "darkage:gneiss"},
  292. }
  293. })
  294. minetest.register_craft({
  295. type = "cooking",
  296. output = "darkage:rhyolitic_tuff",
  297. recipe = "darkage:rhyolitic_tuff_rubble",
  298. })
  299. minetest.register_craft({
  300. output = "darkage:rhyolitic_tuff_bricks 4",
  301. recipe = {
  302. {"darkage:rhyolitic_tuff", "darkage:rhyolitic_tuff"},
  303. {"darkage:rhyolitic_tuff", "darkage:rhyolitic_tuff"},
  304. }
  305. })