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