Date: 2020/04/10 13:03:00 UTC-07:00
Type: Denizen Script
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
SpecialFishingRod:
type: item
material: i@fishing_rod
display name: <&e>Fisherman's Fishing Rod
lore:
- The Fisherman was able
- to catch rare fishes only
- with this rod. Something
- must be special about it.
enchantments:
- lure:3
- unbreaking:3
mechanisms:
flags: HIDE_ALL
SpecialFishingRodLoot:
type: procedure
debug: true
script:
- define roll <util.random.int[1].to[1000]>
- if <[roll]> >= 1 && <[roll]> < 900:
- define quality Rare1
- else:
- if <[roll]> >= 900 && <[roll]> < 995:
- define quality Rare2
- else:
- if <[roll]> >= 995:
- define quality Rare3
- if <[quality]> == Rare1:
- random:
- determine ShipTicket
- else:
- if <[quality]> == Rare2:
- random:
- determine RareFish1
- determine RareFish2
- determine RareFish3
- determine RareFish4
- else:
- if <[quality]> == Rare3:
- random:
- determine SuperRFish
RareCatch:
type: world
debug: true
events:
on player fishes:
- if <proc[SpecialFishingRodLoot].context[<item[SpecialFishingRod]>]>:
- inject locally <player.item_in_hand.script.name[SpecialFishingRodLoot]
- stop