ryeoatrice.lua 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175
  1. local S = farming.intllib
  2. --= A nice addition from Ademant's grain mod :)
  3. -- Rye
  4. farming.register_plant("farming:rye", {
  5. description = S("Rye seed"),
  6. paramtype2 = "meshoptions",
  7. inventory_image = "farming_rye_seed.png",
  8. steps = 8,
  9. place_param2 = 3
  10. })
  11. minetest.override_item("farming:rye", {
  12. description = S("Rye"),
  13. groups = {food_rye = 1, flammable = 4}
  14. })
  15. minetest.override_item("farming:rye_1", {drop = {}})
  16. minetest.override_item("farming:rye_2", {drop = {}})
  17. minetest.override_item("farming:rye_3", {drop = {}})
  18. minetest.register_craft({
  19. output = "farming:flour",
  20. recipe = {
  21. {"farming:rye", "farming:rye", "farming:rye"},
  22. {"farming:rye", "farming:mortar_pestle", ""}
  23. },
  24. replacements = {{"group:food_mortar_pestle", "farming:mortar_pestle"}}
  25. })
  26. -- Oats
  27. farming.register_plant("farming:oat", {
  28. description = S("Oat seed"),
  29. paramtype2 = "meshoptions",
  30. inventory_image = "farming_oat_seed.png",
  31. steps = 8,
  32. place_param2 = 3
  33. })
  34. minetest.override_item("farming:oat", {
  35. description = S("Oats"),
  36. groups = {food_oats = 1, flammable = 4}
  37. })
  38. minetest.override_item("farming:oat_1", {drop = {}})
  39. minetest.override_item("farming:oat_2", {drop = {}})
  40. minetest.override_item("farming:oat_3", {drop = {}})
  41. minetest.register_craft({
  42. output = "farming:flour",
  43. recipe = {
  44. {"farming:oat", "farming:oat", "farming:oat"},
  45. {"farming:oat", "farming:mortar_pestle", ""}
  46. },
  47. replacements = {{"group:food_mortar_pestle", "farming:mortar_pestle"}}
  48. })
  49. -- Rice
  50. farming.register_plant("farming:rice", {
  51. description = S("Rice grains"),
  52. paramtype2 = "meshoptions",
  53. inventory_image = "farming_rice_seed.png",
  54. steps = 8,
  55. place_param2 = 3
  56. })
  57. minetest.override_item("farming:rice", {
  58. description = S("Rice"),
  59. groups = {food_rice = 1, flammable = 4}
  60. })
  61. minetest.override_item("farming:rice_1", {drop = {}})
  62. minetest.override_item("farming:rice_2", {drop = {}})
  63. minetest.override_item("farming:rice_3", {drop = {}})
  64. minetest.register_craftitem("farming:rice_bread", {
  65. description = S("Rice Bread"),
  66. inventory_image = "farming_rice_bread.png",
  67. on_use = minetest.item_eat(5),
  68. groups = {food_rice_bread = 1, flammable = 2}
  69. })
  70. minetest.register_craftitem("farming:rice_flour", {
  71. description = S("Rice Flour"),
  72. inventory_image = "farming_rice_flour.png",
  73. groups = {food_rice_flour = 1, flammable = 1}
  74. })
  75. minetest.register_craft({
  76. output = "farming:rice_flour",
  77. recipe = {
  78. {"farming:rice", "farming:rice", "farming:rice"},
  79. {"farming:rice", "farming:mortar_pestle", ""}
  80. },
  81. replacements = {{"group:food_mortar_pestle", "farming:mortar_pestle"}}
  82. })
  83. minetest.register_craft({
  84. type = "cooking",
  85. cooktime = 15,
  86. output = "farming:rice_bread",
  87. recipe = "farming:rice_flour"
  88. })
  89. -- Multigrain flour
  90. minetest.register_craftitem("farming:flour_multigrain", {
  91. description = S("Multigrain Flour"),
  92. inventory_image = "farming_flour_multigrain.png",
  93. groups = {food_flour = 1, flammable = 1},
  94. })
  95. minetest.register_craft({
  96. type = "shapeless",
  97. output = "farming:flour_multigrain",
  98. recipe = {
  99. "farming:wheat", "farming:barley", "farming:oat",
  100. "farming:rye", "farming:mortar_pestle"
  101. },
  102. replacements = {{"group:food_mortar_pestle", "farming:mortar_pestle"}}
  103. })
  104. -- Multigrain bread
  105. minetest.register_craftitem("farming:bread_multigrain", {
  106. description = S("Multigrain Bread"),
  107. inventory_image = "farming_bread_multigrain.png",
  108. on_use = minetest.item_eat(7),
  109. groups = {food_bread = 1, flammable = 2}
  110. })
  111. minetest.register_craft({
  112. type = "cooking",
  113. cooktime = 15,
  114. output = "farming:bread_multigrain",
  115. recipe = "farming:flour_multigrain"
  116. })
  117. -- Fuels
  118. minetest.register_craft({
  119. type = "fuel",
  120. recipe = "farming:rice_bread",
  121. burntime = 1
  122. })
  123. minetest.register_craft({
  124. type = "fuel",
  125. recipe = "farming:bread_multigrain",
  126. burntime = 1
  127. })
  128. minetest.register_craft({
  129. type = "fuel",
  130. recipe = "farming:rye",
  131. burntime = 1
  132. })
  133. minetest.register_craft({
  134. type = "fuel",
  135. recipe = "farming:oat",
  136. burntime = 1
  137. })
  138. minetest.register_craft({
  139. type = "fuel",
  140. recipe = "farming:rice",
  141. burntime = 1
  142. })