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

Is It Possible To Change The Size Of An Item Being An Entity Made By Packets?

Discussion in 'Help' started by HeyDeniis_, May 19, 2019.

?

Help of this is possible!

  1. Metadatas (comment which one to use please)

  2. Other Packtes (which one to use)

Multiple votes are allowed.
Results are only viewable after voting.
  1. HeyDeniis_

    HeyDeniis_ Baby Zombie

    Messages:
    137
    PHP:
    use pocketmine\network\mcpe\protocol\addItemEntityPacket;
    use 
    pocketmine\Player;
    use 
    entity\Entity;

    $id Entity::$entityCount++;

    $pk = new AddItemEntityPacket();

    $pk->entityRuntimeId $id;

    $pk->item item::get(Item::EMERALD01);

    $pk->position $pos;

    $pk->metadata = [
     
    Entity::DATA_FLAGS => [Entity::DATA_TYPE_LONG, (<< Entity::DATA_FLAG_IMMOBILE)]
            ];
                foreach(
    $p->getLevel()->getPlayers() as $pl){
                
    $pl->dataPacket($pk);
    }
    I would like to know if there is a way (maybe with Metadata) Change The size of this item that will be suspended in the air and also change or take the speed with which it rotates

    I Use The Latest Pocketmine 1.11.0 (1),
     
    mm899 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.