no tested: PHP: if($event->getItem()->getId() === 52){ $tile = $event->getPlayer()->getLevel()->getTile($event->getBlock()); if($tile instanceof MobSpawner){ $tile->setEntityId(43); } }