Posted January 7, 20178 yr Hi everybody so, I have a random block in the world and found out it is a spawner block. world.getBlockState(pos).getBlock() == Blocks.MOB_SPAWNER etc... is there a way to find out what entity this block will spawn? TileEntityMobSpawner and MobSpawnerBaseLogic are horribly secretive (private) about those informations... Is there a way I'm just not thinking off? running minecraft on Mac OS X - Sierra --- creating code since 1986 ... --- मेरा दिल भारतवासी है! http://www.arno-saxena.de/pictures/chococraft/banner_signature.png[/img]
January 7, 20178 yr Use TileEntityMobSpawner.getSpawnerBaseLogic to get the MobSpawnerBaseLogic instance. Use Reflection to call the MobSpawnerBaseLogic.getEntityId Don't make mods if you don't know Java. Check out my website: http://shadowfacts.net Developer of many mods
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.