I think he meant like when player right click ( hold screen ) they will shoot out snowball ( using PlayerInteractEvent )
I have some old code I used. Not sure if it works at this pmmp version, but it worked before. PHP: public function onPacketRecieve(DataPacketReceiveEvent $event){ if($event->getPacket() instanceof UseItemPacket){ $player = $event->getPlayer(); if($player->getInventory()->getItemInHand()->getId() == Item::STONE_SWORD/*You should change this!*/){ $namedTag = new CompoundTag("", [ "Pos" => new EnumTag("Pos", [ new DoubleTag("", $player->x), new DoubleTag("", $player->y + $player->getEyeHeight()), new DoubleTag("", $player->z) ]), "Motion" => new EnumTag("Motion", [ new DoubleTag("", -sin($player->yaw / 180 * M_PI) * cos($player->pitch / 180 * M_PI)), new DoubleTag("", -sin($player->pitch / 180 * M_PI)), new DoubleTag("", cos($player->yaw / 180 * M_PI) * cos($player->pitch / 180 * M_PI)) ]), "Rotation" => new EnumTag("Rotation", [ new FloatTag("", $player->yaw), new FloatTag("", $player->pitch) ]), ]); $e = new Snowball($player->chunk, $namedTag, $player); $e->setMotion($e->getMotion()->multiply(3/*For example*/)); $e->spawnToAll(); return; } } } Well, you can just use PlayerInteractEvent, but this code was meant for a fishing rod...