PHP: public function(PlayerInteractEvent $event){ $block = $event->getBlock(); //389 id is the item frame if($block->getId() == 389){ $event->setCancelled(); } }