foods.lua 2.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192
  1. -- Foods --
  2. --MLT--
  3. local ing = mtfoods.ingredients
  4. minetest.register_craftitem( "mtfoods:mlt_burger", {
  5. description = "MLT (Mutton, Lettuce, Tomato)",
  6. inventory_image = "mtfoods_mlt.png",
  7. wield_image = "mtfoods_mlt.png",
  8. on_use = minetest.item_eat(6.5),
  9. })
  10. minetest.register_craft({
  11. output = "mtfoods:mlt_burger",
  12. recipe = {
  13. {ing.bread, ing.meat, ''},
  14. {'', 'default:junglegrass', ''},
  15. {'', ing.tomato, ing.bread},
  16. }
  17. })
  18. --Potato uses--
  19. minetest.register_craftitem( "mtfoods:potato_slices", {
  20. description = "Sliced Potato",
  21. inventory_image = "mtfoods_potato_slices.png",
  22. wield_image = "mtfoods_potato_slices.png",
  23. on_use = minetest.item_eat(2),
  24. })
  25. minetest.register_craft({
  26. output = "mtfoods:potato_slices",
  27. recipe = {
  28. {ing.potato},
  29. }
  30. })
  31. minetest.register_craftitem( "mtfoods:potato_chips", {
  32. description = "Potato Chips",
  33. inventory_image = "mtfoods_potato_chips.png",
  34. wield_image = "mtfoods_potato_chips.png",
  35. on_use = minetest.item_eat(3),
  36. })
  37. minetest.register_craft({
  38. type = "cooking",
  39. output = "mtfoods:potato_chips",
  40. recipe = "mtfoods:potato_slices",
  41. })
  42. -- Medicine --
  43. minetest.register_craftitem( "mtfoods:medicine", {
  44. description = "Medicine",
  45. inventory_image = "mtfoods_medicine.png",
  46. wield_image = "mtfoods_medicine.png",
  47. on_use = minetest.item_eat(8),
  48. })
  49. minetest.register_craft({
  50. output = "mtfoods:medicine",
  51. recipe = {
  52. {'', ing.wheat, ''},
  53. {'mtfoods:dandelion_milk', 'default:junglegrass', 'mtfoods:chocolate'},
  54. {'', 'vessels:glass_bottle', ''},
  55. }
  56. })
  57. minetest.register_node( "mtfoods:casserole",{
  58. drawtype = "nodebox",
  59. description = "Casserole",
  60. paramtype = "light",
  61. on_use = minetest.item_eat(5),
  62. groups = {cracky=1,choppy=1,crumbly=1,oddly_breakable_by_hand=1},
  63. tiles = {"mtfoods_casserole.png","mtfoods_cake_bottom.png","mtfoods_cake_bottom.png","mtfoods_cake_bottom.png","mtfoods_cake_bottom.png","mtfoods_cake_bottom.png"},
  64. node_box = {
  65. type = "fixed",
  66. fixed = {
  67. {-0.375000,-0.500000,-0.375000,0.375000,-0.187500,0.375000},
  68. {-0.312500,-0.500000,-0.312500,0.312500,-0.062500,0.312500},
  69. }
  70. }
  71. })
  72. minetest.register_craft({
  73. output = "mtfoods:casserole",
  74. recipe = {
  75. {ing.carrot, ing.potato, ing.tomato},
  76. {'', ing.bread, ''},
  77. }
  78. })