awards.lua 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  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_health", {
  45. title = ("Maintaining good health"),
  46. description = ("Consume a vitamin pill for the first time"),
  47. icon = "minerdream_achievement_health.png",
  48. trigger = {
  49. type = "eat",
  50. item = "minerdream:vitamin",
  51. target = 1
  52. }
  53. })
  54. end