1

HELP I Cant Debug My Mod!

robeth 8/22/11 9:21 am
62
I Made A New Mob, The "Robeth" Mob And I Made All Of The Class files But When I Compile It It GIves 1 Error. The Error Is
src/minecraft/net/minecraft/src/mod_SpawnRobeth.java:6: invalid method declaration; return type required public mod_SpawnRobeth();


File 1: EntityRobeth
package net.minecraft.src;

public class EntityRobeth extends EntityCreature
{

public EntityRobeth(World world)
{
super(world);
//This is the texture for your mob
texture = "/mob/robeth.png";
}

protected int getDropItemId()
{
//This is the item your mob will drop
return Item.diamond.shiftedIndex;
}
}



File 2: mod_Robeth
package net.minecraft.src;

import java.lang.reflect.Method;

public class mod_Robeth extends BaseMod
{
public mod_Robeth()
{
}

public void AddEntityID()
{
//This defines your entity. Class name, entity name, and then the entity ID.
EntityList.addMapping(EntityRobeth.class, "Robeth", ModLoader.getUniqueEntityId(5000));
//This adds your mob to the spawn list.
spawnlist.addCreaturesToSpawnList("Surface biomes", EntityRobeth.class);

}
}



File 3: mod_SpawnRobeth
package net.minecraft.src;

public class mod_SpawnRobeh extends BaseMod
{

public mod_SpawnRobeth();
{
//This adds your mob to the spawn list.
spawnlist.addCreaturesToSpawnList("Surface biomes", EntityRobeth.class);
}
}



And For EntityList I Added
addMapping(EntityRobeth.class, "Robeth", 5000);


What Do I Do?
-Thanks, Robeth
Posted by
robeth
Level 4 : Apprentice Modder
0

  Have something to say?

JoinSign in

Welcome