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

Solved Spawn armor stand with item

Discussion in 'Development' started by Error202, Apr 12, 2019.

  1. Error202

    Error202 Spider Jockey

    Messages:
    39
    How I can spawn armor stand with iron sword?

    PHP:
    ...
    $stand->spawnToAll();
    It spawned, but empty
     
  2. Muqsit

    Muqsit Chicken

    Messages:
    1,548
    GitHub:
    muqsit
    Send MobEquipmentPacket when pocketmine spawns the armor stand to the player. See: https://forums.pmmp.io/threads/skeleton-armor-itemheld.6055/#post-53137
    (Override sendSpawnPacket, not spawnTo. Also use Item::get() as opposed to new Item())
     
    HimbeersaftLP and Error202 like this.
  3. Error202

    Error202 Spider Jockey

    Messages:
    39
    Thanks!
     
  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.