ethereal.lua 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687
  1. -- banana_and_chocolate_sandwich, strawberry jam and strawberry_jam_sandwich are added.
  2. minetest.register_craftitem("sandwiches:strawberry_jam", {
  3. description = "Strawberry jam",
  4. on_use = minetest.item_eat(2),
  5. groups = {food_jam = 1, },
  6. inventory_image = "strawberry_jam.png"
  7. })
  8. minetest.register_craftitem("sandwiches:strawberry_jam_sandwich", {
  9. description = "Strawberry Jam Sandwich",
  10. on_use = minetest.item_eat(7, "sandwiches:bread_crumbs"),
  11. groups = {food_sandwich = 1},
  12. inventory_image = "strawberry_jam_sandwich.png"
  13. })
  14. minetest.register_craftitem("sandwiches:banana_and_chocolate_sandwich", {
  15. description = "Banana and chocolate sandwich",
  16. on_use = minetest.item_eat(7, "sandwiches:bread_crumbs"),
  17. groups = {food_sandwich = 1},
  18. inventory_image = "banana_and_chocolate_sandwich.png"
  19. })
  20. minetest.register_craftitem("sandwiches:elvis_sandwich", {
  21. description = "Elvis sandwich",
  22. on_use = minetest.item_eat(8, "sandwiches:bread_crumbs"),
  23. groups = {food_sandwich = 1},
  24. inventory_image = "elvis_sandwich.png"
  25. })
  26. -- CRAFTS --
  27. minetest.register_craft({
  28. output = "sandwiches:strawberry_jam",
  29. recipe = {
  30. {"group:food_strawberry", "group:food_sugar", "group:food_strawberry"},
  31. {"group:food_sugar", "group:food_pot", "group:food_sugar"},
  32. {"group:food_strawberry", "group:food_sugar", "group:food_strawberry"},
  33. },
  34. replacements = {{"group:food_pot", "group:food_pot"}}
  35. })
  36. minetest.register_craft({
  37. output = "sandwiches:strawberry_jam",
  38. recipe = {
  39. {"ethereal:strawberry", "group:food_sugar", "ethereal:strawberry"},
  40. {"group:food_sugar", "group:food_pot", "group:food_sugar"},
  41. {"ethereal:strawberry", "group:food_sugar", "ethereal:strawberry"},
  42. },
  43. replacements = {{"group:food_pot", "group:food_pot"}}
  44. })
  45. minetest.register_craft({
  46. output = "sandwiches:strawberry_jam_sandwich",
  47. recipe = {
  48. {"", "sandwiches:bread_slice", ""},
  49. {"sandwiches:strawberry_jam", "sandwiches:strawberry_jam", "sandwiches:strawberry_jam"},
  50. {"", "sandwiches:bread_slice", ""},
  51. }
  52. })
  53. minetest.register_craft({
  54. output = "sandwiches:banana_and_chocolate_sandwich",
  55. recipe = {
  56. {"", "sandwiches:bread_slice", ""},
  57. {"group:food_banana", "farming:chocolate_dark", "group:food_banana"},
  58. {"", "sandwiches:bread_slice", ""},
  59. }
  60. })
  61. minetest.register_craft({
  62. output = "sandwiches:banana_and_chocolate_sandwich",
  63. recipe = {
  64. {"", "sandwiches:bread_slice", ""},
  65. {"ethereal:banana", "farming:chocolate_dark", "ethereal:banana"},
  66. {"", "sandwiches:bread_slice", ""},
  67. }
  68. })
  69. minetest.register_craft({
  70. output = "sandwiches:elvis_sandwich",
  71. recipe = {
  72. {"", "sandwiches:bread_slice", ""},
  73. {"ethereal:banana", "sandwiches:peanut_butter", "sandwiches:crispy_bacon"},
  74. {"", "sandwiches:bread_slice", ""},
  75. }
  76. })