I check block under player with id 89:3 (Chiseled Stone Brick) but it check normal stonebrick too :/ PHP: public function onMove(PlayerMoveEvent $e){$p = $e->getPlayer();$block = $p->getLevel()->getBlock(new Vector3($player->x, $player->y - 0.5, $player->z));if($block->getId() == "98:3"){$p->sendMessage("You cant");}}
This is because 98:3 is NOT a valid ID. 3 is the Damage of the block/item, and is not in the ID of that block/item. For 98:3, you need to do $block->getId() and $block->getDamage(). Check if ID is 98, and if Damage is also 3.