clothing_recipes.lua 5.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213
  1. local S = cannabis.S
  2. local path = cannabis.path
  3. local craft_cloth = {
  4. {"cape",""},
  5. {"skullcap",""},
  6. {"glove_right",""},
  7. {"glove_left",""},
  8. {"gloves",""},
  9. {"shirt",""},
  10. {"shorts",""},
  11. {"shortshirt",""},
  12. {"undershirt",""},
  13. {"hood_mask",""},
  14. {"pants",""}
  15. }
  16. local colors_l ={
  17. --{"col"},
  18. {"yellow"},
  19. {"red"},
  20. {"cyan"},
  21. {"pink"},
  22. {"orange"},
  23. {"green"},
  24. {"white"},
  25. {"green"},
  26. {"violet"},
  27. {"blue"}
  28. }
  29. for i in ipairs(colors_l) do
  30. local colors = colors_l[i][1]
  31. for i in ipairs(craft_cloth) do
  32. local clot = craft_cloth[i][1]
  33. minetest.register_craft({
  34. output = "cannabis:canapa_"..clot.."_hemp",
  35. recipe = {
  36. {"","","" },
  37. {"","","" },
  38. {"cannabis:canapa_"..clot.."_fabric_hemp","cannabis:flowering","" }
  39. }
  40. })
  41. minetest.register_craft({
  42. output = "cannabis:canapa_"..clot.."_red_hemp",
  43. recipe = {
  44. {"","","" },
  45. {"","","" },
  46. {"cannabis:canapa_"..clot.."_fabric_hemp","cannabis:flowering_red","" }
  47. }
  48. })
  49. minetest.register_craft({
  50. output = "cannabis:canapa_"..clot.."_ice_hemp",
  51. recipe = {
  52. {"","","" },
  53. {"","","" },
  54. {"cannabis:canapa_"..clot.."_fabric_hemp","cannabis:flowering_ice","" }
  55. }
  56. })
  57. minetest.register_craft({
  58. output = "cannabis:canapa_"..clot.."_jamaican",
  59. recipe = {
  60. {"","","" },
  61. {"","","" },
  62. {"cannabis:canapa_"..clot.."_fabric_hemp","cannabis:canapa_glue","" }
  63. }
  64. })
  65. minetest.register_craft({
  66. output = "cannabis:canapa_"..clot.."_u_style",
  67. recipe = {
  68. {"","","" },
  69. {"","","" },
  70. {"cannabis:canapa_"..clot.."_fabric_hemp","cannabis:canapa_raisin","" }
  71. }
  72. })
  73. --_____________________________________________________________cape
  74. minetest.register_craft({
  75. output = "cannabis:canapa_cape_fabric_hemp",
  76. recipe = {
  77. {"cannabis:canapa_cloth","","" },
  78. {"cannabis:canapa_cloth","","" },
  79. {"cannabis:canapa_cloth","","" }
  80. }
  81. })
  82. --_________________________________________________________skullcap
  83. minetest.register_craft({
  84. output = "cannabis:canapa_skullcap_fabric_hemp",
  85. recipe = {
  86. {"cannabis:canapa_cloth","","" },
  87. {"cannabis:canapa_cloth","","" },
  88. {"","","" }
  89. }
  90. })
  91. --______________________________________________________________glove_left
  92. minetest.register_craft({
  93. output = "cannabis:canapa_glove_left_fabric_hemp",
  94. recipe = {
  95. {"","","" },
  96. {"","","" },
  97. {"cannabis:canapa_cloth","","" }
  98. }
  99. })
  100. --_______________________________________________________________glove_right
  101. minetest.register_craft({
  102. output = "cannabis:canapa_glove_right_fabric_hemp",
  103. recipe = {
  104. {"","","" },
  105. {"","","" },
  106. {"","","cannabis:canapa_cloth" }
  107. }
  108. })
  109. --______________________________________________________________gloves
  110. minetest.register_craft({
  111. output = "cannabis:canapa_gloves_fabric_hemp",
  112. recipe = {
  113. {"","","" },
  114. {"","","" },
  115. {"cannabis:canapa_glove_left_fabric_hemp","cannabis:canapa_glove_right_fabric_hemp","" }
  116. }
  117. })
  118. --_________________________________________________________________shirt
  119. minetest.register_craft({
  120. output = "cannabis:canapa_shirt_fabric_hemp",
  121. recipe = {
  122. {"cannabis:canapa_fiber","cannabis:canapa_cloth","cannabis:canapa_fiber" },
  123. {"","cannabis:canapa_cloth","" },
  124. {"","cannabis:canapa_cloth","" }
  125. }
  126. })
  127. --___________________________________________________________________________________shortshirt
  128. minetest.register_craft({
  129. output = "cannabis:canapa_shortshirt_fabric_hemp",
  130. recipe = {
  131. {"cannabis:canapa_fiber","cannabis:canapa_cloth","cannabis:canapa_fiber" },
  132. {"","cannabis:canapa_cloth","" },
  133. {"","cannabis:canapa_cloth","" }
  134. }
  135. })
  136. --________________________________________________________________________________undershirt
  137. minetest.register_craft({
  138. output = "cannabis:canapa_undershirt_fabric_hemp",
  139. recipe = {
  140. {"cannabis:canapa_fiber","","cannabis:canapa_fiber" },
  141. {"","cannabis:canapa_cloth","" },
  142. {"","cannabis:canapa_cloth","" }
  143. }
  144. })
  145. --________________________________________________________________________________________pants
  146. minetest.register_craft({
  147. output = "cannabis:canapa_pants_fabric_hemp",
  148. recipe = {
  149. {"cannabis:canapa_fiber","cannabis:canapa_fiber","cannabis:canapa_fiber" },
  150. {"","cannabis:canapa_cloth","" },
  151. {"","cannabis:canapa_cloth","" }
  152. }
  153. })
  154. --_________________________________________________________________________________hood_mask
  155. minetest.register_craft({
  156. output = "cannabis:canapa_hood_mask_fabric_hemp",
  157. recipe = {
  158. {"cannabis:canapa_fiber","","cannabis:canapa_fiber" },
  159. {"","cannabis:canapa_fiber","" },
  160. {"","cannabis:canapa_cloth","" }
  161. }
  162. })
  163. --________________________________________________________________________short
  164. minetest.register_craft({
  165. output = "cannabis:canapa_shorts_fabric_hemp",
  166. recipe = {
  167. {"cannabis:canapa_fiber","cannabis:canapa_fiber","cannabis:canapa_fiber" },
  168. {"cannabis:canapa_cloth","","cannabis:canapa_cloth" },
  169. {"","","" }
  170. }
  171. })
  172. --_____________________________________________________________________________________________colored____________
  173. minetest.register_craft({
  174. output = "cannabis:canapa_"..clot.."_fabric_hemp_"..colors,
  175. recipe = {
  176. {"","","" },
  177. {"","","" },
  178. {"cannabis:canapa_"..clot.."_fabric_hemp","dye:"..colors,"" }
  179. }
  180. })
  181. end
  182. end