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}, {}]}
2020-06-05, 05:10 AM
2024-11-04, 02:04 PM
20
8
1.15.2 - 1.21.3
1.15.2, 1.16 Pre-release 1, 1.16 Pre-release 2, 1.16 Pre-release 8, 1.16 Release Candidate 1, 1.16, 1.16.1, 20w29a, 1.16.2 Pre-release 1, 1.16.2 Release Candidate 1, 1.16.3, 1.16.4 Release Candidate 1, 1.16.4, 20w45a, 20w46a, 20w51a, 1.16.5, 21w11a, 21w15a, 21w18a, 21w20a, 1.17 Pre-release 3, 1.17, 21w38a, 21w39a, 1.18, 1.18.1 Release Candidate 2, 1.18.1, 1.18.2, 22w19a, 1.19 Pre-release 2, 1.19 Release Candidate 2, 1.19, 1.19.1 Release Candidate 2, 1.19.2, 1.19.3, 1.19.4 Release Candidate 1, 1.19.4 Release Candidate 2, 1.19.4, 1.20 Release Candidate 1, 1.20, 1.20.2 Release Candidate 1, 1.20.2 Release Candidate 2, 1.20.2, 1.20.3 Release Candidate 1, 1.20.3, 1.20.4, 1.20.5, 1.21, 1.21.1 Release Candidate 1, 1.21.1, 24w36a, 1.21.2 Release Candidate 1, 1.21.3
-