crafts.lua 8.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307
  1. ------------------------
  2. -- Crafts/craftitems --
  3. ------------------------
  4. -- Car parts
  5. minetest.register_craftitem("vehicle_mash:motor", {
  6. description = "Motor",
  7. inventory_image = "motor.png"
  8. })
  9. minetest.register_craftitem("vehicle_mash:tire", {
  10. description = "Tire",
  11. inventory_image = "tire.png"
  12. })
  13. minetest.register_craftitem("vehicle_mash:windshield", {
  14. description = "Wind Shield",
  15. inventory_image = "windshield.png"
  16. })
  17. minetest.register_craftitem("vehicle_mash:battery", {
  18. description = "Car battery",
  19. inventory_image = "battery.png"
  20. })
  21. minetest.register_craft({
  22. output = "vehicle_mash:motor",
  23. recipe = {
  24. {"default:copper_ingot", "default:steel_ingot", "default:copper_ingot"},
  25. {"default:steel_ingot", "default:steelblock", "default:steel_ingot"},
  26. {"default:steel_ingot", "default:steel_ingot", "default:steel_ingot"},
  27. }
  28. })
  29. minetest.register_craft({
  30. output = "vehicle_mash:tire",
  31. recipe = {
  32. {"wool:dark_grey", "wool:dark_grey", "wool:dark_grey"},
  33. {"wool:dark_grey", "default:steelblock", "wool:dark_grey"},
  34. {"wool:dark_grey", "wool:dark_grey", "wool:dark_grey"},
  35. }
  36. })
  37. minetest.register_craft({
  38. output = "vehicle_mash:windshield",
  39. recipe = {
  40. {"default:stone", "default:stone", "default:stone"},
  41. {"default:stone", "xpanes:pane_flat", "default:stone"},
  42. {"default:stone", "default:stone", "default:stone"},
  43. }
  44. })
  45. minetest.register_craft({
  46. output = "vehicle_mash:battery",
  47. recipe = {
  48. {"wool:blue", "", "wool:red"},
  49. {"default:steel_ingot", "default:steel_ingot", "default:steel_ingot"},
  50. {"wool:dark_grey", "default:steelblock", "wool:dark_grey"},
  51. }
  52. })
  53. -- Hovercrafts
  54. minetest.register_craft({
  55. output = "vehicle_mash:hover_red",
  56. recipe = {
  57. {"", "", "default:steelblock"},
  58. {"wool:red", "wool:red", "wool:red"},
  59. {"wool:black", "wool:black", "wool:black"},
  60. }
  61. })
  62. minetest.register_craft({
  63. output = "vehicle_mash:hover_blue",
  64. recipe = {
  65. {"", "", "default:steelblock"},
  66. {"wool:blue", "wool:blue", "wool:blue"},
  67. {"wool:black", "wool:black", "wool:black"},
  68. }
  69. })
  70. minetest.register_craft({
  71. output = "vehicle_mash:hover_green",
  72. recipe = {
  73. {"", "", "default:steelblock"},
  74. {"wool:green", "wool:green", "wool:green"},
  75. {"wool:black", "wool:black", "wool:black"},
  76. }
  77. })
  78. minetest.register_craft({
  79. output = "vehicle_mash:hover_yellow",
  80. recipe = {
  81. {"", "", "default:steelblock"},
  82. {"wool:yellow", "wool:yellow", "wool:yellow"},
  83. {"wool:black", "wool:black", "wool:black"},
  84. }
  85. })
  86. -- Mese cars
  87. minetest.register_craft({
  88. output = "vehicle_mash:mesecar_blue",
  89. recipe = {
  90. {"default:steel_ingot", "dye:blue", "default:steel_ingot"},
  91. {"default:steel_ingot", "group:wool", "default:glass"},
  92. {"vehicle_mash:motor", "vehicle_mash:battery", "vehicle_mash:motor"},
  93. },
  94. })
  95. minetest.register_craft({
  96. output = "vehicle_mash:mesecar_purple",
  97. recipe = {
  98. {"default:steel_ingot", "dye:magenta", "default:steel_ingot"},
  99. {"default:steel_ingot", "group:wool", "default:glass"},
  100. {"vehicle_mash:motor", "vehicle_mash:battery", "vehicle_mash:motor"},
  101. },
  102. })
  103. minetest.register_craft({
  104. output = "vehicle_mash:mesecar_pink",
  105. recipe = {
  106. {"default:steel_ingot", "dye:pink", "default:steel_ingot"},
  107. {"default:steel_ingot", "group:wool", "default:glass"},
  108. {"vehicle_mash:motor", "vehicle_mash:battery", "vehicle_mash:motor"},
  109. },
  110. })
  111. minetest.register_craft({
  112. output = "vehicle_mash:mesecar_yellow",
  113. recipe = {
  114. {"default:steel_ingot", "dye:yellow", "default:steel_ingot"},
  115. {"default:steel_ingot", "group:wool", "default:glass"},
  116. {"vehicle_mash:motor", "vehicle_mash:battery", "vehicle_mash:motor"},
  117. },
  118. })
  119. -- CAR01's
  120. minetest.register_craft({
  121. output = "vehicle_mash:car_black",
  122. recipe = {
  123. {"vehicle_mash:tire", "vehicle_mash:windshield", "vehicle_mash:tire"},
  124. {"wool:black", "vehicle_mash:motor", "wool:black"},
  125. {"vehicle_mash:tire", "vehicle_mash:battery", "vehicle_mash:tire"},
  126. }
  127. })
  128. minetest.register_craft({
  129. output = "vehicle_mash:car_blue",
  130. recipe = {
  131. {"vehicle_mash:tire", "vehicle_mash:windshield", "vehicle_mash:tire"},
  132. {"wool:blue", "vehicle_mash:motor", "wool:blue"},
  133. {"vehicle_mash:tire", "vehicle_mash:battery", "vehicle_mash:tire"},
  134. }
  135. })
  136. minetest.register_craft({
  137. output = "vehicle_mash:car_brown",
  138. recipe = {
  139. {"vehicle_mash:tire", "vehicle_mash:windshield", "vehicle_mash:tire"},
  140. {"wool:brown", "vehicle_mash:motor", "wool:brown"},
  141. {"vehicle_mash:tire", "vehicle_mash:battery", "vehicle_mash:tire"},
  142. }
  143. })
  144. minetest.register_craft({
  145. output = "vehicle_mash:car_cyan",
  146. recipe = {
  147. {"vehicle_mash:tire", "vehicle_mash:windshield", "vehicle_mash:tire"},
  148. {"wool:cyan", "vehicle_mash:motor", "wool:cyan"},
  149. {"vehicle_mash:tire", "vehicle_mash:battery", "vehicle_mash:tire"},
  150. }
  151. })
  152. minetest.register_craft({
  153. output = "vehicle_mash:car_dark_green",
  154. recipe = {
  155. {"vehicle_mash:tire", "vehicle_mash:windshield", "vehicle_mash:tire"},
  156. {"wool:dark_green", "vehicle_mash:motor", "wool:dark_green"},
  157. {"vehicle_mash:tire", "vehicle_mash:battery", "vehicle_mash:tire"},
  158. }
  159. })
  160. minetest.register_craft({
  161. output = "vehicle_mash:car_dark_grey",
  162. recipe = {
  163. {"vehicle_mash:tire", "vehicle_mash:windshield", "vehicle_mash:tire"},
  164. {"wool:dark_grey", "vehicle_mash:motor", "wool:dark_grey"},
  165. {"vehicle_mash:tire", "vehicle_mash:battery", "vehicle_mash:tire"},
  166. }
  167. })
  168. minetest.register_craft({
  169. output = "vehicle_mash:car_green",
  170. recipe = {
  171. {"vehicle_mash:tire", "vehicle_mash:windshield", "vehicle_mash:tire"},
  172. {"wool:green", "vehicle_mash:motor", "wool:green"},
  173. {"vehicle_mash:tire", "vehicle_mash:battery", "vehicle_mash:tire"},
  174. }
  175. })
  176. minetest.register_craft({
  177. output = "vehicle_mash:car_grey",
  178. recipe = {
  179. {"vehicle_mash:tire", "vehicle_mash:windshield", "vehicle_mash:tire"},
  180. {"wool:grey", "vehicle_mash:motor", "wool:grey"},
  181. {"vehicle_mash:tire", "vehicle_mash:battery", "vehicle_mash:tire"},
  182. }
  183. })
  184. minetest.register_craft({
  185. output = "vehicle_mash:car_magenta",
  186. recipe = {
  187. {"vehicle_mash:tire", "vehicle_mash:windshield", "vehicle_mash:tire"},
  188. {"wool:magenta", "vehicle_mash:motor", "wool:magenta"},
  189. {"vehicle_mash:tire", "vehicle_mash:battery", "vehicle_mash:tire"},
  190. }
  191. })
  192. minetest.register_craft({
  193. output = "vehicle_mash:car_orange",
  194. recipe = {
  195. {"vehicle_mash:tire", "vehicle_mash:windshield", "vehicle_mash:tire"},
  196. {"wool:orange", "vehicle_mash:motor", "wool:orange"},
  197. {"vehicle_mash:tire", "vehicle_mash:battery", "vehicle_mash:tire"},
  198. }
  199. })
  200. minetest.register_craft({
  201. output = "vehicle_mash:car_pink",
  202. recipe = {
  203. {"vehicle_mash:tire", "vehicle_mash:windshield", "vehicle_mash:tire"},
  204. {"wool:pink", "vehicle_mash:motor", "wool:pink"},
  205. {"vehicle_mash:tire", "vehicle_mash:battery", "vehicle_mash:tire"},
  206. }
  207. })
  208. minetest.register_craft({
  209. output = "vehicle_mash:car_red",
  210. recipe = {
  211. {"vehicle_mash:tire", "vehicle_mash:windshield", "vehicle_mash:tire"},
  212. {"wool:red", "vehicle_mash:motor", "wool:red"},
  213. {"vehicle_mash:tire", "vehicle_mash:battery", "vehicle_mash:tire"},
  214. }
  215. })
  216. minetest.register_craft({
  217. output = "vehicle_mash:car_violet",
  218. recipe = {
  219. {"vehicle_mash:tire", "vehicle_mash:windshield", "vehicle_mash:tire"},
  220. {"wool:violet", "vehicle_mash:motor", "wool:violet"},
  221. {"vehicle_mash:tire", "vehicle_mash:battery", "vehicle_mash:tire"},
  222. }
  223. })
  224. minetest.register_craft({
  225. output = "vehicle_mash:car_white",
  226. recipe = {
  227. {"vehicle_mash:tire", "vehicle_mash:windshield", "vehicle_mash:tire"},
  228. {"wool:white", "vehicle_mash:motor", "wool:white"},
  229. {"vehicle_mash:tire", "vehicle_mash:battery", "vehicle_mash:tire"},
  230. }
  231. })
  232. minetest.register_craft({
  233. output = "vehicle_mash:car_yellow",
  234. recipe = {
  235. {"vehicle_mash:tire", "vehicle_mash:windshield", "vehicle_mash:tire"},
  236. {"wool:yellow", "vehicle_mash:motor", "wool:yellow"},
  237. {"vehicle_mash:tire", "vehicle_mash:battery", "vehicle_mash:tire"},
  238. }
  239. })
  240. minetest.register_craft({
  241. output = "vehicle_mash:car_hot_rod",
  242. recipe = {
  243. {"vehicle_mash:tire", "vehicle_mash:windshield", "vehicle_mash:tire"},
  244. {"wool:red", "vehicle_mash:motor", "wool:orange"},
  245. {"vehicle_mash:tire", "vehicle_mash:battery", "vehicle_mash:tire"},
  246. }
  247. })
  248. minetest.register_craft({
  249. output = "vehicle_mash:car_nyan_ride",
  250. recipe = {
  251. {"vehicle_mash:tire", "vehicle_mash:windshield", "vehicle_mash:tire"},
  252. {"wool:pink", "vehicle_mash:motor", "wool:grey"},
  253. {"vehicle_mash:tire", "vehicle_mash:battery", "vehicle_mash:tire"},
  254. }
  255. })
  256. minetest.register_craft({
  257. output = "vehicle_mash:car_oerkki_bliss",
  258. recipe = {
  259. {"vehicle_mash:tire", "vehicle_mash:windshield", "vehicle_mash:tire"},
  260. {"wool:grey", "vehicle_mash:motor", "wool:black"},
  261. {"vehicle_mash:tire", "vehicle_mash:battery", "vehicle_mash:tire"},
  262. }
  263. })
  264. minetest.register_craft({
  265. output = "vehicle_mash:car_road_master",
  266. recipe = {
  267. {"vehicle_mash:tire", "vehicle_mash:windshield", "vehicle_mash:tire"},
  268. {"wool:brown", "vehicle_mash:motor", "wool:black"},
  269. {"vehicle_mash:tire", "vehicle_mash:battery", "vehicle_mash:tire"},
  270. }
  271. })