In contrast to the current implementation, sharks in real life do not attack mindlessly unless being threatened or you look interesting enough for a test bite, as described by Britannica,
... Attacks on humans occur when sharks are hungry, harassed, or, in some cases, defending territory, though many interactions with humans appear more likely to be due to mistaken identity. - [Britannica, Shark behaviour]
Therefore I would like to propose an improvement to the sharks behavior (to more like the monkeys):
Passive when nothing special happens
Attacks nearby aquatic mobs occasionally, possibly by internal cooldown. Has a chance to select nearby players as target when looking for food, but instead of trying to kill, the shark would leave the player after one bite and look for nearby aquatic creatures instead
Attacks back when being damaged
Shed teeth at the interval of around when chicken pops an egg
Extra: Deaths in water attracts nearby sharks
Fix: Disallow attacks toward entities on dry land. (i.e., a shark in water cannot attack players above the water line, unless the shark choose to breach itself)
Related to another problem or bug
I'm excited to see sharks in minecraft finally, but realize them being imaged as mindless killing machine once again.
With how shark behaves now, it is quite troublesome on the shoreline as sharks could just casually kill people remotely on the shore. Plus the current setting of encouraging players to kill them on-sight isn't really that necessary, shark shed a lot of teeth by themselves anyways, why couldn't we swim alongside them and make friend with them instead?
By the time I added the shark to the mod I didn't know how to make custom AI so that's why it justs attacks every player.
So, you're right, the behavior of the sharks should be improved.
possible new behavior:
neutral mob (passive when nothing special happens)
gets aggressive when attacked by other mobs
can attack all aquatic mobs (and players in water) with a configurable cooldown (in other words: when the shark gets hungry)
when attacking players they stop after the first attack (unless the player attacks back)
when attacking, there is a small (configurable) chance to drop some teeth (this way it's a small challenge to get the teeth and not just waiting for it to drop)
attacking players on land is fine (not so much of a problem when sharks don't constantly attack all players)
What is your idea?
In contrast to the current implementation, sharks in real life do not attack mindlessly unless being threatened or you look interesting enough for a test bite, as described by Britannica,
Therefore I would like to propose an improvement to the sharks behavior (to more like the monkeys):
Related to another problem or bug
I'm excited to see sharks in minecraft finally, but realize them being imaged as mindless killing machine once again. With how shark behaves now, it is quite troublesome on the shoreline as sharks could just casually kill people remotely on the shore. Plus the current setting of encouraging players to kill them on-sight isn't really that necessary, shark shed a lot of teeth by themselves anyways, why couldn't we swim alongside them and make friend with them instead?
Additional context
https://www.youtube.com/watch?v=ccXn480oZ6g - Shark experts peacefully playing with tiger sharks