awards.lua 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  1. if minetest.get_modpath("awards") then
  2. awards.register_achievement("farming_coffee", {
  3. title = ("Coffee"),
  4. description = ("You got your first coffee"),
  5. icon = "farming_awards_coffee.png",
  6. trigger = {
  7. type = "eat",
  8. item = "group:coffee",
  9. target = 1
  10. }
  11. })
  12. awards.register_achievement("farming_coffee_silver", {
  13. title = ("Coffee Silver"),
  14. description = ("You got your tenth coffee"),
  15. icon = "farming_awards_coffee_silver.png",
  16. requires="farming_coffee",
  17. trigger = {
  18. type = "eat",
  19. item = "group:coffee",
  20. target = 10
  21. }
  22. })
  23. awards.register_achievement("farming_coffee_gold", {
  24. title = ("Coffee Gold"),
  25. description = ("You had 30 coffee"),
  26. icon = "farming_awards_coffee_gold.png",
  27. requires="farming_coffee_silver",
  28. trigger = {
  29. type = "eat",
  30. item = "group:coffee",
  31. target = 30
  32. }
  33. })
  34. awards.register_achievement("farming_farmer", {
  35. title = ("Advanced Farmer"),
  36. description = ("You are an advanced farmer"),
  37. icon = "farming_awards_farmer.png",
  38. trigger = {
  39. type = "dig",
  40. item = "groups:for_flour",
  41. target = 100
  42. }
  43. })
  44. awards.register_achievement("farming_miller", {
  45. title = ("Farming Miller"),
  46. description = ("You are an advanced miller"),
  47. icon = "farming_awards_miller.png",
  48. trigger = {
  49. type = "craft",
  50. item = "farming:flour",
  51. target = 100
  52. },
  53. prizes = {"farming:mortar_pestle_highlevel","farming:bread 3"},
  54. })
  55. awards.register_achievement("farming_thresher", {
  56. title = ("Farming Thresher"),
  57. description = ("You are an advanced thresher"),
  58. icon = "farming_awards_thresher.png",
  59. trigger = {
  60. type = "craft",
  61. item = "group:for_flour",
  62. target = 100
  63. },
  64. prizes = {"farming:flour 10","farming:bread 5"},
  65. })
  66. end