Paste #67302: Untitled Paste

Date: 2020/04/10 18:37:00 UTC-07:00
Type: Denizen Script

View Raw Paste Download This Paste
Copy Link


SpecialFishingRod:
    type: item
    material: 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]> >= 0 && <[roll]> < 100:
        - define quality Rare0
    - else if <[roll]> >= 100 && <[roll]> < 900:
        - define quality Rare1
    - else if <[roll]> >= 900 && <[roll]> < 995:
        - define quality Rare2
    - else if <[roll]> >= 995:
        - define quality Rare3

        - if <[quality]> == Rare0:
            - stop
        - else:
        - if <[quality]> == Rare1:
            - determine ShipTicket
            - stop

        - else:
            - if <[quality]> == Rare2:
                - random:
                    - determine RareFish1
                    - determine RareFish2
                    - determine RareFish3
                    - determine RareFish4

        - else:
            - if <[quality]> == Rare3:
                - determine SuperRFish

RareCatch:
    type: world
    debug: true
    events:
        on player fishes while CAUGHT_FISH:
            - narrate "<&e>You cought something special!"
            - give <proc[SpecialFishingRodLoot]>
#                - if <[quality]> == Rare1:
#                    - narrate "<&e>You cought something special!"
#                    - give <proc[SpecialFishingRodLoot]>
#                    - else:
#                        - if <[quality> == Rare2:
#                            - narrate "<&e> You finally cought a <&6>Rare Fish!"
#                            - else:
#                                - if <[quality]> == Rare3:
#                                - narrate "<&e> Woah! Another one of those?!"