1. 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!

  2. LOOKING FOR A VERSION OF SKRIPT?

    You can always check out our Wiki for downloads and any other information about Skript!

Dismiss Notice
This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Change fishing drops

Discussion in 'Skript' started by Synkrotic, Aug 8, 2022.

Thread Status:
Not open for further replies.
  1. Synkrotic

    Synkrotic Member

    Joined:
    Aug 8, 2022
    Messages:
    1
    Likes Received:
    0
    Hello, I am trying to change the fishing drops to only cod sadly I just can't succeed. I get no errors but I get the normal fish.

    Code:


    on fishing:
    if "%fishing state%" is "CAUGHT_FISH":
    cancel event
    set {_loc} to player's position
    drop 1 cod at {_loc}

    I am using Skellet ,Morkazsk and SkQuery
    Also I am using Spigot 1.17.1

    Does anyone know what I may be missing or doing wrong?
     
    #1 Synkrotic, Aug 8, 2022
    Last edited: Aug 8, 2022
  2. MrGametop1

    MrGametop1 Member

    Joined:
    Mar 10, 2017
    Messages:
    36
    Likes Received:
    0
    Remeber to put you code into a code tab.

    Why have you put %% on each side of fishing state?
    Code (Text):
    1. if "%fishing state%" is "CAUGHT_FISH":
    It should be like this:
    Code (Text):
    1. if fishing state is "CAUGHT_FISH":
    Docs for fishing state:
    https://skripthub.net/docs/?id=3462
     
Thread Status:
Not open for further replies.

Share This Page

Loading...