ryeoatrice.lua 3.5 KB

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