How to make a mob that walks items and collects them

Discussion in 'Plugin Development' started by Andreu333XD, Nov 22, 2021.

Thread Status:
Not open for further replies.
  1. Offline

    Andreu333XD

    How to make a mob that walks items and collects them

    mobs walk araund location with getnavigation.a() and i dont understand why
     
    Last edited by a moderator: Nov 22, 2021
  2. Offline

    Tim_M

    Just set the target to the location of the closest item (if you can't set location create an invisible armor stand and destroy is when the mob reaches its destination). To make it pick up items make it able to pick them up, and if it's a type that can't just destroy the item when the mob gets very close and play the pickup sound to all nearby players.
     
  3. Offline

    Andreu333XD

    Its what i do with getNavigation.a() but mob Doesn't reach the target.
    The mob is not even near the item
     
    Last edited by a moderator: Dec 21, 2021
Thread Status:
Not open for further replies.

Share This Page