Posted August 10, 201510 yr I was trying to place in world a Mob spawner, but I always get the Pig ones. I found a guide that explains how to do it, but, I'm either doing something wrong, or this method no longer works on 1.7.10 http://www.minecraftforge.net/wiki/Mob_Spawners SchematicHelper.setBlock(world, player, x + 2, y + 6, z + 2, mobSpawner, 0); TileEntityMobSpawner tileentitymobspawner = (TileEntityMobSpawner)world.getTileEntity(x + 2, y + 6, z + 2); tileentitymobspawner.getSpawnerLogic().setMobID("Zombie"); The method getSpawnerLogic() is undefined for the type TileEntityMobSpawner That's the error I get.
August 10, 201510 yr In 1.7.10 it's obfuscated method name. In 1.8 (wiki version) - it's not... Check out my mods: BTAM Armor sets Avoid Exploding Creepers Tools compressor Anti Id Conflict Key bindings overhaul Colourfull blocks Invisi Zones
August 10, 201510 yr Author Thanks. Found it under: tileentitymobspawner.func_145881_a().setEntityName("Zombie");
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.