Hi leute ich hab in den letzten Wochen versucht einen essens mod zu schreiben.Das problem is wen ich es mit mcp teste geht alles wen ich es alerdings auf meinem Client installiert habe stürtzt er ab

hoffe ihr könnt herausfinden worans liegt und mir die richtigen codes schicken danke
meine mod_.java datei:
[/spoiler]package net.minecraft.src;
public class mod_foodmod_food extends BaseMod{
//mein essen
public static Item hamburger = new ItemFood(600, 12, 1F, false).setIconCoord(0, 0).setItemName("Ham-Burger").setMaxStackSize(6);
public static Item halbbrot = new ItemFood(601, 2, 1F, false).setIconCoord(0 , 0).setItemName("Halbes Brot");
public static Item mett = new ItemFood(602, 4, 1F, true).setIconCoord(0, 0).setItemName("Mett");
public static Item frikadele = new ItemFood(603, 7, 1F, true).setIconCoord(0, 0).setItemName("Frikadele");
public static Item mehl = new Item(604).setIconCoord(0, 0).setItemName("Mehl");
public static Item rohesschnitzel = new ItemFood(605, 1, 1F, true).setIconCoord(0, 0).setItemName("Rohes Schnitzel");
public static Item schnitzel = new ItemFood(606, 11, 1F, true).setIconCoord(0, 0).setItemName("Schnitzel");
public static Item kavia = new ItemFood(607, 10, 1F, true).setIconCoord(0, 0).setItemName("Kavia");
public static Item mettbrot = new ItemFood(608, 9, 1F, false).setIconCoord(0, 0).setItemName("Mett Brot").setMaxStackSize(2);
public static Item huhnschusel = new ItemFood(609, 2, 1F, true).setIconCoord(0, 0).setItemName("Huhn in einer Schüssel").setMaxStackSize(1);
public static Item huhnschuselwasser = new Item(610).setIconCoord(0, 0).setItemName("Huhn mit Wasser").setMaxStackSize(1);
public static Item huhnsupe = new ItemFood(611, 9, 1F, false).setIconCoord(0, 0).setItemName("Hünchensuppe").setMaxStackSize(1);
public static Item crepe = new ItemFood(612, 6, 1F, false).setIconCoord(0, 0).setItemName("crepe");
public static Item apfelsaft = new ItemFood(613, 5, 1F, false).setIconCoord(0, 0).setItemName("Apfelsaft").setMaxStackSize(1);
public static Item STAL = new Item(614).setIconCoord(0, 0).setItemName("stahl");
public static Item SCHARFESEISEN = new Item(615).setIconCoord(0, 0).setItemName("scharfeseisen");
public static Item beil = new ItemSword(616, EnumToolMaterial.BEILE).setIconCoord(0, 0).setItemName("Beil").setMaxStackSize(1);
public static Item messer = new ItemSword(617, EnumToolMaterial.MESSER).setIconCoord(0, 0).setItemName("Messer").setMaxStackSize(1);
public static Item ei = new ItemFood(618, 4, 1F, false).setIconCoord(0, 0).setItemName("Ei").setMaxStackSize(16);
public static Item rbacon = new ItemFood(619, 2, 1F, true).setIconCoord(0, 0).setItemName("Rohes Bacon");
public static Item bacon = new ItemFood(620, 5, 1F, true).setIconCoord(0, 0).setItemName("Bacon");
public static Item crepez = new ItemFood(621, 8, 1F, true).setIconCoord(0, 0).setItemName("Crepe mit Zucker");
public static Item kakaopulver = new Item(622).setIconCoord(0, 0).setItemName("Kakaopulver");
public static Item schoko = new ItemFood(623, 3, 1F, false).setIconCoord(0, 0).setItemName("Schockolade").setMaxStackSize(16);
public static Item kakao = new ItemFood(624, 4, 1F, false).setIconCoord(0, 0).setItemName("Kakao").setMaxStackSize(1);
public static Item darm = new Item(625).setIconCoord(0, 0).setItemName("Darm");
public static Item würstchen = new ItemFood(626, 4, 1F, true).setIconCoord(0, 0).setItemName("Winer Würstchen");
public static Item wurst = new ItemFood(627, 9, 1F, true).setIconCoord(0, 0).setItemName("Wurst");
public static Item wafel = new ItemFood(628, 5, 1F, false).setIconCoord(0, 0).setItemName("Waffel");
public static Item eis = new ItemFood(629, 7, 1F, false).setIconCoord(0, 0).setItemName("Speise Eis").setMaxStackSize(1);
public static Item seis = new ItemFood(630, 8, 2F, false).setIconCoord(0, 0).setItemName("Schoko Eis").setMaxStackSize(1);
public static Item schockostreu = new ItemFood(631, 1, 1F, false).setIconCoord(0, 0).setItemName("Schokostreusel").setMaxStackSize(1 6);
public static Item seismitst = new ItemFood(632, 9, 1F, false).setIconCoord(0, 0).setItemName("Schockoeis mit Schockostreuseln").setMaxStackSize(1);
public static Item schockocrepe = new ItemFood(633, 9, 1F, false).setIconCoord(0, 0).setItemName("Schokoladen Crepe").setMaxStackSize(5);
public static Item geschmolzeneschokolade = new ItemFood(634, 3, 1F, false).setIconCoord(0, 0).setItemName("Geschmolzene Schokolade").setMaxStackSize(16);
public static Item eismitgs = new ItemFood(635, 10, 1F, false).setIconCoord(0, 0).setItemName("Eis mit Schockoladen überzug").setMaxStackSize(1);
public static Item nutela = new ItemFood(636, 9, 1F, false).setIconCoord(0, 0).setItemName("Nutella Brot").setMaxStackSize(2);
public static Item popcorn = new Item(637).setIconCoord(0, 0).setItemName("Popcorn");
public static Item popcorns = new ItemFood(638, 4, 1F, false).setIconCoord(0, 0).setItemName("Schüssel Popcorn");
//mein essen ende
public String getVersion() {
return null;
}
public void load() {
//meine item namen
ModLoader.addName(hamburger, "Ham-Burger");
ModLoader.addName(halbbrot, "Halbes Brot");
ModLoader.addName(mett, "Mett");
ModLoader.addName(frikadele, "Frikadele");
ModLoader.addName(mehl, "Mehl");
ModLoader.addName(rohesschnitzel, "Rohes Schnitzel");
ModLoader.addName(schnitzel, "Schnitzel");
ModLoader.addName(kavia, "Kavia");
ModLoader.addName(mettbrot, "Mett Brot");
ModLoader.addName(huhnschusel, "Huhn in einer Schüssel");
ModLoader.addName(huhnschuselwasser, "Huhn mit Wasser");
ModLoader.addName(huhnsupe, "Hünchensuppe");
ModLoader.addName(crepe, "Crepe");
ModLoader.addName(apfelsaft, "Apfelsaft");
ModLoader.addName(STAL, "Stahl");
ModLoader.addName(SCHARFESEISEN, "Scharfes Eisen");
ModLoader.addName(beil, "Fleischer Beil");
ModLoader.addName(messer, "Messer");
ModLoader.addName(ei, "Gekochtes Ei");
ModLoader.addName(crepez, "Crepe mit Zucker");
ModLoader.addName(kakaopulver, "Kakaopulver");
ModLoader.addName(schoko, "Schokolade");
ModLoader.addName(kakao, "Kakao");
ModLoader.addName(darm, "Darm");
ModLoader.addName(würstchen, "Winer Würstchen");
ModLoader.addName(wurst, "Wurst");
ModLoader.addName(wafel, "Waffel");
ModLoader.addName(bacon, "Bacon");
ModLoader.addName(rbacon, "Rohes Bacon");
ModLoader.addName(eis, "Geschmackloses Speise Eis");
ModLoader.addName(seis, "Schokoladen Eis");
ModLoader.addName(schockostreu, "Schocko Streusel");
ModLoader.addName(seismitst, "Schockoeis mit Schockostreuseln");
ModLoader.addName(schockocrepe, "Schockoladen crepe");
ModLoader.addName(geschmolzeneschokolade, "Geschmolzene Schockolade");
ModLoader.addName(eismitgs, "Eis mit Schockoladen überzug");
ModLoader.addName(nutela, "Nutela Brot");
ModLoader.addName(popcorn, "Popcorn");
ModLoader.addName(popcorns, "Schüssel Popcorn");
//meine item namen ende
//meine schmeltz retzepte
ModLoader.addSmelting(mod_foodmod_food.mett.shifte dIndex, new ItemStack(mod_foodmod_food.frikadele), 0.3F);
ModLoader.addSmelting(mod_foodmod_food.rohesschnit zel.shiftedIndex, new ItemStack(mod_foodmod_food.schnitzel), 0.3F);
ModLoader.addSmelting(mod_foodmod_food.huhnschusel wasser.shiftedIndex, new ItemStack(mod_foodmod_food.huhnsupe), 0.3F);
ModLoader.addSmelting(Item.ingotIron.shiftedIndex, new ItemStack(mod_foodmod_food.STAL), 0.1F);
ModLoader.addSmelting(Item.egg.shiftedIndex, new ItemStack(mod_foodmod_food.ei), 0.2F);
ModLoader.addSmelting(mod_foodmod_food.rbacon.shif tedIndex, new ItemStack(mod_foodmod_food.bacon), 0.2F);
ModLoader.addSmelting(mod_foodmod_food.kakaopulver .shiftedIndex, new ItemStack(mod_foodmod_food.schoko), 0.2F);
ModLoader.addSmelting(mod_foodmod_food.würstchen.s hiftedIndex, new ItemStack(mod_foodmod_food.wurst), 0.2F);
ModLoader.addSmelting(mod_foodmod_food.schoko.shif tedIndex, new ItemStack(mod_foodmod_food.geschmolzeneschokolade) , 0.1F);
ModLoader.addSmelting(Item.seeds.shiftedIndex, new ItemStack(mod_foodmod_food.popcorn), 0.1F);
//meine item texture1n
hamburger.iconIndex = ModLoader.addOverride("/gui/items.png", "/food/burger.png");
halbbrot.iconIndex = ModLoader.addOverride("/gui/items.png", "/food/halbesbrot.png");
mett.iconIndex = ModLoader.addOverride("/gui/items.png", "/food/mett.png");
frikadele.iconIndex = ModLoader.addOverride("/gui/items.png", "/food/frikadele.png");
mehl.iconIndex = ModLoader.addOverride("/gui/items.png", "/food/mehl.png");
rohesschnitzel.iconIndex = ModLoader.addOverride("/gui/items.png", "/food/schnitzel.png");
schnitzel.iconIndex = ModLoader.addOverride("/gui/items.png", "/food/schnitzelfertig.png");
kavia.iconIndex = ModLoader.addOverride("/gui/items.png", "/food/kavia.png");
mettbrot.iconIndex = ModLoader.addOverride("/gui/items.png", "/food/mettB.png");
huhnschusel.iconIndex = ModLoader.addOverride("/gui/items.png", "/food/huhn.png");
huhnschuselwasser.iconIndex = ModLoader.addOverride("/gui/items.png", "/food/huhnwasser.png");
huhnsupe.iconIndex = ModLoader.addOverride("/gui/items.png", "/food/huhnchen.png");
crepe.iconIndex = ModLoader.addOverride("/gui/items.png", "/food/crepep.png");
crepez.iconIndex = ModLoader.addOverride("/gui/items.png", "/food/crepez.png");
apfelsaft.iconIndex = ModLoader.addOverride("/gui/items.png", "/food/apfel.png");
STAL.iconIndex = ModLoader.addOverride("/gui/items.png", "/food/stal.png");
SCHARFESEISEN.iconIndex = ModLoader.addOverride("/gui/items.png", "/food/scharf.png");
beil.iconIndex = ModLoader.addOverride("/gui/items.png", "/food/Beil.png");
messer.iconIndex = ModLoader.addOverride("/gui/items.png", "/food/messer.png");
ei.iconIndex = ModLoader.addOverride("/gui/items.png", "/food/ei.png");
crepez.iconIndex = ModLoader.addOverride("/gui/items.png", "/food/crepez.png");
kakaopulver.iconIndex = ModLoader.addOverride("/gui/items.png", "/food/kakaopulver.png");
schoko.iconIndex = ModLoader.addOverride("/gui/items.png", "/food/schoko.png");
kakao.iconIndex = ModLoader.addOverride("/gui/items.png", "/food/kakao.png");
darm.iconIndex = ModLoader.addOverride("/gui/items.png", "/food/darm.png");
würstchen.iconIndex = ModLoader.addOverride("/gui/items.png", "/food/würstchen.png");
wurst.iconIndex = ModLoader.addOverride("/gui/items.png", "/food/wurst.png");
wafel.iconIndex = ModLoader.addOverride("/gui/items.png", "/food/wafel.png");
bacon.iconIndex = ModLoader.addOverride("/gui/items.png", "/food/bacon.png");
rbacon.iconIndex = ModLoader.addOverride("/gui/items.png", "/food/rbacon.png");
eis.iconIndex = ModLoader.addOverride("/gui/items.png", "/food/eis.png");
seis.iconIndex = ModLoader.addOverride("/gui/items.png", "/food/seis.png");
schockostreu.iconIndex = ModLoader.addOverride("/gui/items.png", "/food/streu.png");
seismitst.iconIndex = ModLoader.addOverride("/gui/items.png", "/food/seismitst.png");
schockocrepe.iconIndex = ModLoader.addOverride("/gui/items.png", "/food/crepes.png");
geschmolzeneschokolade.iconIndex = ModLoader.addOverride("/gui/items.png", "/food/geschmolzen.png");
eismitgs.iconIndex = ModLoader.addOverride("/gui/items.png", "/food/eismitgs.png");
nutela.iconIndex = ModLoader.addOverride("/gui/items.png", "/food/nutela.png");
//popcorn.iconIndex = ModLoader.addOverride("/gui/items.png", "/food/popcorn.png");
//popcorns.iconIndex = ModLoader.addOverride("/gui/items.png", "/food/popcorns.png");
//meine item texturem ende
//meine craftings
ModLoader.addRecipe(new ItemStack(mod_foodmod_food.hamburger, 1), new Object[]
{
"#", "F", "#", '#', mod_foodmod_food.halbbrot, 'F', mod_foodmod_food.frikadele
});
ModLoader.addRecipe(new ItemStack(mod_foodmod_food.mett, 1), new Object[]
{
"#", '#', Item.porkRaw
});
ModLoader.addRecipe(new ItemStack(mod_foodmod_food.halbbrot, 2), new Object[]
{
"#", '#', Item.bread
});
ModLoader.addRecipe(new ItemStack(mod_foodmod_food.mehl, 1), new Object[]
{
"#", '#', Item.wheat
});
ModLoader.addRecipe(new ItemStack(mod_foodmod_food.rohesschnitzel, 1), new Object[]
{
"M", "R", "E", 'M', mod_foodmod_food.mehl, 'R', Item.porkRaw, 'E', Item.egg
});
ModLoader.addRecipe(new ItemStack(mod_foodmod_food.kavia, 1), new Object[]
{
"#", '#', Item.fishRaw
});
ModLoader.addRecipe(new ItemStack(mod_foodmod_food.mettbrot, 1), new Object[]
{
"M", "B", 'M', mod_foodmod_food.mett, 'B', mod_foodmod_food.halbbrot
});
ModLoader.addRecipe(new ItemStack(mod_foodmod_food.huhnschusel, 1), new Object[]
{
"H", "S", 'H' , Item.chickenRaw, 'S', Item.bowlEmpty
});
ModLoader.addRecipe(new ItemStack(mod_foodmod_food.huhnschuselwasser, 1), new Object[]
{
"H", "W", 'H' , mod_foodmod_food.huhnschusel, 'W' , Item.bucketWater
});
ModLoader.addRecipe(new ItemStack(mod_foodmod_food.apfelsaft, 1), new Object[]
{
"F", "G", 'F' , Item.appleRed, 'G' , Item.glassBottle
});
ModLoader.addRecipe(new ItemStack(mod_foodmod_food.SCHARFESEISEN, 1), new Object[]
{
"E", 'E' , Item.ingotIron
});
ModLoader.addRecipe(new ItemStack(mod_foodmod_food.beil, 1), new Object[]
{
"SSS", "SSA", "##A", 'S' , mod_foodmod_food.STAL, 'A' , Item.stick
});
ModLoader.addRecipe(new ItemStack(mod_foodmod_food.messer, 1), new Object[]
{
"##S", "#SS", "#SE", 'S' , mod_foodmod_food.SCHARFESEISEN, 'E' , Item.stick
});
ModLoader.addRecipe(new ItemStack(mod_foodmod_food.rbacon, 3), new Object[]
{
"BBB", 'B' , Item.porkRaw
});
ModLoader.addRecipe(new ItemStack(mod_foodmod_food.crepe, 1), new Object[]
{
"#M#", "MMM", "#M#", 'M' , mod_foodmod_food.mehl
});
ModLoader.addRecipe(new ItemStack(mod_foodmod_food.crepez, 1), new Object[]
{
"C", "Z", 'C' , Item.sugar, 'Z' , mod_foodmod_food.crepe
});
ModLoader.addRecipe(new ItemStack(mod_foodmod_food.kakaopulver, 2), new Object[]
{
"K", Character.valueOf('K'), new ItemStack(Item.dyePowder, 1, 3)
});
ModLoader.addRecipe(new ItemStack(mod_foodmod_food.kakao, 1), new Object[]
{
"G", "M", "S", 'G' , Item.glassBottle, 'M' , Item.bucketMilk, 'S' , mod_foodmod_food.kakaopulver
});
ModLoader.addRecipe(new ItemStack(mod_foodmod_food.würstchen, 1), new Object[]
{
"D", "S", 'D' , mod_foodmod_food.darm, 'S' , mod_foodmod_food.mett
});
ModLoader.addRecipe(new ItemStack(mod_foodmod_food.wafel, 1), new Object[]
{
"#MM", "##M", 'M' , mod_foodmod_food.mehl
});
ModLoader.addRecipe(new ItemStack(mod_foodmod_food.eis, 1), new Object[]
{
"W", "S", 'W' , mod_foodmod_food.wafel, 'S' , Item.snowball
});
ModLoader.addRecipe(new ItemStack(mod_foodmod_food.seis, 1), new Object[]
{
"K", "E", 'K' , mod_foodmod_food.kakaopulver, 'E' , mod_foodmod_food.eis
});
ModLoader.addRecipe(new ItemStack(mod_foodmod_food.schockostreu, 1), new Object[]
{
"S", 'S' , mod_foodmod_food.schoko
});
ModLoader.addRecipe(new ItemStack(mod_foodmod_food.seismitst, 1), new Object[]
{
"S", "E", 'S' , mod_foodmod_food.schockostreu, 'E' , mod_foodmod_food.seis
});
ModLoader.addRecipe(new ItemStack(mod_foodmod_food.seismitst, 1), new Object[]
{
"P", "E", "W", 'P' , mod_foodmod_food.schockostreu, 'E' , mod_foodmod_food.kakaopulver, 'W' , mod_foodmod_food.eis
});
ModLoader.addRecipe(new ItemStack(mod_foodmod_food.schockocrepe, 1), new Object[]
{
"S", "C", 'S' , mod_foodmod_food.schoko, 'C' , mod_foodmod_food.crepe
});
ModLoader.addRecipe(new ItemStack(mod_foodmod_food.eismitgs, 1), new Object[]
{
"S", "C", 'S' , mod_foodmod_food.geschmolzeneschokolade, 'C' , mod_foodmod_food.eis
});
ModLoader.addRecipe(new ItemStack(mod_foodmod_food.nutela, 1), new Object[]
{
"N", "H", 'N' , mod_foodmod_food.geschmolzeneschokolade, 'H' , mod_foodmod_food.halbbrot
});
ModLoader.addRecipe(new ItemStack(mod_foodmod_food.popcorn, 1), new Object[]
{
"S", "L", 'S' , mod_foodmod_food.popcorns, 'L' , Item.bowlEmpty
});
//meine craftings ende
}
}
package net.minecraft.src;
public class EntityCow extends EntityAnimal
{
public EntityCow(World par1World)
{
super(par1World);
this.texture = "/mob/cow.png";
this.setSize(0.9F, 1.3F);
this.getNavigator().setAvoidsWater(true);
this.tasks.addTask(0, new EntityAISwimming(this));
this.tasks.addTask(1, new EntityAIPanic(this, 0.38F));
this.tasks.addTask(2, new EntityAIMate(this, 0.2F));
this.tasks.addTask(3, new EntityAITempt(this, 0.25F, Item.wheat.shiftedIndex, false));
this.tasks.addTask(4, new EntityAIFollowParent(this, 0.25F));
this.tasks.addTask(5, new EntityAIWander(this, 0.2F));
this.tasks.addTask(6, new EntityAIWatchClosest(this, EntityPlayer.class, 6.0F));
this.tasks.addTask(7, new EntityAILookIdle(this));
}
/**
* Returns true if the newer Entity AI code should be run
*/
public boolean isAIEnabled()
{
return true;
}
public int getMaxHealth()
{
return 10;
}
/**
* Returns the sound this mob makes while it's alive.
*/
protected String getLivingSound()
{
return "mob.cow";
}
/**
* Returns the sound this mob makes when it is hurt.
*/
protected String getHurtSound()
{
return "mob.cowhurt";
}
/**
* Returns the sound this mob makes on death.
*/
protected String getDeathSound()
{
return "mob.cowhurt";
}
/**
* Returns the volume for the sounds this mob makes.
*/
protected float getSoundVolume()
{
return 0.4F;
}
/**
* Returns the item ID for the item the mob drops on death.
*/
protected int getDropItemId()
{
return Item.leather.shiftedIndex;
}
/**
* Drop 0-2 items of this living's type
*/
protected void dropFewItems(boolean par1, int par2)
{
int var3 = this.rand.nextInt(3) + this.rand.nextInt(1 + par2);
int var4;
for (var4 = 0; var4 < var3; ++var4)
{
this.dropItem(Item.leather.shiftedIndex, 1);
}
var3 = this.rand.nextInt(3) + 1 + this.rand.nextInt(1 + par2);
for (var4 = 0; var4 < var3; ++var4)
{
if (this.isBurning())
{
this.dropItem(Item.beefCooked.shiftedIndex, 1);
}
else
{
this.dropItem(Item.beefRaw.shiftedIndex, 1);
this.dropItem(mod_foodmod_food.darm.shiftedIndex, 1);
}
}
}
/**
* Called when a player interacts with a mob. e.g. gets milk from a cow, gets into the saddle on a pig.
*/
public boolean interact(EntityPlayer par1EntityPlayer)
{
ItemStack var2 = par1EntityPlayer.inventory.getCurrentItem();
if (var2 != null && var2.itemID == Item.bucketEmpty.shiftedIndex)
{
if (--var2.stackSize <= 0)
{
par1EntityPlayer.inventory.setInventorySlotContent s(par1EntityPlayer.inventory.currentItem, new ItemStack(Item.bucketMilk));
}
else if (!par1EntityPlayer.inventory.addItemStackToInvento ry(new ItemStack(Item.bucketMilk)))
{
par1EntityPlayer.dropPlayerItem(new ItemStack(Item.bucketMilk.shiftedIndex, 1, 0));
}
return true;
}
else
{
return super.interact(par1EntityPlayer);
}
}
/**
* This function is used when two same-species animals in 'love mode' breed to generate the new baby animal.
*/
public EntityAnimal spawnBabyAnimal(EntityAnimal par1EntityAnimal)
{
return new EntityCow(this.worldObj);
}
}
die entity pig:
[/spoiler[package net.minecraft.src;
public class EntityPig extends EntityAnimal
{
public EntityPig(World par1World)
{
super(par1World);
this.texture = "/mob/pig.png";
this.setSize(0.9F, 0.9F);
this.getNavigator().setAvoidsWater(true);
float var2 = 0.25F;
this.tasks.addTask(0, new EntityAISwimming(this));
this.tasks.addTask(1, new EntityAIPanic(this, 0.38F));
this.tasks.addTask(2, new EntityAIMate(this, var2));
this.tasks.addTask(3, new EntityAITempt(this, 0.25F, Item.wheat.shiftedIndex, false));
this.tasks.addTask(4, new EntityAIFollowParent(this, 0.28F));
this.tasks.addTask(5, new EntityAIWander(this, var2));
this.tasks.addTask(6, new EntityAIWatchClosest(this, EntityPlayer.class, 6.0F));
this.tasks.addTask(7, new EntityAILookIdle(this));
}
/**
* Returns true if the newer Entity AI code should be run
*/
public boolean isAIEnabled()
{
return true;
}
public int getMaxHealth()
{
return 10;
}
protected void entityInit()
{
super.entityInit();
this.dataWatcher.addObject(16, Byte.valueOf((byte)0));
}
/**
* (abstract) Protected helper method to write subclass entity data to NBT.
*/
public void writeEntityToNBT(NBTTagCompound par1NBTTagCompound)
{
super.writeEntityToNBT(par1NBTTagCompound);
par1NBTTagCompound.setBoolean("Saddle", this.getSaddled());
}
/**
* (abstract) Protected helper method to read subclass entity data from NBT.
*/
public void readEntityFromNBT(NBTTagCompound par1NBTTagCompound)
{
super.readEntityFromNBT(par1NBTTagCompound);
this.setSaddled(par1NBTTagCompound.getBoolean("Sad dle"));
}
/**
* Returns the sound this mob makes while it's alive.
*/
protected String getLivingSound()
{
return "mob.pig";
}
/**
* Returns the sound this mob makes when it is hurt.
*/
protected String getHurtSound()
{
return "mob.pig";
}
/**
* Returns the sound this mob makes on death.
*/
protected String getDeathSound()
{
return "mob.pigdeath";
}
/**
* Called when a player interacts with a mob. e.g. gets milk from a cow, gets into the saddle on a pig.
*/
public boolean interact(EntityPlayer par1EntityPlayer)
{
if (super.interact(par1EntityPlayer))
{
return true;
}
else if (this.getSaddled() && !this.worldObj.isRemote && (this.riddenByEntity == null || this.riddenByEntity == par1EntityPlayer))
{
par1EntityPlayer.mountEntity(this);
return true;
}
else
{
return false;
}
}
/**
* Returns the item ID for the item the mob drops on death.
*/
protected int getDropItemId()
{
return this.isBurning() ? Item.porkCooked.shiftedIndex : Item.porkRaw.shiftedIndex;
}
/**
* Drop 0-2 items of this living's type
*/
protected void dropFewItems(boolean par1, int par2)
{
int var3 = this.rand.nextInt(3) + 1 + this.rand.nextInt(1 + par2);
for (int var4 = 0; var4 < var3; ++var4)
{
if (this.isBurning())
{
this.dropItem(Item.porkCooked.shiftedIndex, 1);
this.dropItem(mod_foodmod_food.bacon.shiftedIndex, 1);
}
else
{
this.dropItem(Item.porkRaw.shiftedIndex, 1);
this.dropItem(mod_foodmod_food.darm.shiftedIndex, 1);
this.dropItem(mod_foodmod_food.rbacon.shiftedIndex , 1);
}
}
}
/**
* Returns true if the pig is saddled.
*/
public boolean getSaddled()
{
return (this.dataWatcher.getWatchableObjectByte(16) & 1) != 0;
}
/**
* Set or remove the saddle of the pig.
*/
public void setSaddled(boolean par1)
{
if (par1)
{
this.dataWatcher.updateObject(16, Byte.valueOf((byte)1));
}
else
{
this.dataWatcher.updateObject(16, Byte.valueOf((byte)0));
}
}
/**
* Called when a lightning bolt hits the entity.
*/
public void onStruckByLightning(EntityLightningBolt par1EntityLightningBolt)
{
if (!this.worldObj.isRemote)
{
EntityPigZombie var2 = new EntityPigZombie(this.worldObj);
var2.setLocationAndAngles(this.posX, this.posY, this.posZ, this.rotationYaw, this.rotationPitch);
this.worldObj.spawnEntityInWorld(var2);
this.setDead();
}
}
/**
* Called when the mob is falling. Calculates and applies fall damage.
*/
protected void fall(float par1)
{
super.fall(par1);
if (par1 > 5.0F && this.riddenByEntity instanceof EntityPlayer)
{
((EntityPlayer)this.riddenByEntity).triggerAchieve ment(AchievementList.flyPig);
}
}
/**
* This function is used when two same-species animals in 'love mode' breed to generate the new baby animal.
*/
public EntityAnimal spawnBabyAnimal(EntityAnimal par1EntityAnimal)
{
return new EntityPig(this.worldObj);
}
}
package net.minecraft.src;
public enum EnumToolMaterial
{
WOOD(0, 59, 2.0F, 0, 15),
STONE(1, 131, 4.0F, 1, 5),
IRON(2, 250, 6.0F, 2, 14),
EMERALD(3, 1561, 8.0F, 3, 10),
GOLD(0, 32, 12.0F, 0, 22),
MESSER(4, 250, 8.0F, 3, 10),
BEILE(5, 1561, 6.0F, 3, 14);
/**
* The level of material this tool can harvest (3 = DIAMOND, 2 = IRON, 1 = STONE, 0 = IRON/GOLD)
*/
private final int harvestLevel;
/**
* The number of uses this material allows. (wood = 59, stone = 131, iron = 250, diamond = 1561, gold = 32)
*/
private final int maxUses;
/**
* The strength of this tool material against blocks which it is effective against.
*/
private final float efficiencyOnProperMaterial;
/** Damage versus entities. */
private final int damageVsEntity;
/** Defines the natural enchantability factor of the material. */
private final int enchantability;
private EnumToolMaterial(int par3, int par4, float par5, int par6, int par7)
{
this.harvestLevel = par3;
this.maxUses = par4;
this.efficiencyOnProperMaterial = par5;
this.damageVsEntity = par6;
this.enchantability = par7;
}
/**
* The number of uses this material allows. (wood = 59, stone = 131, iron = 250, diamond = 1561, gold = 32)
*/
public int getMaxUses()
{
return this.maxUses;
}
/**
* The strength of this tool material against blocks which it is effective against.
*/
public float getEfficiencyOnProperMaterial()
{
return this.efficiencyOnProperMaterial;
}
/**
* Damage versus entities.
*/
public int getDamageVsEntity()
{
return this.damageVsEntity;
}
/**
* The level of material this tool can harvest (3 = DIAMOND, 2 = IRON, 1 = STONE, 0 = IRON/GOLD)
*/
public int getHarvestLevel()
{
return this.harvestLevel;
}
/**
* Return the natural enchantability factor of the material.
*/
public int getEnchantability()
{
return this.enchantability;
}
}
die entity snowman:
package net.minecraft.src;
public class EntitySnowman extends EntityGolem
{
public EntitySnowman(World par1World)
{
super(par1World);
this.texture = "/mob/snowman.png";
this.setSize(0.4F, 1.8F);
this.getNavigator().setAvoidsWater(true);
this.tasks.addTask(1, new EntityAIArrowAttack(this, 0.25F, 2, 20));
this.tasks.addTask(2, new EntityAIWander(this, 0.2F));
this.tasks.addTask(3, new EntityAIWatchClosest(this, EntityPlayer.class, 6.0F));
this.tasks.addTask(4, new EntityAILookIdle(this));
this.targetTasks.addTask(1, new EntityAINearestAttackableTarget(this, EntityMob.class, 16.0F, 0, true));
}
/**
* Returns true if the newer Entity AI code should be run
*/
public boolean isAIEnabled()
{
return true;
}
public int getMaxHealth()
{
return 4;
}
/**
* Called frequently so the entity can update its state every tick as required. For example, zombies and skeletons
* use this to react to sunlight and start to burn.
*/
public void onLivingUpdate()
{
super.onLivingUpdate();
if (this.isWet())
{
this.attackEntityFrom(DamageSource.drown, 1);
}
int var1 = MathHelper.floor_double(this.posX);
int var2 = MathHelper.floor_double(this.posZ);
if (this.worldObj.getBiomeGenForCoords(var1, var2).getFloatTemperature() > 1.0F)
{
this.attackEntityFrom(DamageSource.onFire, 1);
}
for (var1 = 0; var1 < 4; ++var1)
{
var2 = MathHelper.floor_double(this.posX + (double)((float)(var1 % 2 * 2 - 1) * 0.25F));
int var3 = MathHelper.floor_double(this.posY);
int var4 = MathHelper.floor_double(this.posZ + (double)((float)(var1 / 2 % 2 * 2 - 1) * 0.25F));
if (this.worldObj.getBlockId(var2, var3, var4) == 0 && this.worldObj.getBiomeGenForCoords(var2, var4).getFloatTemperature() < 0.8F && Block.snow.canPlaceBlockAt(this.worldObj, var2, var3, var4))
{
this.worldObj.setBlockWithNotify(var2, var3, var4, Block.snow.blockID);
}
}
}
/**
* Returns the item ID for the item the mob drops on death.
*/
protected int getDropItemId()
{
return Item.snowball.shiftedIndex;
}
/**
* Drop 0-2 items of this living's type
*/
protected void dropFewItems(boolean par1, int par2)
{
int var3 = this.rand.nextInt(16);
for (int var4 = 0; var4 < var3; ++var4)
{
this.dropItem(Item.snowball.shiftedIndex, 1);
this.dropItem(mod_foodmod_food.eis.shiftedIndex, 1);
}
}
}
Minecraft has crashed!
----------------------
Minecraft has stopped running because it encountered a problem; ModLoader has failed to initialize.
This error has been saved to C:\Users\Jason\AppData\Roaming\.minecraft\crash-reports\crash-2012-09-26_20.45.12-client.txt for your convenience. Please include a copy of this file if you report this crash to anyone.
--- BEGIN ERROR REPORT 39069a5f --------
Generated 26.09.12 20:45
- Minecraft Version: 1.3.2
- Operating System: Windows 7 (amd64) version 6.1
- Java Version: 1.7.0_05, Oracle Corporation
- Java VM Version: Java HotSpot(TM) 64-Bit Server VM (mixed mode), Oracle Corporation
- Memory: 402027768 bytes (383 MB) / 514523136 bytes (490 MB) up to 954466304 bytes (910 MB)
- JVM Flags: 2 total; -Xms512m -Xmx1024m
- ModLoader: Mods loaded: 2
ModLoader 1.3.2
mod_foodmod_food null
java.lang.IllegalArgumentException: MALFORMED
at java.util.zip.ZipCoder.toString(Unknown Source)
at java.util.zip.ZipInputStream.readLOC(Unknown Source)
at java.util.zip.ZipInputStream.getNextEntry(Unknown Source)
at ModLoader.readFromClassPath(ModLoader.java:1322)
at ModLoader.init(ModLoader.java:931)
at ModLoader.addAllRenderers(ModLoader.java:185)
at avy.<init>(RenderManager.java:87)
at avy.<clinit>(RenderManager.java:14)
at net.minecraft.client.Minecraft.a(SourceFile:260)
at net.minecraft.client.Minecraft.run(SourceFile:516)
at java.lang.Thread.run(Unknown Source)
--- END ERROR REPORT 20a00084 ----------[spoiler]
sory das ich das mit spoiler nich kann ;( hoffe stört nich wen doch kanns ja vll ihrgentwer richten