minetest fishing mod
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

84 lines
3.6KB

  1. fishing_setting.prizes["rivers"] = {}
  2. fishing_setting.prizes["rivers"]["little"] = {
  3. {"fishing", "fish_raw", 0, "a Fish."},
  4. {"fishing", "carp_raw", 0, "a Carp."},
  5. }
  6. fishing_setting.prizes["rivers"]["big"] = {
  7. {"fishing", "pike_raw", 0, "a Northern Pike."},
  8. {"fishing", "perch_raw", 0, "a Perch."},
  9. {"fishing", "catfish_raw", 0, "a Catfish."},
  10. }
  11. fishing_setting.prizes["sea"] = {}
  12. fishing_setting.prizes["sea"]["little"] = {
  13. {"fishing", "clownfish_raw", 0, "a Clownfish."},
  14. {"fishing", "bluewhite_raw", 0, "a Bluewhite."},
  15. {"fishing", "exoticfish_raw", 0, "a Exoticfish."},
  16. }
  17. fishing_setting.prizes["sea"]["big"] = {
  18. {"fishing", "shark_raw", 0, "a small Shark."},
  19. }
  20. if (minetest.get_modpath("flowers_plus")) then -- exception flowers_plus register flowers:*
  21. minetest.register_alias("flowers_plus:seaweed", "flowers:seaweed")
  22. end
  23. local stuff = {
  24. -- mod item wear message ("You caught "..) chance
  25. {"flowers_plus", "seaweed", 0, "some Seaweed.", 10},
  26. {"farming", "string", 0, "a String.", 5},
  27. {"trunks", "twig_1", 0, "a Twig.", 5},
  28. {"mobs", "rat", 0, "a Rat.", 5},
  29. {"default", "stick", 0, "a Twig.", 5},
  30. {"seaplants", "kelpgreen", 0, "a Green Kelp.", 5},
  31. {"3d_armor", "boots_steel", "random", "some very old Boots.", 2},
  32. {"3d_armor", "leggings_gold", "random", "some very old Leggings.", 5},
  33. {"3d_armor", "chestplate_bronze", "random", "a very old ChestPlate.", 5},
  34. {"fishing", "pole_wood", "randomtools", "an old Fishing Pole.", 10},
  35. {"3d_armor", "boots_wood", "random", "some very old Boots.", 5},
  36. {"maptools", "gold_coin", 0, "a Gold Coin.", 1},
  37. {"3d_armor", "helmet_diamond", "random", "a very old Helmet.", 1},
  38. {"shields", "shield_enhanced_cactus", "random", "a very old Shield.", 2},
  39. {"default", "sword_bronze", "random", "a very old Sword.", 2},
  40. {"default", "sword_mese", "random", "a very old Sword.", 2},
  41. {"default", "sword_nyan", "random", "a very old Sword.", 2},
  42. }
  43. fishing_setting.prizes["stuff"] = {}
  44. local nrmin = 1
  45. for i,v in ipairs(stuff) do
  46. if minetest.get_modpath(v[1]) ~= nil and minetest.registered_items[v[1]..":"..v[2]] ~= nil then
  47. table.insert(fishing_setting.prizes["stuff"], {v[1], v[2], v[3], v[4], nrmin, v[5]})
  48. nrmin = nrmin + v[5]
  49. end
  50. end
  51. local treasure = {
  52. {"default", "mese", 0, "a mese block."},
  53. {"default", "nyancat", 0, "a Nyan Cat."},
  54. {"default", "diamondblock", 0, "a Diamond Block."},
  55. }
  56. fishing_setting.prizes["treasure"] = fishing_setting.func.ignore_mod(treasure)
  57. -- to true fish mobs
  58. fishing_setting.prizes["true_fish"] = {little = {}, big = {}}
  59. --to mobs_fish modpack
  60. if (minetest.get_modpath("mobs_fish")) then
  61. fishing_setting.prizes["true_fish"]["little"]["mobs_fish:clownfish"] = {"mobs_fish", "clownfish", 0, "a Clownfish."}
  62. fishing_setting.prizes["true_fish"]["little"]["mobs_fish:tropical"] = {"mobs_fish", "tropical", 0, "a tropical fish."}
  63. end
  64. --to mobs_fish modpack
  65. if (minetest.get_modpath("mobs_sharks")) then
  66. fishing_setting.prizes["true_fish"]["big"]["mobs_sharks:shark_lg"] = {"mobs_sharks", "shark_lg", 0, "a small Shark."}
  67. fishing_setting.prizes["true_fish"]["big"]["mobs_sharks:shark_md"] = {"mobs_sharks", "shark_md", 0, "a small Shark."}
  68. fishing_setting.prizes["true_fish"]["big"]["mobs_sharks:shark_sm"] = {"mobs_sharks", "shark_sm", 0, "a small Shark."}
  69. end