on fish: event.

  • 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.

donghan kim

New Member
Sep 7, 2018
9
0
1
26
I want to stop the enchanted book from fishing.
I'm use for make skript with skellett, is there anyone who can help me?

Use Skript : 2.5-beta4
Use Skellett : 1.9.9

event : https://docs.skunity.com/syntax/search/id:271

my code:
code_language.skript:
on fishing: 
  if Fishing Get caught item:
    delete event-entity
    cancel event
  if player has caught item:
    delete event-entity
    cancel event

Code:
error:
can't understand "if Fishing Get caught fish:"
can't understand "if player has caught item:"
 
Try:

Code:
on fish:
     if "%fishing state%" is "CAUGHT_FISH":
          chance of 5%:
               give player cooked salmon named "Fish cupom"
 
Status
Not open for further replies.