Many land mobs in water #3263

Open
opened 2023-01-05 20:13:47 +01:00 by Preass · 6 comments

MineClone2 version:

What happened?

I always see many land mobs in water.

What should happen:

They should try to go to land if in water.

Steps to reproduce

Spawn many animals near water and wait. Many mobs will be in water.

MineClone2 version: ### What happened? I always see many land mobs in water. ### What should happen: They should try to go to land if in water. ### Steps to reproduce Spawn many animals near water and wait. Many mobs will be in water.
Preass added the
bug
unconfirmed
labels 2023-01-05 20:13:47 +01:00
Member

This is a duplicate of the bouncing mobs in water / flying animals.

They fall into the water and then cannot get out. Hence "too many land mobs in water."

I can say, though, that this is a lot better than what happens in MCL5. In those worlds I would have an entire zoo in the ocean off shore by about 12-15 nodes. hundreds of bouncing animals all refusing to go back to land.

While this happens in mc also, it's a fundamental issue with pathfinding in both games. the animals will randomly pathfind to a destination without checking to see if that location is land, or if they can actually get there. So, the animals end up doing the lemmings thing where they all walk off a cliff.

This is a duplicate of the bouncing mobs in water / flying animals. They fall into the water and then cannot get out. Hence "too many land mobs in water." I can say, though, that this is a lot better than what happens in MCL5. In those worlds I would have an entire zoo in the ocean off shore by about 12-15 nodes. hundreds of bouncing animals all refusing to go back to land. While this happens in mc also, it's a fundamental issue with pathfinding in both games. the animals will randomly pathfind to a destination without checking to see if that location is land, or if they can actually get there. So, the animals end up doing the lemmings thing where they all walk off a cliff.

You're spot on on the pathfinding. I think this is a separate bug from the flying mobs issue which is a lag/floating/distance issue. This can be solved by pathfinding tweaks.

I do want to look into pathfinding to stop them walking off cliffs, so I guess once I've learned more I can consider this also.

You're spot on on the pathfinding. I think this is a separate bug from the flying mobs issue which is a lag/floating/distance issue. This can be solved by pathfinding tweaks. I do want to look into pathfinding to stop them walking off cliffs, so I guess once I've learned more I can consider this also.
ancientmarinerdev added
mobs
and removed
unconfirmed
labels 2023-01-06 15:14:38 +01:00
Member

Well, if the pathfinding stops them from going into the water, then there will be less bouncing / flying mobs. Though, apparently we also need to check mobs to make sure that they do not spawn in / underwater... I forget the issue, but Nicu raised it.

And, the Original Post is correct, they need to head to land, if in water.

Well, if the pathfinding stops them from going into the water, then there will be less bouncing / flying mobs. Though, apparently we also need to check mobs to make sure that they do not spawn in / underwater... I forget the issue, but Nicu raised it. And, the Original Post is correct, they need to head to land, if in water.
Contributor

we also need to check mobs to make sure that they do not spawn in / underwater... I forget the issue, but Nicu raised it.

Mobs can spawn underwater: #2692

> we also need to check mobs to make sure that they do not spawn in / underwater... I forget the issue, but Nicu raised it. Mobs can spawn underwater: #2692
Member

Yep, that's the one! lmao. Thank you, Nicu

Yep, that's the one! lmao. Thank you, Nicu
ancientmarinerdev added this to the 0.83.0 - Safe and Sound milestone 2023-01-10 23:44:10 +01:00
ancientmarinerdev modified the milestone from 0.83.0 - Safe and Sound to 3 - Near future 2023-03-05 16:10:11 +01:00
Member

Should be resolved by #4479 to a large extend. Non-water mobs avoid water, and head to shore when 5 blocks away.
Please help test #4479 for remaining issues.

Should be resolved by #4479 to a large extend. Non-water mobs avoid water, and head to shore when 5 blocks away. Please help test #4479 for remaining issues.
Sign in to join this conversation.
No Milestone
No project
No Assignees
5 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: VoxeLibre/VoxeLibre#3263
No description provided.