I used public function onTouch(PlayerInteractEvent $event){ $p = $event->getPlayer(); $directionvector = $p->getDirectionVector(); but another plugin it works going straight, but something plugin doesn't go straight. it just spawn only one particle. it's using same code. why?
You have not shown any code that relates to particles or spawning them, so no one will be able to help you until you post the full code.