1

Modloader Entity Help

Willsr71's Avatar Willsr716/19/13 10:37 pm
1 emeralds 152 1
6/20/2013 7:19 pm
Willsr71's Avatar Willsr71
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's Avatar
Willsr71
Level 53 : Grandmaster Programmer
197

Create an account or sign in to comment.

1

Willsr71
06/20/2013 7:19 pm
Level 53 : Grandmaster Programmer
Willsr71's Avatar
*Bumpity bump bump*
1
Planet Minecraft

Website

© 2010 - 2024
www.planetminecraft.com

Welcome