Solved Disable fishing rod on player

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

Aralwen

Active Member
May 26, 2017
164
14
18
25
Hello guys,
I want disable use of fishing rod on a player, but no to fish.

My research (but don't work) :
code_language.skript:
on damage:
    if victim is player:
        broadcast "%damage cause% %damage%"
        if damage was caused by projectile:
            if attacker is holding fishing rod:
                cancel event
               
on right click on player with fishing rod:
    cancel event
   
   
on fishing a player:
    cancel event

A idea @Donut ? :emoji_slight_smile:
 
I can't try it now, but intent this:


code_language.skript:
On damage:
       if player tool is fishing rod:
                cancel event
[doublepost=1498293856,1498291213][/doublepost]Now, i think you can use this:
code_language.skript:
on damage:
    if attacker's tool is fishing rod:
        cancel event
 
  • Like
Reactions: Aralwen
I can't try it now, but intent this:


code_language.skript:
On damage:
       if player tool is fishing rod:
                cancel event
[doublepost=1498293856,1498291213][/doublepost]Now, i think you can use this:
code_language.skript:
on damage:
    if attacker's tool is fishing rod:
        cancel event
Nice job, i'ts work perfectly ! :emoji_smile:

Solved ~
 
Are you sure thats possible? Because if the player switches their tool doesn't the fishing line get retracted immediately? What situation could this happen in?
 
Are you sure thats possible? Because if the player switches their tool doesn't the fishing line get retracted immediately? What situation could this happen in?
It actually disappears just a little bit after, plus fishing hooks can come from other places
 
Status
Not open for further replies.