Adjust pickup AI logic
Added custom pickup goal, used by
- pixie
- hippogryph
- myrmex worker
- cockatrice
- death worm
- ampithere
should fix #5187
Additionally:
- added logic to the previously empty add food effect method when dragons eat food (i.e. they should now gain the effects)
- removed
refreshDimensionsinEntityMultiPartbecause it was causing multiple seconds of delay when joining and leaving worlds (dimensions should only be refreshed when needed, not in a tick method) - tried to adjust myrmex worker goal logic regarding storing items - didn't work (might be issue by the advanced pathfinding system since they simply don't move - they can see the cocoons and sometimes they get stuck at walls and move a bit once you break some blocks)
- made the check (whether a myrmex is inside a hive) more simple
now that I think about it
the game time % 4 logic should just be replaced with an internal tick tracker
I think someone else already mentioned it but the tick method of the goal ticks every 2 ticks
so if you're unlucky you get no updates (that's what the force new is there for atm)
will adjust that
(need to still adjust some other goals to use this custom one)
Tried it out with pixie and death worm and both did what they were supposed to in regards to picking up items
Sooooo does this mean I'm just unlucky or do I need to chase those pixies around with cake items until they decide to eat