ryeoatrice.lua 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121
  1. --= A nice addition from Ademant's grain mod :)
  2. -- Rye
  3. farming.register_plant("farming:rye", {
  4. description = "Rye seed",
  5. paramtype2 = "meshoptions",
  6. inventory_image = "farming_rye_seed.png",
  7. steps = 8,
  8. place_param2 = 3,
  9. })
  10. minetest.override_item("farming:rye", {
  11. groups = {food_rye = 1, flammable = 4}
  12. })
  13. minetest.register_craft({
  14. type = "shapeless",
  15. output = "farming:flour",
  16. recipe = {
  17. "farming:rye", "farming:rye", "farming:rye", "farming:rye",
  18. "farming:mortar_pestle"
  19. },
  20. replacements = {{"group:food_mortar_pestle", "farming:mortar_pestle"}},
  21. })
  22. -- Oats
  23. farming.register_plant("farming:oat", {
  24. description = "Oat seed",
  25. paramtype2 = "meshoptions",
  26. inventory_image = "farming_oat_seed.png",
  27. steps = 8,
  28. place_param2 = 3,
  29. })
  30. minetest.override_item("farming:oat", {
  31. groups = {food_oats = 1, flammable = 4}
  32. })
  33. minetest.register_craft({
  34. type = "shapeless",
  35. output = "farming:flour",
  36. recipe = {
  37. "farming:oat", "farming:oat", "farming:oat", "farming:oat",
  38. "farming:mortar_pestle"
  39. },
  40. replacements = {{"group:food_mortar_pestle", "farming:mortar_pestle"}},
  41. })
  42. -- Rice
  43. farming.register_plant("farming:rice", {
  44. description = "Rice grains",
  45. paramtype2 = "meshoptions",
  46. inventory_image = "farming_rice_seed.png",
  47. steps = 8,
  48. place_param2 = 3,
  49. })
  50. minetest.override_item("farming:rice", {
  51. groups = {food_rice = 1, flammable = 4}
  52. })
  53. minetest.register_craftitem("farming:rice_bread", {
  54. description = "Rice Bread",
  55. inventory_image = "farming_rice_bread.png",
  56. on_use = minetest.item_eat(5),
  57. groups = {food_rice_bread = 1, flammable = 2},
  58. })
  59. minetest.register_craftitem("farming:rice_flour", {
  60. description = "Rice Flour",
  61. inventory_image = "farming_rice_flour.png",
  62. groups = {food_rice_flour = 1, flammable = 1},
  63. })
  64. minetest.register_craft({
  65. type = "shapeless",
  66. output = "farming:rice_flour",
  67. recipe = {
  68. "farming:rice", "farming:rice", "farming:rice", "farming:rice",
  69. "farming:mortar_pestle"
  70. },
  71. replacements = {{"group:food_mortar_pestle", "farming:mortar_pestle"}},
  72. })
  73. minetest.register_craft({
  74. type = "cooking",
  75. cooktime = 15,
  76. output = "farming:rice_bread",
  77. recipe = "farming:rice_flour"
  78. })
  79. -- Fuels
  80. minetest.register_craft({
  81. type = "fuel",
  82. recipe = "farming:rice_bread",
  83. burntime = 1,
  84. })
  85. minetest.register_craft({
  86. type = "fuel",
  87. recipe = "farming:rye",
  88. burntime = 1,
  89. })
  90. minetest.register_craft({
  91. type = "fuel",
  92. recipe = "farming:oat",
  93. burntime = 1,
  94. })
  95. minetest.register_craft({
  96. type = "fuel",
  97. recipe = "farming:rice",
  98. burntime = 1,
  99. })