Hello everyone,
I've been trying to create some sort of fishing simulator in minecraft.
I created a bunch of custom fish species to give to the player when they catch a fish.
The problem I'm having is that when I right click to reel in the fish, the fishing rod gets stuck in the water.
If I then try to right click again to reel in, it gives me a fish again.
I think it might have to do with the fact that I cancel the event, but I can't seem to find any other way to cancel the standard MC drops.
If someone could find some kind of work-around I'd really appreciate it!
Thanks in advance for your time.
CODE:
on fish:
if "%region at player%" contains "high_fens":
chance of 100%:
set {give_european_eel} to true
if fish state = caught fish:
cancel event
wait 5 ticks
if {give_european_eel} is true:
give player {fish::european_eel}
set {give_european_eel} to false
I've been trying to create some sort of fishing simulator in minecraft.
I created a bunch of custom fish species to give to the player when they catch a fish.
The problem I'm having is that when I right click to reel in the fish, the fishing rod gets stuck in the water.
If I then try to right click again to reel in, it gives me a fish again.
I think it might have to do with the fact that I cancel the event, but I can't seem to find any other way to cancel the standard MC drops.
If someone could find some kind of work-around I'd really appreciate it!
Thanks in advance for your time.
CODE:
on fish:
if "%region at player%" contains "high_fens":
chance of 100%:
set {give_european_eel} to true
if fish state = caught fish:
cancel event
wait 5 ticks
if {give_european_eel} is true:
give player {fish::european_eel}
set {give_european_eel} to false