#Entity gets stuck while using harvest component

1 messages · Page 1 of 1 (latest)

hollow skiff
#

I am trying to create a golem with a behavior similar to a farmer, everything is working, except that sometimes it gets "stuck". It basically selects one farmland/crop block to go, but stays 1/2 blocks away from it for a few seconds/minutes and if I try to move it it returns to that position. After sometime It selects another block and start working again.

I tried increasing the goal_radius, which seemed to help, but it still happens from time to time. Then I tried removing and adding the component at certain intervals, which "fixed" it except that now it stops farming for sometime.

My question is if there's a way to prevent it from getting "stuck", and if that's not possible I would like to detect when it is "stuck" to remove the component when it happens.

hollow skiff
#

Changed the collision box

#

Now it works perfectly 🫠

#

!close

#

?close

azure groveBOT
hollow skiff
#

Ok how do I close it?

raw summit
#

It doesn't matter.

leaden pollen
hollow skiff
#

And about the harvest thing

#

Its related to the collision box

#

I don’t remember what was the max value for it work

#

But if I made it bigger than 1 block the mob would stop harvesting randomly

leaden pollen
#

I can send my code once im back on my computer

hollow skiff
#

Check the priority

leaden pollen
#

Ah, got it working. It needed wheat in its inventory.