Discord Thread How do I detect that a fishing trip has been cancelled in an mcMMO?

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

This thread came from the skUnity Discord. You can't reply to it here but if you join the skUnity Discord, you'll be able to post a reply there. The thread link is part of the thread's message.
Status
Not open for further replies.

skUnity Discord

Site Manager
Aug 5, 2023
12,755
1
0
The skUnity Discord
discord.gg
With mcMMO installed, you may be unable to fish in the same area when you are told "You sense that there might not be many fish left in this area.".
The following code is implemented, but it is triggered even if you cannot fish.
How can I modify the code so that it is not triggered?
code_language.skript:
vb

on fish with priority monitor:
    if fish state = CAUGHT FISH:
        set {_material} to item of fishing caught entity
        #send "&f&l[&a&l!&f&l] &f&l%player% &a&lが &f&l%{_material}% &a&lを釣り上げた!" to all players
        if {_material} is not cod or tropical fish or salmon or pufferfish:
            send "&f&l[&a&l!&f&l] &aCaught nothing but fish!" to player
        else if {fish_size.%player's uuid%} is null:
            send "&f&l[&a&l!&f&l] &a&lI didn't catch it..." to player
        else:
            send "&a&l%{_material}% was caught!" to player

Posted by: 2288 from the skUnity Discord. View the thread on skUnity Discord here
 
what i meant is
code_language.skript:
on fish with priority monitor:
    event isn't cancelled
    if fish state = CAUGHT FISH:
        set {_material} to item of fishing caught entity
        if {_material} is not cod or tropical fish or salmon or pufferfish:
            send "&f&l[&a&l!&f&l] &aCaught nothing but fish!" to player
        else if {fish_size.%player's uuid%} is null:
            send "&f&l[&a&l!&f&l] &a&lI didn't catch it..." to player
        else:
            send "&a&l%{_material}% was caught!" to player
<@669735475270909972>

Posted by: tjj123456 from the skUnity Discord.
 
Status
Not open for further replies.