1

Modloader Entity Help

Willsr71 6/19/13 10:37 pm
177
6/20/2013 7:19 pm
I am updating a mod from 1.3.1 and ended up recoding it, but I am getting errors whien I try to compile it. I am using modloader and get the same errors with all the entities. Here is the code for one of them. They most comprise of all the same stuff.

package net.minecraft.src;

public class EntityCookieMonster extends Entity
{
public EntityCookieMonster(World par1World)
{
super(par1World);
this.texture = "/humans/CookieMonster.png";
this.moveSpeed = 1.0F;
}

public int getMaxHealth()
{
return 20;
}
protected String getLivingSound()
{
return "mob.villager.default";
}
protected String getHurtSound()
{
return "mob.villager.defaulthurt";
}
protected String getDeathSound()
{
return "mob.villager.defaultdeath";
}
protected int getDropItemId()
{
return Item.cookie.itemID;
}
protected boolean canDespawn()
{
return false;
}
}
Posted by
Willsr71
Level 53 : Grandmaster Programmer
197

  Have something to say?

JoinSign in

1

Willsr71
06/20/2013 7:19 pm
Level 53 : Grandmaster Programmer
*Bumpity bump bump*
1

Welcome