Hi. In PlayerInteractEvent, I use: PHP: if ($ev->getAction() === PlayerInteractEvent::LEFT_CLICK_AIR){$ev->getPlayer()->sendMessage(TextFormat::GRAY."o_O You tapped air");} But I'm tapping screen (no block, so i'm "tapping" air) and nothing happens. I'm also trying to use DataFlags. I know that Sneaking works, Riding not. But what does the DataFlag Action? Does it work?
PHP: if ($ev->getAction() === LEFT_CLICK_AIR){$ev->getPlayer()->sendMessage(TextFormat::GRAY."o_O You tapped air");} That's the correct code also riding doesn't use the DataFlags.
So, why it's called LEFT_CLICK_AIR? I thought that LEFT_CLICK_BLOCK/RIGHT_CLICK_BLOCK is fired when player starts breaking block/tap block