You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

428 lines
12KB

  1. -- Desserts --
  2. minetest.register_craftitem("mtfoods:dandelion_milk", {
  3. description = "Dandelion Milk",
  4. inventory_image = "mtfoods_milk.png",
  5. on_use = minetest.item_eat(1),
  6. })
  7. minetest.register_craftitem("mtfoods:sugar", {
  8. description = "Sugar",
  9. inventory_image = "mtfoods_sugar.png",
  10. on_use = minetest.item_eat(1),
  11. })
  12. minetest.register_craftitem("mtfoods:short_bread", {
  13. description = "Short Bread",
  14. inventory_image = "mtfoods_short_bread.png",
  15. on_use = minetest.item_eat(3.5),
  16. })
  17. minetest.register_craftitem("mtfoods:pie_crust", {
  18. description = "Pie Crust",
  19. inventory_image = "mtfoods_pie_crust.png",
  20. on_use = minetest.item_eat(3.5),
  21. })
  22. minetest.register_craftitem("mtfoods:cream", {
  23. description = "Cream",
  24. inventory_image = "mtfoods_cream.png",
  25. on_use = minetest.item_eat(1.5),
  26. })
  27. minetest.register_craftitem("mtfoods:chocolate", {
  28. description = "Chocolate Bits",
  29. inventory_image = "mtfoods_chocolate_bit.png",
  30. on_use = minetest.item_eat(2.5),
  31. })
  32. minetest.register_craftitem("mtfoods:cupcake", {
  33. description = "Cup-Cake",
  34. inventory_image = "mtfoods_cupcake.png",
  35. on_use = minetest.item_eat(3.5),
  36. })
  37. minetest.register_craftitem("mtfoods:strawberry_shortcake", {
  38. description = "Strawberry Short-Cake",
  39. inventory_image = "mtfoods_berry_shortcake.png",
  40. on_use = minetest.item_eat(3.5),
  41. })
  42. --minetest.register_craftitem("mtfoods:cake", {
  43. -- description = "Cake",
  44. -- inventory_image = "mtfoods_simple_cake.png",
  45. -- on_use = minetest.item_eat(3),
  46. --})
  47. --
  48. --minetest.register_craftitem("mtfoods:chocolate_cake", {
  49. -- description = "Chocolate Cake",
  50. -- inventory_image = "mtfoods_chocolate_cake.png",
  51. -- on_use = minetest.item_eat(5),
  52. --})
  53. --
  54. --minetest.register_craftitem("mtfoods:carrot_cake", {
  55. -- description = "Carrot Cake",
  56. -- inventory_image = "mtfoods_carrot_cake.png",
  57. -- on_use = minetest.item_eat(4),
  58. --})
  59. --minetest.register_craftitem("mtfoods:apple_pie", {
  60. -- description = "Apple Pie",
  61. -- inventory_image = "mtfoods_apple_pie.png",
  62. -- on_use = minetest.item_eat(5),
  63. --})
  64. --minetest.register_craftitem("mtfoods:rhubarb_pie", {
  65. -- description = "Rhubarb Pie",
  66. -- inventory_image = "mtfoods_rhubarb_pie.png",
  67. -- on_use = minetest.item_eat(5),
  68. --})
  69. --minetest.register_craftitem("mtfoods:banana_pie", {
  70. -- description = "Banana Cream Pie",
  71. -- inventory_image = "mtfoods_banana_pie.png",
  72. -- on_use = minetest.item_eat(5),
  73. --})
  74. --minetest.register_craftitem("mtfoods:pumpkin_pie", {
  75. -- description = "Pumpkin Pie",
  76. -- inventory_image = "mtfoods_pumpkin_pie.png",
  77. -- on_use = minetest.item_eat(5),
  78. --})
  79. --minetest.register_craftitem("mtfoods:cookies", {
  80. -- description = "Cookies",
  81. -- inventory_image = "mtfoods_cookies.png",
  82. -- on_use = minetest.item_eat(3),
  83. --})
  84. -- Crafting --
  85. minetest.register_craft({
  86. output = "mtfoods:dandelion_milk 2",
  87. recipe = {
  88. {'','flowers:dandelion_yellow', ''},
  89. {'mtfoods:sugar', 'flowers:dandelion_yellow', 'mtfoods:sugar'},
  90. {'', 'vessels:drinking_glass', ''},
  91. }
  92. })
  93. minetest.register_craft({
  94. type = "shapeless",
  95. output = "mtfoods:sugar 3",
  96. recipe = {'default:papyrus'}
  97. })
  98. minetest.register_craft({
  99. output = "mtfoods:short_bread",
  100. recipe = {
  101. {'mtfoods:dandelion_milk'},
  102. {ing.bread},
  103. {'mtfoods:sugar'},
  104. }
  105. })
  106. minetest.register_craft({
  107. output = "mtfoods:cream",
  108. recipe = {
  109. {'mtfoods:dandelion_milk'},
  110. {'mtfoods:sugar'},
  111. }
  112. })
  113. minetest.register_craft({
  114. output = "mtfoods:chocolate 5",
  115. recipe = {
  116. {'mtfoods:sugar', 'mtfoods:dandelion_milk', 'mtfoods:sugar'},
  117. {ing.cocoa, ing.cocoa, ing.cocoa},
  118. {'mtfoods:sugar', 'mtfoods:dandelion_milk', 'mtfoods:sugar'},
  119. }
  120. })
  121. minetest.register_craft({
  122. output = "mtfoods:cupcake",
  123. recipe = {
  124. {'mtfoods:cream'},
  125. {'mtfoods:short_bread'},
  126. {'default:paper'},
  127. }
  128. })
  129. minetest.register_craft({
  130. output = "mtfoods:strawberry_shortcake",
  131. recipe = {
  132. {'mtfoods:cream', ing.strawberry, 'mtfoods:cream'},
  133. {ing.strawberry, 'mtfoods:short_bread', ing.strawberry},
  134. }
  135. })
  136. minetest.register_craft({
  137. output = "mtfoods:cake",
  138. recipe = {
  139. {'', 'mtfoods:sugar', ''},
  140. {'mtfoods:dandelion_milk', ing.bread, 'mtfoods:dandelion_milk'},
  141. {'', 'mtfoods:sugar', ''},
  142. }
  143. })
  144. minetest.register_craft({
  145. output = "mtfoods:chocolate_cake",
  146. recipe = {
  147. {'mtfoods:chocolate'},
  148. {'mtfoods:cake'},
  149. }
  150. })
  151. minetest.register_craft({
  152. output = "mtfoods:carrot_cake",
  153. recipe = {
  154. {'', ing.carrot, ''},
  155. {ing.cocoa, 'mtfoods:cake', ing.cocoa},
  156. }
  157. })
  158. minetest.register_craft({
  159. output = "mtfoods:pie_crust",
  160. recipe = {
  161. {ing.bread, ing.flour},
  162. {ing.flour, 'mtfoods:sugar'},
  163. }
  164. })
  165. minetest.register_craft({
  166. output = "mtfoods:apple_pie",
  167. recipe = {
  168. {ing.apple, ing.apple, ing.apple},
  169. {'', 'mtfoods:pie_crust', ''},
  170. }
  171. })
  172. minetest.register_craft({
  173. output = "mtfoods:rhubarb_pie",
  174. recipe = {
  175. {ing.rhubarb, ing.rhubarb, ing.rhubarb},
  176. {'', 'mtfoods:pie_crust', ''},
  177. }
  178. })
  179. minetest.register_craft({
  180. output = "mtfoods:banana_pie",
  181. recipe = {
  182. {ing.banana, 'mtfoods:cream', ing.banana},
  183. {'', 'mtfoods:pie_crust', ''},
  184. }
  185. })
  186. minetest.register_craft({
  187. output = "mtfoods:pumpkin_pie",
  188. recipe = {
  189. {'mtfoods:cream', ing.pumpkin, 'mtfoods:cream'},
  190. {'', 'mtfoods:pie_crust', ''},
  191. }
  192. })
  193. minetest.register_craft({
  194. output = "mtfoods:boston_cream",
  195. recipe = {
  196. {'mtfoods:cream', 'mtfoods:chocolate', 'mtfoods:cream'},
  197. {'', 'mtfoods:pie_crust', ''},
  198. }
  199. })
  200. minetest.register_craft({
  201. output = "mtfoods:cookies",
  202. recipe = {
  203. {'', 'mtfoods:chocolate', ''},
  204. {'mtfoods:chocolate', 'mtfoods:cream', 'mtfoods:chocolate'},
  205. {'', 'mtfoods:chocolate', ''},
  206. }
  207. })
  208. -- The 3d nodeboxes --
  209. minetest.register_node("mtfoods:cake",{
  210. drawtype="nodebox",
  211. paramtype = "light",
  212. description = "Cake",
  213. on_use = minetest.item_eat(3),
  214. groups = {cracky=1,choppy=1,crumbly=1,oddly_breakable_by_hand=1},
  215. tiles = {"mtfoods_cake_top.png","mtfoods_cake_bottom.png","mtfoods_cake_side.png","mtfoods_cake_side.png","mtfoods_cake_side.png","mtfoods_cake_side.png"},
  216. node_box = {
  217. type = "fixed",
  218. fixed = {
  219. {-0.375000,-0.500000,-0.375000,0.375000,-0.187500,0.375000}, --NodeBox 1
  220. {-0.312500,-0.500000,-0.312500,0.312500,-0.062500,0.312500}, --NodeBox 2
  221. }
  222. }
  223. })
  224. minetest.register_node("mtfoods:chocolate_cake",{
  225. drawtype="nodebox",
  226. description = "Chocolate Cake",
  227. paramtype = "light",
  228. on_use = minetest.item_eat(5),
  229. groups = {cracky=1,choppy=1,crumbly=1,oddly_breakable_by_hand=1},
  230. tiles = {"mtfoods_cake_ctop.png","mtfoods_cake_cbottom.png","mtfoods_cake_cside.png","mtfoods_cake_cside.png","mtfoods_cake_cside.png","mtfoods_cake_cside.png"},
  231. node_box = {
  232. type = "fixed",
  233. fixed = {
  234. {-0.375000,-0.500000,-0.375000,0.375000,-0.187500,0.375000}, --NodeBox 1
  235. {-0.312500,-0.500000,-0.312500,0.312500,-0.062500,0.312500}, --NodeBox 2
  236. }
  237. }
  238. })
  239. minetest.register_node("mtfoods:carrot_cake",{
  240. drawtype = "nodebox",
  241. description = "Carrot Cake",
  242. on_use = minetest.item_eat(4),
  243. groups = {cracky=1,choppy=1,crumbly=1,oddly_breakable_by_hand=1},
  244. tiles = {"mtfoods_cake_atop.png","mtfoods_cake_bottom.png","mtfoods_cake_aside.png","mtfoods_cake_aside.png","mtfoods_cake_aside.png","mtfoods_cake_aside.png"},
  245. paramtype = "light",
  246. node_box = {
  247. type = "fixed",
  248. fixed = {
  249. {-0.375000,-0.500000,-0.375000,0.375000,-0.187500,0.375000}, --NodeBox 1
  250. {-0.312500,-0.500000,-0.312500,0.312500,-0.062500,0.312500}, --NodeBox 2
  251. }
  252. }
  253. })
  254. minetest.register_node("mtfoods:apple_pie",{
  255. drawtype = "nodebox",
  256. paramtype = "light",
  257. description = "Apple Pie",
  258. on_use = minetest.item_eat(5),
  259. groups = {cracky=1,choppy=1,crumbly=1,oddly_breakable_by_hand=1},
  260. tiles = {"mtfoods_apie_top.png","mtfoods_pie_bottom.png","mtfoods_pie_side.png","mtfoods_pie_side.png","mtfoods_pie_side.png","mtfoods_pie_side.png"},
  261. node_box = {
  262. type = "fixed",
  263. fixed = {
  264. {-0.375000,-0.312500,-0.375000,0.375000,-0.125000,0.375000}, --NodeBox 1
  265. {-0.312500,-0.437500,-0.312500,0.312500,-0.062500,0.312500}, --NodeBox 2
  266. {-0.250000,-0.500000,-0.250000,0.250000,-0.125000,0.250000}, --NodeBox 3
  267. }
  268. }
  269. })
  270. minetest.register_node("mtfoods:rhubarb_pie",{
  271. drawtype="nodebox",
  272. paramtype = "light",
  273. description = "Rhubarb Pie",
  274. on_use = minetest.item_eat(5),
  275. groups = {cracky=1,choppy=1,crumbly=1,oddly_breakable_by_hand=1},
  276. tiles = {"mtfoods_rpie_top.png","mtfoods_pie_bottom.png","mtfoods_pie_side.png","mtfoods_pie_side.png","mtfoods_pie_side.png","mtfoods_pie_side.png"},
  277. node_box = {
  278. type = "fixed",
  279. fixed = {
  280. {-0.375000,-0.312500,-0.375000,0.375000,-0.125000,0.375000}, --NodeBox 1
  281. {-0.312500,-0.437500,-0.312500,0.312500,-0.062500,0.312500}, --NodeBox 2
  282. {-0.250000,-0.500000,-0.250000,0.250000,-0.125000,0.250000}, --NodeBox 3
  283. }
  284. }
  285. })
  286. minetest.register_node("mtfoods:banana_pie",{
  287. drawtype="nodebox",
  288. paramtype = "light",
  289. description = "Banana Pie",
  290. on_use = minetest.item_eat(5),
  291. groups = {cracky=1,choppy=1,crumbly=1,oddly_breakable_by_hand=1},
  292. tiles = {"mtfoods_bpie_top.png","mtfoods_pie_bottom.png","mtfoods_pie_side.png","mtfoods_pie_side.png","mtfoods_pie_side.png","mtfoods_pie_side.png"},
  293. node_box = {
  294. type = "fixed",
  295. fixed = {
  296. {-0.375000,-0.312500,-0.375000,0.375000,-0.125000,0.375000}, --NodeBox 1
  297. {-0.312500,-0.437500,-0.312500,0.312500,-0.062500,0.312500}, --NodeBox 2
  298. {-0.250000,-0.500000,-0.250000,0.250000,-0.125000,0.250000}, --NodeBox 3
  299. }
  300. }
  301. })
  302. minetest.register_node("mtfoods:pumpkin_pie",{
  303. drawtype="nodebox",
  304. paramtype = "light",
  305. description = "Pumpkin Pie",
  306. on_use = minetest.item_eat(5),
  307. groups = {cracky=1,choppy=1,crumbly=1,oddly_breakable_by_hand=1},
  308. tiles = {"mtfoods_ppie_top.png","mtfoods_pie_bottom.png","mtfoods_pie_side.png","mtfoods_pie_side.png","mtfoods_pie_side.png","mtfoods_pie_side.png"},
  309. node_box = {
  310. type = "fixed",
  311. fixed = {
  312. {-0.375000,-0.312500,-0.375000,0.375000,-0.125000,0.375000}, --NodeBox 1
  313. {-0.312500,-0.437500,-0.312500,0.312500,-0.062500,0.312500}, --NodeBox 2
  314. {-0.250000,-0.500000,-0.250000,0.250000,-0.125000,0.250000}, --NodeBox 3
  315. }
  316. }
  317. })
  318. minetest.register_node("mtfoods:boston_cream",{
  319. drawtype="nodebox",
  320. paramtype = "light",
  321. description = "Boston Cream Pie",
  322. on_use = minetest.item_eat(5),
  323. groups = {cracky=1,choppy=1,crumbly=1,oddly_breakable_by_hand=1},
  324. tiles = {"mtfoods_cake_cbottom.png","mtfoods_pie_bottom.png","mtfoods_bcpie_side.png","mtfoods_bcpie_side.png","mtfoods_bcpie_side.png","mtfoods_bcpie_side.png"},
  325. node_box = {
  326. type = "fixed",
  327. fixed = {
  328. {-0.375000,-0.312500,-0.375000,0.375000,-0.125000,0.375000}, --NodeBox 1
  329. {-0.312500,-0.437500,-0.312500,0.312500,-0.062500,0.312500}, --NodeBox 2
  330. {-0.250000,-0.500000,-0.250000,0.250000,-0.125000,0.250000}, --NodeBox 3
  331. }
  332. }
  333. })
  334. minetest.register_node("mtfoods:cookies",{
  335. drawtype = "nodebox",
  336. paramtype = "light",
  337. description = "Cookies",
  338. on_use = minetest.item_eat(3),
  339. groups = {cracky=1,choppy=1,crumbly=1,oddly_breakable_by_hand=1},
  340. tiles = {"mtfoods_cookies.png","mtfoods_cookies.png","mtfoods_cookies.png","mtfoods_cookies.png","mtfoods_cookies.png","mtfoods_cookies.png"},
  341. node_box = {
  342. type = "fixed",
  343. fixed = {
  344. {-0.125000,-0.500000,-0.250000,0.250000,-0.312500,0.125000}, --NodeBox 1
  345. {-0.187500,-0.312500,-0.187500,0.187500,-0.125000,0.187500}, --NodeBox 2
  346. {-0.250000,-0.125000,-0.125000,0.125000,0.062500,0.250000}, --NodeBox 3
  347. }
  348. }
  349. })
  350. minetest.register_node("mtfoods:chocolate",{
  351. drawtype = "nodebox",
  352. paramtype = "light",
  353. description = "Chocolate Bars",
  354. on_use = minetest.item_eat(2),
  355. groups = {cracky=1,choppy=1,crumbly=1,oddly_breakable_by_hand=1},
  356. tiles = {"mtfoods_chocolate.png","mtfoods_chocolate.png","mtfoods_chocolate.png","mtfoods_chocolate.png","mtfoods_chocolate.png","mtfoods_chocolate.png"},
  357. node_box = {
  358. type = "fixed",
  359. fixed = {
  360. {-0.312500,-0.500000,-0.187500,0.312500,-0.375000,0.187500}, --NodeBox 1
  361. {-0.250000,-0.500000,-0.125000,0.250000,-0.312500,0.125000}, --NodeBox 2
  362. }
  363. }
  364. })
  365. minetest.register_node("mtfoods:cupcake",{
  366. drawtype = "nodebox",
  367. paramtype = "light",
  368. description = "Cupcakes",
  369. on_use = minetest.item_eat(3.5),
  370. groups = {cracky=1,choppy=1,crumbly=1,oddly_breakable_by_hand=1},
  371. tiles = {"mtfoods_cupcake_top.png","mtfoods_cake_bottom.png","mtfoods_cupcake_side.png","mtfoods_cupcake_side.png","mtfoods_cupcake_side.png","mtfoods_cupcake_side.png"},
  372. node_box = {
  373. type = "fixed",
  374. fixed = {
  375. {-0.187500,-0.500000,-0.187500,0.187500,0.125000,0.187500},
  376. {-0.312500,-0.375000,-0.312500,0.312500,0.000000,0.312500},
  377. }
  378. }
  379. })
  380. -- Finis --