hoes.lua 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. -- farming/hoes.lua
  2. -- support for MT game translation.
  3. local S = farming.get_translator
  4. farming.register_hoe(":farming:hoe_wood", {
  5. description = S("Wooden Hoe"),
  6. inventory_image = "farming_tool_woodhoe.png",
  7. max_uses = 30,
  8. material = "group:wood",
  9. groups = {hoe = 1, flammable = 2},
  10. })
  11. farming.register_hoe(":farming:hoe_stone", {
  12. description = S("Stone Hoe"),
  13. inventory_image = "farming_tool_stonehoe.png",
  14. max_uses = 90,
  15. material = "group:stone",
  16. groups = {hoe = 1}
  17. })
  18. farming.register_hoe(":farming:hoe_steel", {
  19. description = S("Steel Hoe"),
  20. inventory_image = "farming_tool_steelhoe.png",
  21. max_uses = 500,
  22. material = "default:steel_ingot",
  23. groups = {hoe = 1}
  24. })
  25. -- The following are deprecated by removing the 'material' field to prevent
  26. -- crafting and removing from creative inventory, to cause them to eventually
  27. -- disappear from worlds. The registrations should be removed in a future
  28. -- release.
  29. farming.register_hoe(":farming:hoe_bronze", {
  30. description = S("Bronze Hoe"),
  31. inventory_image = "farming_tool_bronzehoe.png",
  32. max_uses = 220,
  33. groups = {hoe = 1, not_in_creative_inventory = 1},
  34. })
  35. farming.register_hoe(":farming:hoe_mese", {
  36. description = S("Mese Hoe"),
  37. inventory_image = "farming_tool_mesehoe.png",
  38. max_uses = 350,
  39. groups = {hoe = 1, not_in_creative_inventory = 1},
  40. })
  41. farming.register_hoe(":farming:hoe_diamond", {
  42. description = S("Diamond Hoe"),
  43. inventory_image = "farming_tool_diamondhoe.png",
  44. max_uses = 500,
  45. groups = {hoe = 1, not_in_creative_inventory = 1},
  46. })