awards.lua 4.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150
  1. if minetest.get_modpath("awards") then
  2. awards.register_achievement("minerdream_caveman", {
  3. title = ("Caveman"),
  4. description = ("You crafted yourself a flint spear, but what if I told you... in 21th century, there's way better weapons than that!"),
  5. icon = "minerdream_achievement_caveman.png",
  6. trigger = {
  7. type = "craft",
  8. item = "minerdream:spear_flint",
  9. target = 1
  10. }
  11. })
  12. awards.register_achievement("minerdream_armed", {
  13. title = ("Armed!"),
  14. description = ("Craft a handgun"),
  15. icon = "minerdream_achievement_armed.png",
  16. trigger = {
  17. type = "craft",
  18. item = "minerdream:handgun",
  19. target = 1
  20. }
  21. })
  22. awards.register_achievement("minerdream_secondminer", {
  23. title = ("Second place miner"),
  24. description = ("You've found some silver! Head for the gold now."),
  25. icon = "minerdream_achievement_secondminer.png",
  26. background = "awards_bg_mining.png",
  27. trigger = {
  28. type = "dig",
  29. node = "minerdream:stone_with_silver",
  30. target = 1
  31. }
  32. })
  33. awards.register_achievement("minerdream_neatjunk", {
  34. title = ("Neat junk!"),
  35. description = ("Break the most common loot box. I wonder what's inside?"),
  36. icon = "minerdream_achievement_neatjunk.png",
  37. background = "awards_bg_mining.png",
  38. trigger = {
  39. type = "dig",
  40. node = "minerdream:treasure1",
  41. target = 1
  42. }
  43. })
  44. awards.register_achievement("minerdream_metall1", {
  45. title = ("Mined common metals"),
  46. description = ("You mined quite common metals. Keep going."),
  47. icon = "minerdream_achievement_secondminer.png^awards_level1.png",
  48. background = "awards_bg_mining.png",
  49. trigger = {
  50. type = "dig",
  51. node = "group:metall1",
  52. target = 1
  53. }
  54. })
  55. awards.register_achievement("minerdream_metall2", {
  56. title = ("Mined quite uncommon metals"),
  57. description = ("You mined quite uncommon metals. Keep going."),
  58. icon = "minerdream_achievement_secondminer.png^awards_level2.png",
  59. background = "awards_bg_mining.png",
  60. trigger = {
  61. type = "dig",
  62. node = "group:metall2",
  63. target = 1
  64. }
  65. })
  66. awards.register_achievement("minerdream_metall3", {
  67. title = ("Mined almost rare metals"),
  68. description = ("You mined almost rare metals. Keep going."),
  69. icon = "minerdream_achievement_secondminer.png^awards_level3.png",
  70. background = "awards_bg_mining.png",
  71. trigger = {
  72. type = "dig",
  73. node = "group:metall3",
  74. target = 1
  75. }
  76. })
  77. awards.register_achievement("minerdream_metall4", {
  78. title = ("Mined rare metals"),
  79. description = ("You mined rare metals. Keep going."),
  80. icon = "minerdream_achievement_secondminer.png^awards_level4.png",
  81. background = "awards_bg_mining.png",
  82. trigger = {
  83. type = "dig",
  84. node = "group:metall4",
  85. target = 1
  86. }
  87. })
  88. awards.register_achievement("minerdream_metall5", {
  89. title = ("Mined extra rare metals"),
  90. description = ("You mined extra rare metals. Keep going."),
  91. icon = "minerdream_achievement_secondminer.png^awards_level5.png",
  92. background = "awards_bg_mining.png",
  93. trigger = {
  94. type = "dig",
  95. node = "group:metall5",
  96. target = 1
  97. }
  98. })
  99. awards.register_achievement("minerdream_metall6", {
  100. title = ("Mined epic metals"),
  101. description = ("You mined epic metals. Keep going."),
  102. icon = "minerdream_achievement_secondminer.png^awards_level6.png",
  103. background = "awards_bg_mining.png",
  104. trigger = {
  105. type = "dig",
  106. node = "group:metall6",
  107. target = 1
  108. }
  109. })
  110. awards.register_achievement("minerdream_metall7", {
  111. title = ("Mined royal metals"),
  112. description = ("You mined royal metals. Keep going."),
  113. icon = "minerdream_achievement_secondminer.png^awards_level7.png",
  114. background = "awards_bg_mining.png",
  115. trigger = {
  116. type = "dig",
  117. node = "group:metall7",
  118. target = 1
  119. }
  120. })
  121. awards.register_achievement("minerdream_metall8", {
  122. title = ("Mined heroic metals"),
  123. description = ("You mined heroic metals. Keep going."),
  124. icon = "minerdream_achievement_secondminer.png^awards_level8.png",
  125. background = "awards_bg_mining.png",
  126. trigger = {
  127. type = "dig",
  128. node = "group:metall8",
  129. target = 1
  130. }
  131. })
  132. awards.register_achievement("minerdream_health", {
  133. title = ("Maintaining good health"),
  134. description = ("Consume a vitamin pill for the first time"),
  135. icon = "minerdream_achievement_health.png",
  136. trigger = {
  137. type = "eat",
  138. item = "minerdream:vitamin",
  139. target = 1
  140. }
  141. })
  142. end