I have figured it out and it was just me being stupid. The following worked
public class TileEntitySpawn extends TileEntity {
private int timer;
public TileEntitySpawn(){
timer = 100;
}
@Override
public void updateEntity() {
if (timer == 0 && !worldObj.isRemote) {
timespawner(worldObj, xCoord +1, yCoord +2, zCoord +1, null);
timer = 100;
}
timer--;
}
public static void timespawner(World par1World, int i, int j, int k, Entity par5Entity) {
EntityCustomMob CustomMob = new EntityCustomMob(par1World);
CustomMob.setLocationAndAngles(i, j, k, 0.0F, 0.0F);
par1World.spawnEntityInWorld(CustomMob);
}
}
I do have another question though, which function would I use to synchronize my timer with the world time