1

Please Help!

PC_Gamer 11/3/14 8:03 pm
206
11/7/2014 1:49 pm
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.
GameRegistry.addShapedRecipe(new ItemStack(Items.spawn_egg, 2), new Object[]{"FFF","FGF","FFF",'F', Items.rotten_flesh,'G', Blocks.gold_block});
Posted by
PC_Gamer
Level 1 : New Miner
0

  Have something to say?

JoinSign in

1

Gnomorian
11/07/2014 1:49 pm
Level 46 : Master Modder
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);
1

Welcome