Hi. I make egg launcher. But it doesnt successive create egg entity. It creates egg entity when i touch block. How can i detect if player right click air. I looked but i didnt see any action and any code. Thanks for helps.
https://github.com/pmmp/PocketMine-MP/commit/db2567f96524baeb1d8955cd6de87d809f5967ac Yes, if you use a devbuild. Otherwise add this before your interact event code starts PHP: if($event->getAction() === PlayerInteractEvent::RIGHT_CLICK_AIR) return;
Since in the first message he says that nothing happens, the interact event is not called, which means he uses dev builds. I provided the way to do that with a stable pocketmine version. It is his own choice.