utensils.lua 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081
  1. local S = farming.intllib
  2. local modname=minetest.get_current_modname()
  3. -- coffee grinder
  4. -- to grind roasted grain seed or roasted coffee beans
  5. minetest.register_craftitem(modname..":coffee_grinder", {
  6. description = S("Coffee Grinder"),
  7. inventory_image = "farming_tool_coffee_grinder.png",
  8. groups = {food_coffee_grinder = 1, flammable = 2},
  9. })
  10. minetest.register_craft({
  11. output = modname..":coffee_grinder",
  12. recipe = {
  13. {"group:wood", "group:stick", "group:wood"},
  14. {"", "group:stone", ""},
  15. }
  16. })
  17. -- flail
  18. -- use to extract seed from wheat/hemp/nettle harvest, leaving straw/fiber
  19. minetest.register_craftitem(modname..":flail", {
  20. description = S("Threshing Flail"),
  21. inventory_image = "farming_tool_flail.png",
  22. groups = {farming_flail = 1, flammable = 2},
  23. })
  24. minetest.register_craft({
  25. output = modname..":flail",
  26. recipe = {
  27. {"", "", "group:stick"},
  28. {"", "group:stick", "group:stick"},
  29. {"group:stick", "", ""},
  30. }
  31. })
  32. -- Trellis
  33. -- some cultured crops need a trellis to grow
  34. minetest.register_craftitem(modname..":trellis", {
  35. description = S("Trellis"),
  36. inventory_image = "farming_tool_trellis.png",
  37. groups = {farming_trellis = 1, flammable = 2},
  38. })
  39. minetest.register_craft({
  40. output = modname..":trellis",
  41. recipe = {
  42. {"", "", ""},
  43. { "group:stick", "","group:stick"},
  44. { "","group:stick", ""},
  45. }
  46. })
  47. -- mortar and pestle -- definition from mod farming by tenplus1
  48. minetest.register_craftitem(modname..":mortar_pestle", {
  49. description = S("Mortar and Pestle"),
  50. inventory_image = "farming_tool_mortar_pestle.png",
  51. groups = {food_mortar_pestle = 1, flammable = 2},
  52. })
  53. minetest.register_craft({
  54. output = modname..":mortar_pestle",
  55. recipe = {
  56. {"group:stone", "group:stick", "group:stone"},
  57. {"", "group:stone", ""},
  58. }
  59. })
  60. minetest.register_craftitem(modname..":mortar_pestle_highlevel", {
  61. description = S("Mortar and Pestle"),
  62. inventory_image = "farming_tool_mortar_pestle_hl.png",
  63. groups = {food_mortar_pestle = 1, flammable = 2},
  64. })
  65. minetest.register_craft({
  66. output = modname..":mortar_pestle_highlevel",
  67. recipe = {
  68. {"default:obsidian", "default:iron_ingot", "default:obsidian"},
  69. {"", "default:obsidian", ""},
  70. }
  71. })