ryeoatrice.lua 3.5 KB

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