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

How can i spawn a armor_stand with a head skin from getSkinData?

Discussion in 'Help' started by LewBr, Feb 12, 2018.

  1. LewBr

    LewBr Zombie

    Messages:
    385
    GitHub:
    lewbr
    Hello, i want to spawn a armor_stand with a head of anyones skin but i don't know how..
    Can someone tell me if i can do that on packet?
     
  2. Daniktheboss

    Daniktheboss Baby Zombie

    Messages:
    144
    GitHub:
    daniktheboss
    You cant set a skin on armor stand
     
  3. LewBr

    LewBr Zombie

    Messages:
    385
    GitHub:
    lewbr
    ok, then forget the skin, but can i spawn a armor_stand on pocketmine now? because when i do /give @ armor_stand 1 it worked, but when i try to spawn by click on the ground they don't spawn ;-;, can i spawn with packets?
     
  4. Daniktheboss

    Daniktheboss Baby Zombie

    Messages:
    144
    GitHub:
    daniktheboss
    You need to make a armor stand class, and register
     
  5. Daniktheboss

    Daniktheboss Baby Zombie

    Messages:
    144
    GitHub:
    daniktheboss
    ArmorStand.php
    PHP:
    <?php
    namespace Entity;

    class 
    ArmorStand {
       
        const 
    NETWORK_ID self::ARMOR_STAND;
       
    }
    Register
    PHP:
    Entity::registerEntity(ArmorStand::class, false, ["Armor Stand""minecraft:armor_stand"]);
     
  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.