Suggestion: Territorial Animals.
DigitalWendigo opened this issue ยท 1 comments
Hello, I hope you are doing well.
I've got a suggestion, as the title implies.
A lot of the animals in your mod are territorial and would attack a human or another animal of a different species, if they are lower down the food chain, simply to protect their territory and themselves.
I've noticed that a lot of the big cats and bears, if they're not with a baby, won't even bother with you.
While it allows you to more easily capture them, they aren't as dangerous because they're not hostile while they're not with a baby or you haven't woken them up from a nap.
So I was thinking, what are your plans on implementing a territory system for the apex predators that spawn in the world upon world generation?
Let's say a cave bear spawns somewhere.
It would then get assigned a... 16 or 32 block radius as its territory, similar to how 'home positions' are set for some modded creatures.
If a player, or another apex predator comes within that range, the bear would, if it can see it, try to scare it off.
Roaring, standing up to make itself look bigger, and after a short while begin chasing the player away or attempt to kill it.
What are your thoughts on this?
Delayed response, but I would like to make some mobs more interesting in that regard, but there's a few issues I have noticed:
- Mobs attacking players/other mobs has nothing to do with territory, it's either the "Hunt", "Protect baby" or "Spook a sleeping mob" behavior
- Minecraft combat is really, really bad. Fighting a Bear/Big Cat is just a gear check with no skill involved, which would be terribly frustrating for players. Any attempt to make more interesting combat behaviors ends up with the mob underperforming massively to basic mobs (I have a solution implemented for the few mobs with deeper combat behaviors, where if they get attacked by a non-player, non-tame mob, a counterattack at ~50% strength is made against the attacker).
- Implementation-wise, there's some pretty big issues to address. How would two equivalent predators being in separate enclosures handle? They can't reach each other, but they will try to threaten each other due to territory overlap. Could always use pathfinding to see whether they can reach each other, but that's really bad for performance.
- Most predators shouldn't ever fight each other without very, very good reason.
Scaring mobs off is also a pretty iffy concept, since in these cases, you are relying on a mob's AI to force commands onto a different mob, which is prone to unexpected behaviors, hell, I'm pretty sure you can force some unintended behaviors with the Chum item (since it does force movement commands onto swimming mobs outside of their AI)
That said, it's an interesting topic for sure, and am looking into simulating some visual "threat" behaviors in a safer manner