I would normally decompile Super Simple Spawners or something, but I'm on my phone, so I'm asking here. Does anyone know how to get the mob type of a spawner? Thanks!
Block block = getYourBlockHere if(block.getState() instanceof CreatureSpawner){ CreaturesSpawner cs = (CreatureSpawner)block.getState(); cs.getSpawnedType().getName(); } should do the trick