mojira.dev
MC-239958

Players can't hook entities with a fishing rod when casting it inside water

Entities cannot be hooked by fishing rods if the line is cast while the player (or caster in general) is submerged in water.

Steps to Reproduce:

  1. Spawn an entity underwater

  2. Try and hook the entity with a fishing rod item

Observed Results:

The line will be cast, but will not latch onto the entity. Instead, it will function like you are normally fishing.

Expected Results:

The bobber would be able to latch onto the entity regardless of submersion.

Screenshots/Videos:

[media]

[media]

Notes:

Considering the player is unable to fish while the bobber is underwater, it would make sense that the bobber function as it would above land when trying to hook an entity.

Related issues

Attachments

Comments

migrated
[media][media]
MMK21

Can confirm.

Avoma

This behavior is present in 1.17.1 as well and isn't exclusive to the 1.18 snapshots.

MMK21

Affects 1.18.1

MMK21

Affects 1.18.2

MMK21

Affects 1.19

[Mod] Jingy

Can confirm in 23w44a. I would like to request ownership considering the original poster has been inactive since 2021.

migrated

I'm still there, just that there is no improvement in the recent versions.

[Mod] turbo

Hi, if it still affects current versions, it would have helped if you'd kept your issue up-to-date so we know it's still valid. That's why ownership has been transferred to @unknown to make sure it stays up to date in the future.

UserTeemu

It seems this issue is caused by the fact that collision checks are only made during the initial state ("FLYING").
Once the bobber enters a block that has water in it (it seems it doesn't even need to touch the water, just be on the same block), it changes to the "BOBBING" stage. Once that has happened, there seems to be no branch in the code to change the state ever again. That means that it just is in BOBBING state forever. Thus, the collsiion check is never reached, causing it not to attach to an entity.

MMK21

If you want to reproduce this, note that the player's hitbox has to be entirely within water to reproduce the issue. Can confirm in 1.20.5.

[Mod] Jingy

(Unassigned)

Confirmed

Gameplay

Low

Hitboxes, Mob behaviour

combat, fishing_rod, underwater

1.17.1, 21w43a, 1.18 Pre-release 4, 1.18.1, 1.18.2, ..., 23w51b, 24w09a, 24w12a, 1.20.5, 1.21

Retrieved