You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
"Description"
When a villager is following a path, if it is blocked by a mob fence, then the villager will get to the fence then get stuck repeatedly jumping at the fence.
To Reproduce
Create a MOB FENCE and a villager of type "plant_collector"
Place some plant on both sides of the MOB FENCE.
Activate the villager.
Expected behavior
Villager should collect plants on their side of the MOB FENCE,
then when no more plants on their side of fence, villager should walk round fence, and not try jumping over the MOB FENCE.
Screenshots
N/A
Log
N/A
Desktop (please complete the following information):
Minetest version: 5.7.0
Other mods activated: Using Mesecraft latest release (no version info)
The text was updated successfully, but these errors were encountered:
we can tell the path finding algorithm that mobs:fences have infinite height, basically.
local function get_neighbor_ground_level(pos, jump_height, fall_height)
local node = minetest.get_node(pos)
local height = 0
if string.find(node.name, "mobs:fence") then -- #42
return nil
end
lmaddox
pushed a commit
to InnovAnon-Inc/working_villages
that referenced
this issue
Dec 3, 2023
"Description"
When a villager is following a path, if it is blocked by a mob fence, then the villager will get to the fence then get stuck repeatedly jumping at the fence.
To Reproduce
Create a MOB FENCE and a villager of type "plant_collector"
Place some plant on both sides of the MOB FENCE.
Activate the villager.
Expected behavior
Villager should collect plants on their side of the MOB FENCE,
then when no more plants on their side of fence, villager should walk round fence, and not try jumping over the MOB FENCE.
Screenshots
N/A
Log
N/A
Desktop (please complete the following information):
The text was updated successfully, but these errors were encountered: