FIREWORKS /** @var Fireworks $fw */ $fw = ItemFactory::get(Item::FIREWORKS); $fw->addExplosion(Fireworks::TYPE_SMALL_SPHERE, Fireworks::COLOR_RED, "", false, true); $fw->addExplosion(Fireworks::TYPE_SMALL_SPHERE, Fireworks::COLOR_GOLD, "", false, true); $fw->addExplosion(Fireworks::TYPE_SMALL_SPHERE, Fireworks::COLOR_BLUE, "", false, true); $fw->setFlightDuration(2); //Choose Level $level = $player->getLevel(); // Choose some coordinates $vector3 = $level->getSpawnLocation()->add(0.5, 1, 0.5); // Create the NBT data $nbt = FireworkRocket::createBaseNBT($vector3, new Vector3(0.001, 0.05, 0.001), lcg_value() * 360, 90); // Construct and spawn $entity = FireworkRocket::createEntity("FireworkRocket", $level, $nbt, $fw); if ($entity instanceof FireworkRocket) { $entity->spawnToAll(); } } I applied this code in Skywars plugins for winning event but it spawn in higher, it doesn't spawn in player position.