1. The forums will be archived and moved to a read only mode in about 2 weeks (mid march).

Solved Map show player pointer

Discussion in 'Development' started by wolfdale, Jul 27, 2018.

  1. wolfdale

    wolfdale Zombie Pigman

    Messages:
    535
    GitHub:
    diamond-gold
    Hello!
    I was just wondering if anybody knows how to make a map item show player pointers on the map?
    What is the nbt tag that needs to be added to it to make it into a locator map?
     
  2. Muqsit

    Muqsit Chicken

    Messages:
    1,548
    GitHub:
    muqsit
    NBT tag? None?

    Create a MapTrackedObject class and set the $type to MapTrackedObject::TYPE_ENTITY. Set the $entityUniqueId to the entity you want to track's ID.

    Then push the MapTrackedObject into ClientboundMapItemDataPacket::$trackedEntities.

    If that doesn't work, try pushing the entity you want to track's ID into ClientboundMapItemDataPacket::$eids.
     
    wolfdale likes this.
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.