mojira.dev
MC-187536

Drowned with tridents try to throw tridents at players from an infinite distance

When a drowned with a trident sees you, it will throw tridents at you from an infinite distance, even if it can't hit you. Expected is for drowned to only throw tridents if they can hit you, that way there are no unnecessary tridents that impact performance.

To reproduce, go to a vast ocean biome and run the following command. Notice that the resulting drowned will always throw tridents at you, no matter how far away you are (as long as you're in line of sight):

/summon minecraft:drowned ~ ~ ~ {PersistenceRequired:1b,HandItems: [{id: "minecraft:trident", Count: 1b}, {}]}

Linked issues

Attachments

Comments 5

Can confirm for 1.16.1. provoking a trident drowned notices me way further than 40 blocks. It's most noticable at night and when shooting them further than 40 blocks.

Confirmed for 1.16.2.

Relates to MC-217439.

Can confirm for 1.16.5.

Can confirm for 1.20.4, and it is the same issue mid-air when using elytras. The proper behavior should be the same as skeletons : doesnt shoot from such distances (see file

[media]

)

 

gaspoweredpick

(Unassigned)

Confirmed

Gameplay

Normal

Mob behaviour, Projectiles

1.15.2, 1.16 Pre-release 1, 1.16 Pre-release 2, 1.16 Pre-release 8, 1.16 Release Candidate 1, ..., 24w36a, 1.21.2 Release Candidate 1, 1.21.3, 1.21.4, 1.21.5

Retrieved