Is it possible to detect when an entity is hooked by a fishing rod? I have a command block that uses:

execute @e[name=unknown]

but when it hooks an entity it can't execute anything.

  • I updated my answer, this is now possible (but not 100% reliably). – Fabian Röling Dec 28 '19 at 9:14

Original answer for 1.12: No, you cannot select fishing bobbers with commands.

New answer in 1.13+: Fishing bobbers can now be selected with type=fishing_bobber. There seems to be no way to 100% reliably detect when an entity is hooked, but you can for example check if it's nearby:

/execute at @e[type=fishing_bobber] run say @e[distance=.1..1]
| improve this answer | |
  • 2
    While their command indicates usage of 1.12, I'll just leave a comment saying that in 1.13 there is an alias for bobbers: minecraft:fishing_bobber. – Skylinerw Mar 14 '18 at 1:04
  • I'm trying to make it so when someone is caught with a fishing rod, it gives them slowness. Regardless, thanks for the reply. I guess I'll just need to wait for the update. – RubbNubb Mar 14 '18 at 18:07

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.