ldtteam / minecolonies

Minecolonies minecraft mod
http://minecolonies.com/
GNU General Public License v3.0
672 stars 348 forks source link

[BUG] Buiders doesn't teleport after invalid pathfinding / stay stuck #10003

Closed TheRocket81 closed 3 months ago

TheRocket81 commented 4 months ago

Is there an existing issue for this?

Are you using the latest MineColonies Version?

Did you check on the Wiki? or ask on Discord?

What were you playing at the time? Were you able to reproduce it in both settings?

Minecraft Version

1.20.1

MineColonies Version

1.20.1-1.1.597

Structurize Version

1.20.1-1.0.737

Related Mods and their Versions

No response

Current Behavior

Builders aren't teleporting when stuck. Sample scenarios: 1- Builder builds a wall of fences around him, 2- Builder locks himself in a room, 3- Builder have feet in an air block, head is in a upper closed birch trapdoor, no path to escape.

You create a path to escape, it won't move. While other workers (crusher worker) escape immediately.

2024-06-24_23 49 42

The builder won't teleport, waited at least ~27 minutes IRL.

Expected Behavior

Builder should try to path-find again after a few seconds? Builder should teleport to a valid 2 high-air-block-solid-block-underneath nearby when no path is found for x times? Builder could interact with player saying "I need help at building X" after too many invalid pathfinds? At least, builder should teleport to bed at night as a fail safe. Builder says "Sleeping" but still stands at the jobsite.

Reproduction Steps

With Medieval birch: A- Create a mine from a flat surface. builder will dig, start placing cobble ring at the bottom, place himself in the center of the ring, and place fence post around him. He is stuck. Won't teleport out. B- Upgrade a sifter from level 1 to level 2. Builder locks himself in the little room on the first floor. Won't teleport at night. C- Upgrade a crusher from level 2 to level 3. Builder get stuck underneath trap doors near crusher. D- Builder and other workers uses rails of said crusher to move around. disembark the rails under the trapdoors of the crusher. Builder won't teleport out. Builder won't pathfind out, even if we create a 2 high path underneath

Logs

https://pastebin.com/AwG9c4wp

Anything else?

mateuspina69 commented 4 months ago

Not only they are not teleporting, but they seem to struggle to pathfind after i upgraded my world from 1.19.2 to 1.20.1 (latest). I had some buildings in a cave underground (around -40) and they were able to reach them by the mines. Now they can't.

Raycoms commented 3 months ago

solved