Liberty's Villagers

Liberty's Villagers

4M Downloads

Villagers and Rails

Timolino456 opened this issue · 2 comments

commented

I'm not sure what villagers' behaviour in vanilla is supposed to be, but imo villagers should - like some monsters do it - avoid stepping on rails when possible.
I noticed that I had villagers walk around on my rail system, which connects the village to my house, multiple times.
It would be cool if you could add an option for villagers to avoid rails (which probably should be turned on by default).

In my case the current situation can actually be dangerous, because I use Cammie's Minecart Tweaks to increase maximum minecart speed a little, but it also adds damage on impact with a minecart at high speeds, which is 10 hearts exactly, able to kill villagers that are idiotic enough to think dancing around on my rails is funny. I almost killed a villager like that once already.

Making them avoid rails would also simply be more realistic.

Live footage of one of the incidents taken by local police:
image
And yes, before you might ask, I tested the same without the slabs in case that it might make a difference for their pathfinding.

commented

Love this idea, I'll add it in the next build. PathNodeType RAIL is already defined with a default of 0.0, I'll up it so they avoid rails.

commented

Will be in 1.0.6.