I am making a mod and I want to add a recipe for a zombie spawn egg.
This is what I have. My problem is I dont know how to specify what spawn egg it gives!
PLEASE HELP.
This is what I have. My problem is I dont know how to specify what spawn egg it gives!
PLEASE HELP.
GameRegistry.addShapedRecipe(new ItemStack(Items.spawn_egg, 2), new Object[]{"FFF","FGF","FFF",'F', Items.rotten_flesh,'G', Blocks.gold_block});
1
i dont want to search through the minecraft sources for this, but you should look into item metadata, then find what metatata zombies are in on the spawn egg, alternativly. make a new item that isnt a vanilla spawnegg, @override the function onRightClick and spawn in the new mob using:
Entity spawnZombie = new EntityZombie(world);
spawnZombie.setLocationAndAngles(x, y, z, 0.0F, 0.0F);
world.spawnEntityInWorld(spawnZombie);
