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.

foods.lua 2.2KB

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