Right click with an item.

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

SlackPlaysMC

Member
Jul 18, 2017
20
0
0
29
I'm trying to make it so you can only use your rod every second.
This gives me the error:
Can't understand this event: 'on click with fishing_rod' (server.sk, on click with fishing_rod:')
Can someone help me understand what I've done wrong?
code_language.skript:
options:
    prefix:&8[&2Server&8]&7

on join:
delete {rod::%player%}

on click with fishing_rod:
    while {rod::%player%} is true:
        cancel event
        send "{@prefix} You are using your fishing rod too fast!"
        wait 1 tick
        delete {rod::%player%}
    if {rod::%player%} is not set:
        set {rod::%player%} to true
 
try using
code_language.skript:
on rightclick holding fishing rod:
instead
 
Which version of Spigot and Skript are you running?
The event that Runakai1 wrote works, at least on the up to date versions of skript.
 
Status
Not open for further replies.