PHP: public function onInteract(PlayerInteractEvent $event) { if($event->getBlock()->getId() === 54 || $event->getBlock()->getId() === 146) { // your code }}