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

how to spawn fireworks

Discussion in 'Development' started by Levi, Jun 20, 2018.

  1. Levi

    Levi Skeleton

    Messages:
    955
    GitHub:
    captainleviftw
  2. byyEmirhanWSD

    byyEmirhanWSD Witch

    Messages:
    50
    GitHub:
    EmirhanWSD
    PHP:
    $pk = new AddEntityPacket();
    $pk->entityUniqueId null;
    $pk->entityRuntimeId Entity::$entityCount++;
    $pk->type 72;
    $pk->position = new Vector3($player->x$player->y$player->z);
    $pk->motion null;
    $pk->yaw 0.0;
    $pk->pitch 0.0;
    $pk->attributes = [];
    $pk->metadata = [];
    $pk->links = [];
    $this->getServer()->broadcastPacket($this->getServer()->getOnlinePlayers(), $pk);
    72 is FIREWORKS_ROCKET ID. You can look entity ids from EntityIds class.
     
    Last edited: Jun 20, 2018
    Lolipop78709 and Levi like this.
  3. Levi

    Levi Skeleton

    Messages:
    955
    GitHub:
    captainleviftw
    it doesnt make any sound
     
  4. LewBr

    LewBr Zombie

    Messages:
    385
    GitHub:
    lewbr
    You need to register by your self
     
  5. Levi

    Levi Skeleton

    Messages:
    955
    GitHub:
    captainleviftw
  6. xXNiceAssassinlo YT

    xXNiceAssassinlo YT Zombie Pigman

    Messages:
    499
    GitHub:
    xXNiceYT
    Use packet
     
  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.