how do i make a spawn egg so far all i got
package net.minecraft.src;
import java.util.Random;
public class mod_Itemspawnegg
{
public ItemStack onItemRightClick(ItemStack itemstack, World world, EntityPlayer
entityplayer)
{
Entitytank test = new Entitytank(world);
test.setLocationAndAngles(entityplayer.posX, entityplayer.posY,
entityplayer.posZ, entityplayer.rotationYaw, 0.3F);
world.entityJoinedWorld(test);
itemstack.stackSize--;
return itemstack;
}
}
what less do i need?
package net.minecraft.src;
import java.util.Random;
public class mod_Itemspawnegg
{
public ItemStack onItemRightClick(ItemStack itemstack, World world, EntityPlayer
entityplayer)
{
Entitytank test = new Entitytank(world);
test.setLocationAndAngles(entityplayer.posX, entityplayer.posY,
entityplayer.posZ, entityplayer.rotationYaw, 0.3F);
world.entityJoinedWorld(test);
itemstack.stackSize--;
return itemstack;
}
}
what less do i need?
1
Actually, all you need is to when making a new mob, just use this
The color codes are for the color of the egg
ModLoader.registerEntityID(EntityExample.class, "Example", ModLoader.getUniqueEntityId(),0x<html color code>, 0x<html colo code>);
ModLoader.addLocalization("entity.Example.name", "Example");
The color codes are for the color of the egg
