how to make this

  • 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 comminuty!

    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!

Status
Not open for further replies.
i want make fishing script like this
how to made it?

i use 2.5 alpha1
Is this kinda what your wanting? If so, you need skellet. But i also dont really know what your wanting also. Can you explain it better? :emoji_slight_smile:

Code:
on fishing:
    if fish state is CAUGHT_FISH:
        CODE HERE:
 
here.
To set the custom drops simply do /customfish and place in the items in the GUI menu
Code:
command /customfish:
    permission: customfish.command
    trigger:
        customFishGUI(player)
    
function customFishGUI(p: player):
    open chest inventory with 6 rows named "&9&lFishing Drops" to {_p}
    set {_i} to 0
    loop {fishingdrops::*}:
        set slot {_i} of {_p}'s current inventory to loop-value
        add 1 to {_i}
    while name of current inventory of {_p} is "&9&lFishing Drops":
        delete {_items::*}
        set {_items::*} to items in current inventory of {_p}
        wait 1 tick
    delete {fishingdrops::*}
    set {fishingdrops::*} to {_items::*}
 
on fish:
    fish state is CAUGHT_FISH
    set {_e} to caught fish
    {_e} is set
    set {_i} to random element out of {fishingdrops::*}
    set item of {_e} to {_i}
 
Status
Not open for further replies.