I'm trying to make it if a player has a talisman in his offhand it has a 10% chance to double the fish caught pls help

  • Welcome to skUnity!

    Welcome to skUnity! This is a forum where members of the Skript community can communicate and interact. Skript Resource Creators can post their Resources for all to see and use.

    If you haven't done so already, feel free to join our official Discord server to expand your level of interaction with the community!

    Now, what are you waiting for? Join the community now!

  • LOOKING FOR A VERSION OF SKRIPT?

    You can always check out skUnity Downloads for downloads and any other information about Skript!

Domce11

Member
Feb 2, 2024
1
0
1
Code:
on fish:
    if fish state = caught fish:
        if player's offhand tool is {customitems::talisman}:
            set {_chance} to a random integer between 1 and 10
            if {_chance} is 1:
                set {_multi} to 2
                send {_multi} to player

on fish:
    if fish state = caught fish:   
        delete item of fishing caught entity
        set {_chance} to a random integer between 1 and 1000
        if {_chance} is between 1 and 600: #60%
            give player {_chance} of {customitems::codas}