Jump to content

Recommended Posts

Posted

Ok so Im making a new dimension which I made a custom biome for. Im trying to get the Custom Spider im making to spawn into the biome. So here is my biome class:

package tutorial;

import java.util.Random;

import net.minecraft.block.Block;
import net.minecraft.src.ModLoader;
import net.minecraft.world.World;
import net.minecraft.world.biome.BiomeGenBase;

public class BiomeShine extends BiomeGenBase {

public BiomeShine(int par1) 
{
	super(par1);
	this.setBiomeName("Shrine Biome");
	this.fillerBlock = (byte) mod_tutorial.SDirt.blockID;
	this.topBlock = (byte) mod_tutorial.SGrass.blockID;
	this.maxHeight = 0.5f;
	this.minHeight = 0;

}
public  void decorate(World par1World, Random par2Random, int par3, int par4)
{
	super.decorate(par1World,par2Random,par3,par4);

	trees(par1World, par2Random,par3,par4);



}


public void trees(World par1World, Random par2Random, int par3, int par4)
{
	for(int a = 1; a < 20; a++)
	{
		int RandPosX = par3 + par2Random.nextInt(16);
		int RandPosY = par3 + par2Random.nextInt(128);
		int RandPosZ = par4 + par2Random.nextInt(16);
		(new WorldGenShrineTrees(true)).generate(par1World, par2Random, RandPosX, RandPosY, RandPosZ);

	}
}


}

 

Here is my EntitySpider class:

package net.minecraft.entity.monster;

import cpw.mods.fml.relauncher.Side;
import cpw.mods.fml.relauncher.SideOnly;
import net.minecraft.entity.Entity;
import net.minecraft.entity.EnumCreatureAttribute;
import net.minecraft.item.Item;
import net.minecraft.potion.Potion;
import net.minecraft.potion.PotionEffect;
import net.minecraft.util.MathHelper;
import net.minecraft.world.World;

public class EntitySpider extends EntityMob
{
    public EntitySpider(World par1World)
    {
        super(par1World);
        this.texture = "/mob/spider.png";
        this.setSize(1.4F, 0.9F);
        this.moveSpeed = 0.8F;
    }

    protected void entityInit()
    {
        super.entityInit();
        this.dataWatcher.addObject(16, new Byte((byte)0));
    }

    /**
     * Called to update the entity's position/logic.
     */
    public void onUpdate()
    {
        super.onUpdate();

        if (!this.worldObj.isRemote)
        {
            this.setBesideClimbableBlock(this.isCollidedHorizontally);
        }
    }

    public int getMaxHealth()
    {
        return 16;
    }

    /**
     * Returns the Y offset from the entity's position for any entity riding this one.
     */
    public double getMountedYOffset()
    {
        return (double)this.height * 0.75D - 0.5D;
    }

    /**
     * Finds the closest player within 16 blocks to attack, or null if this Entity isn't interested in attacking
     * (Animals, Spiders at day, peaceful PigZombies).
     */
    protected Entity findPlayerToAttack()
    {
        float f = this.getBrightness(1.0F);

        if (f < 0.5F)
        {
            double d0 = 16.0D;
            return this.worldObj.getClosestVulnerablePlayerToEntity(this, d0);
        }
        else
        {
            return null;
        }
    }

    /**
     * Returns the sound this mob makes while it's alive.
     */
    protected String getLivingSound()
    {
        return "mob.spider.say";
    }

    /**
     * Returns the sound this mob makes when it is hurt.
     */
    protected String getHurtSound()
    {
        return "mob.spider.say";
    }

    /**
     * Returns the sound this mob makes on death.
     */
    protected String getDeathSound()
    {
        return "mob.spider.death";
    }

    /**
     * Plays step sound at given x, y, z for the entity
     */
    protected void playStepSound(int par1, int par2, int par3, int par4)
    {
        this.playSound("mob.spider.step", 0.15F, 1.0F);
    }

    /**
     * Basic mob attack. Default to touch of death in EntityCreature. Overridden by each mob to define their attack.
     */
    protected void attackEntity(Entity par1Entity, float par2)
    {
        float f1 = this.getBrightness(1.0F);

        if (f1 > 0.5F && this.rand.nextInt(100) == 0)
        {
            this.entityToAttack = null;
        }
        else
        {
            if (par2 > 2.0F && par2 < 6.0F && this.rand.nextInt(10) == 0)
            {
                if (this.onGround)
                {
                    double d0 = par1Entity.posX - this.posX;
                    double d1 = par1Entity.posZ - this.posZ;
                    float f2 = MathHelper.sqrt_double(d0 * d0 + d1 * d1);
                    this.motionX = d0 / (double)f2 * 0.5D * 0.800000011920929D + this.motionX * 0.20000000298023224D;
                    this.motionZ = d1 / (double)f2 * 0.5D * 0.800000011920929D + this.motionZ * 0.20000000298023224D;
                    this.motionY = 0.4000000059604645D;
                }
            }
            else
            {
                super.attackEntity(par1Entity, par2);
            }
        }
    }

    /**
     * Returns the item ID for the item the mob drops on death.
     */
    protected int getDropItemId()
    {
        return Item.silk.itemID;
    }

    /**
     * Drop 0-2 items of this living's type. @param par1 - Whether this entity has recently been hit by a player. @param
     * par2 - Level of Looting used to kill this mob.
     */
    protected void dropFewItems(boolean par1, int par2)
    {
        super.dropFewItems(par1, par2);

        if (par1 && (this.rand.nextInt(3) == 0 || this.rand.nextInt(1 + par2) > 0))
        {
            this.dropItem(Item.spiderEye.itemID, 1);
        }
    }

    /**
     * returns true if this entity is by a ladder, false otherwise
     */
    public boolean isOnLadder()
    {
        return this.isBesideClimbableBlock();
    }

    /**
     * Sets the Entity inside a web block.
     */
    public void setInWeb() {}

    @SideOnly(Side.CLIENT)

    /**
     * How large the spider should be scaled.
     */
    public float spiderScaleAmount()
    {
        return 1.0F;
    }

    /**
     * Get this Entity's EnumCreatureAttribute
     */
    public EnumCreatureAttribute getCreatureAttribute()
    {
        return EnumCreatureAttribute.ARTHROPOD;
    }

    public boolean isPotionApplicable(PotionEffect par1PotionEffect)
    {
        return par1PotionEffect.getPotionID() == Potion.poison.id ? false : super.isPotionApplicable(par1PotionEffect);
    }

    /**
     * Returns true if the WatchableObject (Byte) is 0x01 otherwise returns false. The WatchableObject is updated using
     * setBesideClimableBlock.
     */
    public boolean isBesideClimbableBlock()
    {
        return (this.dataWatcher.getWatchableObjectByte(16) & 1) != 0;
    }

    /**
     * Updates the WatchableObject (Byte) created in entityInit(), setting it to 0x01 if par1 is true or 0x00 if it is
     * false.
     */
    public void setBesideClimbableBlock(boolean par1)
    {
        byte b0 = this.dataWatcher.getWatchableObjectByte(16);

        if (par1)
        {
            b0 = (byte)(b0 | 1);
        }
        else
        {
            b0 &= -2;
        }

        this.dataWatcher.updateObject(16, Byte.valueOf(b0));
    }

    /**
     * Initialize this creature.
     */
    public void initCreature()
    {
        if (this.worldObj.rand.nextInt(100) == 0)
        {
            EntitySkeleton entityskeleton = new EntitySkeleton(this.worldObj);
            entityskeleton.setLocationAndAngles(this.posX, this.posY, this.posZ, this.rotationYaw, 0.0F);
            entityskeleton.initCreature();
            this.worldObj.spawnEntityInWorld(entityskeleton);
            entityskeleton.mountEntity(this);
        }
    }
}

 

Here is my RenderShineSpider class:

package tutorial;

import cpw.mods.fml.relauncher.Side;
import cpw.mods.fml.relauncher.SideOnly;
import net.minecraft.client.model.ModelSpider;
import net.minecraft.client.renderer.OpenGlHelper;
import net.minecraft.client.renderer.entity.RenderLiving;
import net.minecraft.entity.EntityLiving;
import net.minecraft.entity.monster.EntitySpider;
import org.lwjgl.opengl.GL11;

@SideOnly(Side.CLIENT)
public class RenderShineSpider extends RenderLiving
{
    public RenderShineSpider()
    {
        super(new ModelSpider(), 1.0F);
        this.setRenderPassModel(new ModelSpider());
    }

    protected float setSpiderDeathMaxRotation(EntitySpider par1EntitySpider)
    {
        return 180.0F;
    }

    /**
     * Sets the spider's glowing eyes
     */
    protected int setSpiderEyeBrightness(EntitySpider par1EntitySpider, int par2, float par3)
    {
        if (par2 != 0)
        {
            return -1;
        }
        else
        {
            this.loadTexture("/mob/Shinespider_eyes.png");
            float f1 = 1.0F;
            GL11.glEnable(GL11.GL_BLEND);
            GL11.glDisable(GL11.GL_ALPHA_TEST);
            GL11.glBlendFunc(GL11.GL_ONE, GL11.GL_ONE);

            if (par1EntitySpider.getHasActivePotion())
            {
                GL11.glDepthMask(false);
            }
            else
            {
                GL11.glDepthMask(true);
            }

            char c0 = 61680;
            int j = c0 % 65536;
            int k = c0 / 65536;
            OpenGlHelper.setLightmapTextureCoords(OpenGlHelper.lightmapTexUnit, (float)j / 1.0F, (float)k / 1.0F);
            GL11.glColor4f(1.0F, 1.0F, 1.0F, 1.0F);
            GL11.glColor4f(1.0F, 1.0F, 1.0F, f1);
            return 1;
        }
    }

    protected void scaleSpider(EntitySpider par1EntitySpider, float par2)
    {
        float f1 = par1EntitySpider.spiderScaleAmount();
        GL11.glScalef(f1, f1, f1);
    }

    /**
     * Allows the render to do any OpenGL state modifications necessary before the model is rendered. Args:
     * entityLiving, partialTickTime
     */
    protected void preRenderCallback(EntityLiving par1EntityLiving, float par2)
    {
        this.scaleSpider((EntitySpider)par1EntityLiving, par2);
    }

    protected float getDeathMaxRotation(EntityLiving par1EntityLiving)
    {
        return this.setSpiderDeathMaxRotation((EntitySpider)par1EntityLiving);
    }

    /**
     * Queries whether should render the specified pass or not.
     */
    protected int shouldRenderPass(EntityLiving par1EntityLiving, int par2, float par3)
    {
        return this.setSpiderEyeBrightness((EntitySpider)par1EntityLiving, par2, par3);
    }
}

 

And here is some code in my mod_tutorial class:

EntityRegistry.addSpawn(EntityCreeper.class, 7, 1, 2, EnumCreatureType.creature, this.Shine);
LanguageRegistry.instance().addStringLocalization("entity.ShineToolPack.ShineSpider.name", "Shine Spider");

//Registering Entites
EntityRegistry.registerModEntity(ShineSpider.class, "ShineSpider", 20, this, 80, 3, true);


       //Registering Eggs
        registerEntityEgg(ShineSpider.class, 0x25630C, 0xEB46E0);

}




public static void registerEntityEgg(Class<? extends Entity> entity, int primaryColor, int secondaryColor)
{
        int id = getUniqueEntityId();
        EntityList.IDtoClassMapping.put(id, entity);
        EntityList.entityEggs.put(id, new EntityEggInfo(id, primaryColor, secondaryColor));
}

public static int getUniqueEntityId(){
    do
    {
            startEntityId++;
    }
    while(EntityList.getStringFromID(startEntityId) != null);
   
    return startEntityId;
}
}

 

Here is the error from the eclipes console:

2013-04-16 18:55:29 [iNFO] [ForgeModLoader] Forge Mod Loader version 5.1.8.611 for Minecraft 1.5.1 loading
2013-04-16 18:55:29 [iNFO] [ForgeModLoader] Java is Java HotSpot(TM) 64-Bit Server VM, version 1.7.0_13, running on Windows 8:amd64:6.2, installed at C:\Program Files\Java\jre7
2013-04-16 18:55:29 [iNFO] [ForgeModLoader] Managed to load a deobfuscated Minecraft name- we are in a deobfuscated environment. Skipping runtime deobfuscation
2013-04-16 18:55:31 [iNFO] [sTDOUT] 229 recipes
2013-04-16 18:55:31 [iNFO] [sTDOUT] 27 achievements
2013-04-16 18:55:31 [iNFO] [Minecraft-Client] Setting user: Player134
2013-04-16 18:55:31 [iNFO] [sTDOUT] (Session ID is -)
2013-04-16 18:55:31 [iNFO] [sTDERR] Client asked for parameter: server
2013-04-16 18:55:31 [iNFO] [Minecraft-Client] LWJGL Version: 2.4.2
2013-04-16 18:55:32 [iNFO] [MinecraftForge] Attempting early MinecraftForge initialization
2013-04-16 18:55:32 [iNFO] [sTDOUT] MinecraftForge v7.7.1.611 Initialized
2013-04-16 18:55:32 [iNFO] [ForgeModLoader] MinecraftForge v7.7.1.611 Initialized
2013-04-16 18:55:32 [iNFO] [sTDOUT] Replaced 85 ore recipies
2013-04-16 18:55:32 [iNFO] [MinecraftForge] Completed early MinecraftForge initialization
2013-04-16 18:55:32 [iNFO] [ForgeModLoader] Reading custom logging properties from C:\Users\jacks_000\Documents\My Games\Minecraft\Modding\MCP 1.5.1\jars\config\logging.properties
2013-04-16 18:55:32 [OFF] [ForgeModLoader] Logging level for ForgeModLoader logging is set to ALL
2013-04-16 18:55:32 [iNFO] [ForgeModLoader] Searching C:\Users\jacks_000\Documents\My Games\Minecraft\Modding\MCP 1.5.1\jars\mods for mods
2013-04-16 18:55:32 [iNFO] [ForgeModLoader] Attempting to reparse the mod container bin
2013-04-16 18:55:34 [iNFO] [ForgeModLoader] Forge Mod Loader has identified 4 mods to load
2013-04-16 18:55:34 [iNFO] [mcp] Activating mod mcp
2013-04-16 18:55:34 [iNFO] [FML] Activating mod FML
2013-04-16 18:55:34 [iNFO] [Forge] Activating mod Forge
2013-04-16 18:55:34 [iNFO] [shineToolPack] Activating mod ShineToolPack
2013-04-16 18:55:34 [iNFO] [ForgeModLoader] FML has found a non-mod file SinglePlayerCommands-MC1.5.1_V4.7.zip in your mods directory. It will now be injected into your classpath. This could severe stability issues, it should be removed if possible.
2013-04-16 18:55:34 [iNFO] [ForgeModLoader] Configured a dormant chunk cache size of 0
2013-04-16 18:55:34 [iNFO] [sTDOUT] 
2013-04-16 18:55:34 [iNFO] [sTDOUT] Starting up SoundSystem...
2013-04-16 18:55:34 [iNFO] [sTDOUT] Initializing LWJGL OpenAL
2013-04-16 18:55:34 [iNFO] [sTDOUT]     (The LWJGL binding of OpenAL.  For more information, see http://www.lwjgl.org)
2013-04-16 18:55:34 [iNFO] [sTDOUT] OpenAL initialized.
2013-04-16 18:55:35 [iNFO] [sTDOUT] 
2013-04-16 18:55:36 [iNFO] [Minecraft-Client] Found animation info for: textures/blocks/lava_flow.txt
2013-04-16 18:55:36 [iNFO] [Minecraft-Client] Found animation info for: textures/blocks/water_flow.txt
2013-04-16 18:55:36 [iNFO] [Minecraft-Client] Found animation info for: textures/blocks/fire_0.txt
2013-04-16 18:55:36 [iNFO] [Minecraft-Client] Found animation info for: textures/blocks/fire_1.txt
2013-04-16 18:55:36 [iNFO] [Minecraft-Client] Found animation info for: textures/blocks/lava.txt
2013-04-16 18:55:36 [iNFO] [Minecraft-Client] Found animation info for: textures/blocks/portal.txt
2013-04-16 18:55:36 [iNFO] [Minecraft-Client] Found animation info for: textures/blocks/water.txt
2013-04-16 18:55:36 [iNFO] [Minecraft-Client] Found animation info for: textures/items/clock.txt
2013-04-16 18:55:36 [iNFO] [Minecraft-Client] Found animation info for: textures/items/compass.txt
2013-04-16 18:55:36 [iNFO] [ForgeModLoader] Forge Mod Loader has successfully loaded 4 mods
2013-04-16 18:55:37 [iNFO] [Minecraft-Client] Found animation info for: textures/blocks/lava_flow.txt
2013-04-16 18:55:37 [iNFO] [Minecraft-Client] Found animation info for: textures/blocks/water_flow.txt
2013-04-16 18:55:37 [iNFO] [Minecraft-Client] Found animation info for: textures/blocks/fire_0.txt
2013-04-16 18:55:37 [iNFO] [Minecraft-Client] Found animation info for: textures/blocks/fire_1.txt
2013-04-16 18:55:37 [iNFO] [Minecraft-Client] Found animation info for: textures/blocks/lava.txt
2013-04-16 18:55:37 [iNFO] [Minecraft-Client] Found animation info for: textures/blocks/portal.txt
2013-04-16 18:55:37 [iNFO] [Minecraft-Client] Found animation info for: textures/blocks/water.txt
2013-04-16 18:55:38 [iNFO] [Minecraft-Client] Found animation info for: textures/items/clock.txt
2013-04-16 18:55:38 [iNFO] [Minecraft-Client] Found animation info for: textures/items/compass.txt
2013-04-16 18:55:48 [iNFO] [Minecraft-Server] Starting integrated minecraft server version 1.5.1
2013-04-16 18:55:48 [iNFO] [Minecraft-Server] Generating keypair
2013-04-16 18:55:49 [iNFO] [ForgeModLoader] Loading dimension 0 (Jackson03) (net.minecraft.server.integrated.IntegratedServer@7fd75a17)
2013-04-16 18:55:49 [iNFO] [ForgeModLoader] Loading dimension 20 (Jackson03) (net.minecraft.server.integrated.IntegratedServer@7fd75a17)
2013-04-16 18:55:49 [iNFO] [ForgeModLoader] Loading dimension 1 (Jackson03) (net.minecraft.server.integrated.IntegratedServer@7fd75a17)
2013-04-16 18:55:49 [iNFO] [ForgeModLoader] Loading dimension -1 (Jackson03) (net.minecraft.server.integrated.IntegratedServer@7fd75a17)
2013-04-16 18:55:49 [iNFO] [Minecraft-Server] Preparing start region for level 0
2013-04-16 18:55:50 [iNFO] [sTDOUT] loading single player
2013-04-16 18:55:50 [iNFO] [Minecraft-Server] Player134[/127.0.0.1:0] logged in with entity id 416 at (-286.4115071160419, 71.34637243592557, 147.07650171150348)
2013-04-16 18:55:51 [iNFO] [Minecraft-Server] Saving and pausing game...
2013-04-16 18:55:51 [iNFO] [Minecraft-Server] Saving chunks for level 'Jackson03'/Overworld
2013-04-16 18:55:51 [iNFO] [Minecraft-Server] Saving chunks for level 'Jackson03'/Nether
2013-04-16 18:55:51 [iNFO] [Minecraft-Server] Saving chunks for level 'Jackson03'/The End
2013-04-16 18:55:51 [iNFO] [Minecraft-Server] Saving chunks for level 'Jackson03'/Shine
2013-04-16 18:56:04 [iNFO] [sTDERR] java.lang.reflect.InvocationTargetException
2013-04-16 18:56:04 [iNFO] [sTDERR] 	at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
2013-04-16 18:56:04 [iNFO] [sTDERR] 	at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
2013-04-16 18:56:04 [iNFO] [sTDERR] 	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
2013-04-16 18:56:04 [iNFO] [sTDERR] 	at java.lang.reflect.Constructor.newInstance(Unknown Source)
2013-04-16 18:56:04 [iNFO] [sTDERR] 	at net.minecraft.entity.EntityList.createEntityByID(EntityList.java:204)
2013-04-16 18:56:04 [iNFO] [sTDERR] 	at net.minecraft.item.ItemMonsterPlacer.spawnCreature(ItemMonsterPlacer.java:111)
2013-04-16 18:56:04 [iNFO] [sTDERR] 	at net.minecraft.item.ItemMonsterPlacer.onItemUse(ItemMonsterPlacer.java:76)
2013-04-16 18:56:04 [iNFO] [sTDERR] 	at net.minecraft.item.ItemStack.tryPlaceItemIntoWorld(ItemStack.java:149)
2013-04-16 18:56:04 [iNFO] [sTDERR] 	at net.minecraft.item.ItemInWorldManager.activateBlockOrUseItem(ItemInWorldManager.java:425)
2013-04-16 18:56:04 [iNFO] [sTDERR] 	at net.minecraft.network.NetServerHandler.handlePlace(NetServerHandler.java:553)
2013-04-16 18:56:04 [iNFO] [sTDERR] 	at net.minecraft.network.packet.Packet15Place.processPacket(Packet15Place.java:79)
2013-04-16 18:56:04 [iNFO] [sTDERR] 	at net.minecraft.network.MemoryConnection.processReadPackets(MemoryConnection.java:89)
2013-04-16 18:56:04 [iNFO] [sTDERR] 	at net.minecraft.network.NetServerHandler.networkTick(NetServerHandler.java:134)
2013-04-16 18:56:04 [iNFO] [sTDERR] 	at net.minecraft.network.NetworkListenThread.networkTick(NetworkListenThread.java:53)
2013-04-16 18:56:04 [iNFO] [sTDERR] 	at net.minecraft.server.integrated.IntegratedServerListenThread.networkTick(IntegratedServerListenThread.java:109)
2013-04-16 18:56:04 [iNFO] [sTDERR] 	at net.minecraft.server.MinecraftServer.updateTimeLightAndEntities(MinecraftServer.java:674)
2013-04-16 18:56:04 [iNFO] [sTDERR] 	at net.minecraft.server.MinecraftServer.tick(MinecraftServer.java:570)
2013-04-16 18:56:04 [iNFO] [sTDERR] 	at net.minecraft.server.integrated.IntegratedServer.tick(IntegratedServer.java:127)
2013-04-16 18:56:04 [iNFO] [sTDERR] 	at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:468)
2013-04-16 18:56:04 [iNFO] [sTDERR] 	at net.minecraft.server.ThreadMinecraftServer.run(ThreadMinecraftServer.java:16)
2013-04-16 18:56:04 [iNFO] [sTDERR] Caused by: java.lang.IllegalArgumentException: Duplicate id value for 16!
2013-04-16 18:56:04 [iNFO] [sTDERR] 	at net.minecraft.entity.DataWatcher.addObject(DataWatcher.java:51)
2013-04-16 18:56:04 [iNFO] [sTDERR] 	at tutorial.ShineSpider.entityInit(ShineSpider.java:28)
2013-04-16 18:56:04 [iNFO] [sTDERR] 	at net.minecraft.entity.Entity.<init>(Entity.java:295)
2013-04-16 18:56:04 [iNFO] [sTDERR] 	at net.minecraft.entity.EntityLiving.<init>(EntityLiving.java:270)
2013-04-16 18:56:04 [iNFO] [sTDERR] 	at net.minecraft.entity.EntityCreature.<init>(EntityCreature.java:25)
2013-04-16 18:56:04 [iNFO] [sTDERR] 	at net.minecraft.entity.monster.EntityMob.<init>(EntityMob.java:19)
2013-04-16 18:56:04 [iNFO] [sTDERR] 	at net.minecraft.entity.monster.EntitySpider.<init>(EntitySpider.java:17)
2013-04-16 18:56:04 [iNFO] [sTDERR] 	at tutorial.ShineSpider.<init>(ShineSpider.java:19)
2013-04-16 18:56:04 [iNFO] [sTDERR] 	... 20 more
2013-04-16 18:56:04 [WARNING] [Minecraft-Server] Skipping Entity with id 301
2013-04-16 18:58:29 [iNFO] [Minecraft-Server] [Player134: Set own game mode to Survival Mode]
2013-04-16 18:58:29 [iNFO] [Minecraft-Client] [CHAT] Your game mode has been updated
2013-04-16 18:58:31 [iNFO] [Minecraft-Server] Player134 fell from a high place
2013-04-16 18:58:31 [iNFO] [Minecraft-Client] [CHAT] Player134 fell from a high place
2013-04-16 18:58:34 [iNFO] [ForgeModLoader] Unloading dimension 20
2013-04-16 18:58:39 [iNFO] [Minecraft-Server] [Player134: Set own game mode to Creative Mode]
2013-04-16 18:58:39 [iNFO] [Minecraft-Client] [CHAT] Your game mode has been updated
2013-04-16 18:58:41 [sEVERE] [ForgeModLoader] Detected leaking worlds in memory. There are 2 worlds that appear to be persisting. A mod is likely caching the world incorrectly

2013-04-16 18:58:41 [sEVERE] [ForgeModLoader] The world 7f7dec47 (Jackson03) has leaked.

2013-04-16 18:58:48 [iNFO] [sTDERR] java.lang.reflect.InvocationTargetException
2013-04-16 18:58:48 [iNFO] [sTDERR] 	at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
2013-04-16 18:58:48 [iNFO] [sTDERR] 	at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
2013-04-16 18:58:48 [iNFO] [sTDERR] 	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
2013-04-16 18:58:48 [iNFO] [sTDERR] 	at java.lang.reflect.Constructor.newInstance(Unknown Source)
2013-04-16 18:58:48 [iNFO] [sTDERR] 	at net.minecraft.entity.EntityList.createEntityByID(EntityList.java:204)
2013-04-16 18:58:48 [iNFO] [sTDERR] 	at net.minecraft.item.ItemMonsterPlacer.spawnCreature(ItemMonsterPlacer.java:111)
2013-04-16 18:58:48 [iNFO] [sTDERR] 	at net.minecraft.item.ItemMonsterPlacer.onItemUse(ItemMonsterPlacer.java:76)
2013-04-16 18:58:48 [iNFO] [sTDERR] 	at net.minecraft.item.ItemStack.tryPlaceItemIntoWorld(ItemStack.java:149)
2013-04-16 18:58:48 [iNFO] [sTDERR] 	at net.minecraft.item.ItemInWorldManager.activateBlockOrUseItem(ItemInWorldManager.java:425)
2013-04-16 18:58:48 [iNFO] [sTDERR] 	at net.minecraft.network.NetServerHandler.handlePlace(NetServerHandler.java:553)
2013-04-16 18:58:48 [iNFO] [sTDERR] 	at net.minecraft.network.packet.Packet15Place.processPacket(Packet15Place.java:79)
2013-04-16 18:58:48 [iNFO] [sTDERR] 	at net.minecraft.network.MemoryConnection.processReadPackets(MemoryConnection.java:89)
2013-04-16 18:58:48 [iNFO] [sTDERR] 	at net.minecraft.network.NetServerHandler.networkTick(NetServerHandler.java:134)
2013-04-16 18:58:48 [iNFO] [sTDERR] 	at net.minecraft.network.NetworkListenThread.networkTick(NetworkListenThread.java:53)
2013-04-16 18:58:48 [iNFO] [sTDERR] 	at net.minecraft.server.integrated.IntegratedServerListenThread.networkTick(IntegratedServerListenThread.java:109)
2013-04-16 18:58:48 [iNFO] [sTDERR] 	at net.minecraft.server.MinecraftServer.updateTimeLightAndEntities(MinecraftServer.java:674)
2013-04-16 18:58:48 [iNFO] [sTDERR] 	at net.minecraft.server.MinecraftServer.tick(MinecraftServer.java:570)
2013-04-16 18:58:48 [iNFO] [sTDERR] 	at net.minecraft.server.integrated.IntegratedServer.tick(IntegratedServer.java:127)
2013-04-16 18:58:48 [iNFO] [sTDERR] 	at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:468)
2013-04-16 18:58:48 [iNFO] [sTDERR] 	at net.minecraft.server.ThreadMinecraftServer.run(ThreadMinecraftServer.java:16)
2013-04-16 18:58:48 [iNFO] [sTDERR] Caused by: java.lang.IllegalArgumentException: Duplicate id value for 16!
2013-04-16 18:58:48 [iNFO] [sTDERR] 	at net.minecraft.entity.DataWatcher.addObject(DataWatcher.java:51)
2013-04-16 18:58:48 [iNFO] [sTDERR] 	at tutorial.ShineSpider.entityInit(ShineSpider.java:28)
2013-04-16 18:58:48 [iNFO] [sTDERR] 	at net.minecraft.entity.Entity.<init>(Entity.java:295)
2013-04-16 18:58:48 [iNFO] [sTDERR] 	at net.minecraft.entity.EntityLiving.<init>(EntityLiving.java:270)
2013-04-16 18:58:48 [iNFO] [sTDERR] 	at net.minecraft.entity.EntityCreature.<init>(EntityCreature.java:25)
2013-04-16 18:58:48 [iNFO] [sTDERR] 	at net.minecraft.entity.monster.EntityMob.<init>(EntityMob.java:19)
2013-04-16 18:58:48 [iNFO] [sTDERR] 	at net.minecraft.entity.monster.EntitySpider.<init>(EntitySpider.java:17)
2013-04-16 18:58:48 [iNFO] [sTDERR] 	at tutorial.ShineSpider.<init>(ShineSpider.java:19)
2013-04-16 18:58:48 [iNFO] [sTDERR] 	... 20 more
2013-04-16 18:58:48 [WARNING] [Minecraft-Server] Skipping Entity with id 301

 

Now this error is from me trying to use and egg to spawn my spider, the reason for that is because there not spawning in my dimension by themselves. And when i make a new world i get this error:

 " [sTDOUT] Fetching addPacket for removed entity"

Like 3 times in a row, it doesnt shut anything down just shows it in the console of eclipse. I hope you can help!! Thanks!

Posted

Ok so Im making a new dimension which I made a custom biome for. Im trying to get the Custom Spider im making to spawn into the biome. So here is my biome class:

package tutorial;

import java.util.Random;

import net.minecraft.block.Block;
import net.minecraft.src.ModLoader;
import net.minecraft.world.World;
import net.minecraft.world.biome.BiomeGenBase;

public class BiomeShine extends BiomeGenBase {

public BiomeShine(int par1) 
{
	super(par1);
	this.setBiomeName("Shrine Biome");
	this.fillerBlock = (byte) mod_tutorial.SDirt.blockID;
	this.topBlock = (byte) mod_tutorial.SGrass.blockID;
	this.maxHeight = 0.5f;
	this.minHeight = 0;

}
public  void decorate(World par1World, Random par2Random, int par3, int par4)
{
	super.decorate(par1World,par2Random,par3,par4);

	trees(par1World, par2Random,par3,par4);



}


public void trees(World par1World, Random par2Random, int par3, int par4)
{
	for(int a = 1; a < 20; a++)
	{
		int RandPosX = par3 + par2Random.nextInt(16);
		int RandPosY = par3 + par2Random.nextInt(128);
		int RandPosZ = par4 + par2Random.nextInt(16);
		(new WorldGenShrineTrees(true)).generate(par1World, par2Random, RandPosX, RandPosY, RandPosZ);

	}
}


}

 

Here is my EntitySpider class:

package net.minecraft.entity.monster;

import cpw.mods.fml.relauncher.Side;
import cpw.mods.fml.relauncher.SideOnly;
import net.minecraft.entity.Entity;
import net.minecraft.entity.EnumCreatureAttribute;
import net.minecraft.item.Item;
import net.minecraft.potion.Potion;
import net.minecraft.potion.PotionEffect;
import net.minecraft.util.MathHelper;
import net.minecraft.world.World;

public class EntitySpider extends EntityMob
{
    public EntitySpider(World par1World)
    {
        super(par1World);
        this.texture = "/mob/spider.png";
        this.setSize(1.4F, 0.9F);
        this.moveSpeed = 0.8F;
    }

    protected void entityInit()
    {
        super.entityInit();
        this.dataWatcher.addObject(16, new Byte((byte)0));
    }

    /**
     * Called to update the entity's position/logic.
     */
    public void onUpdate()
    {
        super.onUpdate();

        if (!this.worldObj.isRemote)
        {
            this.setBesideClimbableBlock(this.isCollidedHorizontally);
        }
    }

    public int getMaxHealth()
    {
        return 16;
    }

    /**
     * Returns the Y offset from the entity's position for any entity riding this one.
     */
    public double getMountedYOffset()
    {
        return (double)this.height * 0.75D - 0.5D;
    }

    /**
     * Finds the closest player within 16 blocks to attack, or null if this Entity isn't interested in attacking
     * (Animals, Spiders at day, peaceful PigZombies).
     */
    protected Entity findPlayerToAttack()
    {
        float f = this.getBrightness(1.0F);

        if (f < 0.5F)
        {
            double d0 = 16.0D;
            return this.worldObj.getClosestVulnerablePlayerToEntity(this, d0);
        }
        else
        {
            return null;
        }
    }

    /**
     * Returns the sound this mob makes while it's alive.
     */
    protected String getLivingSound()
    {
        return "mob.spider.say";
    }

    /**
     * Returns the sound this mob makes when it is hurt.
     */
    protected String getHurtSound()
    {
        return "mob.spider.say";
    }

    /**
     * Returns the sound this mob makes on death.
     */
    protected String getDeathSound()
    {
        return "mob.spider.death";
    }

    /**
     * Plays step sound at given x, y, z for the entity
     */
    protected void playStepSound(int par1, int par2, int par3, int par4)
    {
        this.playSound("mob.spider.step", 0.15F, 1.0F);
    }

    /**
     * Basic mob attack. Default to touch of death in EntityCreature. Overridden by each mob to define their attack.
     */
    protected void attackEntity(Entity par1Entity, float par2)
    {
        float f1 = this.getBrightness(1.0F);

        if (f1 > 0.5F && this.rand.nextInt(100) == 0)
        {
            this.entityToAttack = null;
        }
        else
        {
            if (par2 > 2.0F && par2 < 6.0F && this.rand.nextInt(10) == 0)
            {
                if (this.onGround)
                {
                    double d0 = par1Entity.posX - this.posX;
                    double d1 = par1Entity.posZ - this.posZ;
                    float f2 = MathHelper.sqrt_double(d0 * d0 + d1 * d1);
                    this.motionX = d0 / (double)f2 * 0.5D * 0.800000011920929D + this.motionX * 0.20000000298023224D;
                    this.motionZ = d1 / (double)f2 * 0.5D * 0.800000011920929D + this.motionZ * 0.20000000298023224D;
                    this.motionY = 0.4000000059604645D;
                }
            }
            else
            {
                super.attackEntity(par1Entity, par2);
            }
        }
    }

    /**
     * Returns the item ID for the item the mob drops on death.
     */
    protected int getDropItemId()
    {
        return Item.silk.itemID;
    }

    /**
     * Drop 0-2 items of this living's type. @param par1 - Whether this entity has recently been hit by a player. @param
     * par2 - Level of Looting used to kill this mob.
     */
    protected void dropFewItems(boolean par1, int par2)
    {
        super.dropFewItems(par1, par2);

        if (par1 && (this.rand.nextInt(3) == 0 || this.rand.nextInt(1 + par2) > 0))
        {
            this.dropItem(Item.spiderEye.itemID, 1);
        }
    }

    /**
     * returns true if this entity is by a ladder, false otherwise
     */
    public boolean isOnLadder()
    {
        return this.isBesideClimbableBlock();
    }

    /**
     * Sets the Entity inside a web block.
     */
    public void setInWeb() {}

    @SideOnly(Side.CLIENT)

    /**
     * How large the spider should be scaled.
     */
    public float spiderScaleAmount()
    {
        return 1.0F;
    }

    /**
     * Get this Entity's EnumCreatureAttribute
     */
    public EnumCreatureAttribute getCreatureAttribute()
    {
        return EnumCreatureAttribute.ARTHROPOD;
    }

    public boolean isPotionApplicable(PotionEffect par1PotionEffect)
    {
        return par1PotionEffect.getPotionID() == Potion.poison.id ? false : super.isPotionApplicable(par1PotionEffect);
    }

    /**
     * Returns true if the WatchableObject (Byte) is 0x01 otherwise returns false. The WatchableObject is updated using
     * setBesideClimableBlock.
     */
    public boolean isBesideClimbableBlock()
    {
        return (this.dataWatcher.getWatchableObjectByte(16) & 1) != 0;
    }

    /**
     * Updates the WatchableObject (Byte) created in entityInit(), setting it to 0x01 if par1 is true or 0x00 if it is
     * false.
     */
    public void setBesideClimbableBlock(boolean par1)
    {
        byte b0 = this.dataWatcher.getWatchableObjectByte(16);

        if (par1)
        {
            b0 = (byte)(b0 | 1);
        }
        else
        {
            b0 &= -2;
        }

        this.dataWatcher.updateObject(16, Byte.valueOf(b0));
    }

    /**
     * Initialize this creature.
     */
    public void initCreature()
    {
        if (this.worldObj.rand.nextInt(100) == 0)
        {
            EntitySkeleton entityskeleton = new EntitySkeleton(this.worldObj);
            entityskeleton.setLocationAndAngles(this.posX, this.posY, this.posZ, this.rotationYaw, 0.0F);
            entityskeleton.initCreature();
            this.worldObj.spawnEntityInWorld(entityskeleton);
            entityskeleton.mountEntity(this);
        }
    }
}

 

Here is my RenderShineSpider class:

package tutorial;

import cpw.mods.fml.relauncher.Side;
import cpw.mods.fml.relauncher.SideOnly;
import net.minecraft.client.model.ModelSpider;
import net.minecraft.client.renderer.OpenGlHelper;
import net.minecraft.client.renderer.entity.RenderLiving;
import net.minecraft.entity.EntityLiving;
import net.minecraft.entity.monster.EntitySpider;
import org.lwjgl.opengl.GL11;

@SideOnly(Side.CLIENT)
public class RenderShineSpider extends RenderLiving
{
    public RenderShineSpider()
    {
        super(new ModelSpider(), 1.0F);
        this.setRenderPassModel(new ModelSpider());
    }

    protected float setSpiderDeathMaxRotation(EntitySpider par1EntitySpider)
    {
        return 180.0F;
    }

    /**
     * Sets the spider's glowing eyes
     */
    protected int setSpiderEyeBrightness(EntitySpider par1EntitySpider, int par2, float par3)
    {
        if (par2 != 0)
        {
            return -1;
        }
        else
        {
            this.loadTexture("/mob/Shinespider_eyes.png");
            float f1 = 1.0F;
            GL11.glEnable(GL11.GL_BLEND);
            GL11.glDisable(GL11.GL_ALPHA_TEST);
            GL11.glBlendFunc(GL11.GL_ONE, GL11.GL_ONE);

            if (par1EntitySpider.getHasActivePotion())
            {
                GL11.glDepthMask(false);
            }
            else
            {
                GL11.glDepthMask(true);
            }

            char c0 = 61680;
            int j = c0 % 65536;
            int k = c0 / 65536;
            OpenGlHelper.setLightmapTextureCoords(OpenGlHelper.lightmapTexUnit, (float)j / 1.0F, (float)k / 1.0F);
            GL11.glColor4f(1.0F, 1.0F, 1.0F, 1.0F);
            GL11.glColor4f(1.0F, 1.0F, 1.0F, f1);
            return 1;
        }
    }

    protected void scaleSpider(EntitySpider par1EntitySpider, float par2)
    {
        float f1 = par1EntitySpider.spiderScaleAmount();
        GL11.glScalef(f1, f1, f1);
    }

    /**
     * Allows the render to do any OpenGL state modifications necessary before the model is rendered. Args:
     * entityLiving, partialTickTime
     */
    protected void preRenderCallback(EntityLiving par1EntityLiving, float par2)
    {
        this.scaleSpider((EntitySpider)par1EntityLiving, par2);
    }

    protected float getDeathMaxRotation(EntityLiving par1EntityLiving)
    {
        return this.setSpiderDeathMaxRotation((EntitySpider)par1EntityLiving);
    }

    /**
     * Queries whether should render the specified pass or not.
     */
    protected int shouldRenderPass(EntityLiving par1EntityLiving, int par2, float par3)
    {
        return this.setSpiderEyeBrightness((EntitySpider)par1EntityLiving, par2, par3);
    }
}

 

And here is some code in my mod_tutorial class:

EntityRegistry.addSpawn(EntityCreeper.class, 7, 1, 2, EnumCreatureType.creature, this.Shine);
LanguageRegistry.instance().addStringLocalization("entity.ShineToolPack.ShineSpider.name", "Shine Spider");

//Registering Entites
EntityRegistry.registerModEntity(ShineSpider.class, "ShineSpider", 20, this, 80, 3, true);


       //Registering Eggs
        registerEntityEgg(ShineSpider.class, 0x25630C, 0xEB46E0);

}




public static void registerEntityEgg(Class<? extends Entity> entity, int primaryColor, int secondaryColor)
{
        int id = getUniqueEntityId();
        EntityList.IDtoClassMapping.put(id, entity);
        EntityList.entityEggs.put(id, new EntityEggInfo(id, primaryColor, secondaryColor));
}

public static int getUniqueEntityId(){
    do
    {
            startEntityId++;
    }
    while(EntityList.getStringFromID(startEntityId) != null);
   
    return startEntityId;
}
}

 

Here is the error from the eclipes console:

2013-04-16 18:55:29 [iNFO] [ForgeModLoader] Forge Mod Loader version 5.1.8.611 for Minecraft 1.5.1 loading
2013-04-16 18:55:29 [iNFO] [ForgeModLoader] Java is Java HotSpot(TM) 64-Bit Server VM, version 1.7.0_13, running on Windows 8:amd64:6.2, installed at C:\Program Files\Java\jre7
2013-04-16 18:55:29 [iNFO] [ForgeModLoader] Managed to load a deobfuscated Minecraft name- we are in a deobfuscated environment. Skipping runtime deobfuscation
2013-04-16 18:55:31 [iNFO] [sTDOUT] 229 recipes
2013-04-16 18:55:31 [iNFO] [sTDOUT] 27 achievements
2013-04-16 18:55:31 [iNFO] [Minecraft-Client] Setting user: Player134
2013-04-16 18:55:31 [iNFO] [sTDOUT] (Session ID is -)
2013-04-16 18:55:31 [iNFO] [sTDERR] Client asked for parameter: server
2013-04-16 18:55:31 [iNFO] [Minecraft-Client] LWJGL Version: 2.4.2
2013-04-16 18:55:32 [iNFO] [MinecraftForge] Attempting early MinecraftForge initialization
2013-04-16 18:55:32 [iNFO] [sTDOUT] MinecraftForge v7.7.1.611 Initialized
2013-04-16 18:55:32 [iNFO] [ForgeModLoader] MinecraftForge v7.7.1.611 Initialized
2013-04-16 18:55:32 [iNFO] [sTDOUT] Replaced 85 ore recipies
2013-04-16 18:55:32 [iNFO] [MinecraftForge] Completed early MinecraftForge initialization
2013-04-16 18:55:32 [iNFO] [ForgeModLoader] Reading custom logging properties from C:\Users\jacks_000\Documents\My Games\Minecraft\Modding\MCP 1.5.1\jars\config\logging.properties
2013-04-16 18:55:32 [OFF] [ForgeModLoader] Logging level for ForgeModLoader logging is set to ALL
2013-04-16 18:55:32 [iNFO] [ForgeModLoader] Searching C:\Users\jacks_000\Documents\My Games\Minecraft\Modding\MCP 1.5.1\jars\mods for mods
2013-04-16 18:55:32 [iNFO] [ForgeModLoader] Attempting to reparse the mod container bin
2013-04-16 18:55:34 [iNFO] [ForgeModLoader] Forge Mod Loader has identified 4 mods to load
2013-04-16 18:55:34 [iNFO] [mcp] Activating mod mcp
2013-04-16 18:55:34 [iNFO] [FML] Activating mod FML
2013-04-16 18:55:34 [iNFO] [Forge] Activating mod Forge
2013-04-16 18:55:34 [iNFO] [shineToolPack] Activating mod ShineToolPack
2013-04-16 18:55:34 [iNFO] [ForgeModLoader] FML has found a non-mod file SinglePlayerCommands-MC1.5.1_V4.7.zip in your mods directory. It will now be injected into your classpath. This could severe stability issues, it should be removed if possible.
2013-04-16 18:55:34 [iNFO] [ForgeModLoader] Configured a dormant chunk cache size of 0
2013-04-16 18:55:34 [iNFO] [sTDOUT] 
2013-04-16 18:55:34 [iNFO] [sTDOUT] Starting up SoundSystem...
2013-04-16 18:55:34 [iNFO] [sTDOUT] Initializing LWJGL OpenAL
2013-04-16 18:55:34 [iNFO] [sTDOUT]     (The LWJGL binding of OpenAL.  For more information, see http://www.lwjgl.org)
2013-04-16 18:55:34 [iNFO] [sTDOUT] OpenAL initialized.
2013-04-16 18:55:35 [iNFO] [sTDOUT] 
2013-04-16 18:55:36 [iNFO] [Minecraft-Client] Found animation info for: textures/blocks/lava_flow.txt
2013-04-16 18:55:36 [iNFO] [Minecraft-Client] Found animation info for: textures/blocks/water_flow.txt
2013-04-16 18:55:36 [iNFO] [Minecraft-Client] Found animation info for: textures/blocks/fire_0.txt
2013-04-16 18:55:36 [iNFO] [Minecraft-Client] Found animation info for: textures/blocks/fire_1.txt
2013-04-16 18:55:36 [iNFO] [Minecraft-Client] Found animation info for: textures/blocks/lava.txt
2013-04-16 18:55:36 [iNFO] [Minecraft-Client] Found animation info for: textures/blocks/portal.txt
2013-04-16 18:55:36 [iNFO] [Minecraft-Client] Found animation info for: textures/blocks/water.txt
2013-04-16 18:55:36 [iNFO] [Minecraft-Client] Found animation info for: textures/items/clock.txt
2013-04-16 18:55:36 [iNFO] [Minecraft-Client] Found animation info for: textures/items/compass.txt
2013-04-16 18:55:36 [iNFO] [ForgeModLoader] Forge Mod Loader has successfully loaded 4 mods
2013-04-16 18:55:37 [iNFO] [Minecraft-Client] Found animation info for: textures/blocks/lava_flow.txt
2013-04-16 18:55:37 [iNFO] [Minecraft-Client] Found animation info for: textures/blocks/water_flow.txt
2013-04-16 18:55:37 [iNFO] [Minecraft-Client] Found animation info for: textures/blocks/fire_0.txt
2013-04-16 18:55:37 [iNFO] [Minecraft-Client] Found animation info for: textures/blocks/fire_1.txt
2013-04-16 18:55:37 [iNFO] [Minecraft-Client] Found animation info for: textures/blocks/lava.txt
2013-04-16 18:55:37 [iNFO] [Minecraft-Client] Found animation info for: textures/blocks/portal.txt
2013-04-16 18:55:37 [iNFO] [Minecraft-Client] Found animation info for: textures/blocks/water.txt
2013-04-16 18:55:38 [iNFO] [Minecraft-Client] Found animation info for: textures/items/clock.txt
2013-04-16 18:55:38 [iNFO] [Minecraft-Client] Found animation info for: textures/items/compass.txt
2013-04-16 18:55:48 [iNFO] [Minecraft-Server] Starting integrated minecraft server version 1.5.1
2013-04-16 18:55:48 [iNFO] [Minecraft-Server] Generating keypair
2013-04-16 18:55:49 [iNFO] [ForgeModLoader] Loading dimension 0 (Jackson03) (net.minecraft.server.integrated.IntegratedServer@7fd75a17)
2013-04-16 18:55:49 [iNFO] [ForgeModLoader] Loading dimension 20 (Jackson03) (net.minecraft.server.integrated.IntegratedServer@7fd75a17)
2013-04-16 18:55:49 [iNFO] [ForgeModLoader] Loading dimension 1 (Jackson03) (net.minecraft.server.integrated.IntegratedServer@7fd75a17)
2013-04-16 18:55:49 [iNFO] [ForgeModLoader] Loading dimension -1 (Jackson03) (net.minecraft.server.integrated.IntegratedServer@7fd75a17)
2013-04-16 18:55:49 [iNFO] [Minecraft-Server] Preparing start region for level 0
2013-04-16 18:55:50 [iNFO] [sTDOUT] loading single player
2013-04-16 18:55:50 [iNFO] [Minecraft-Server] Player134[/127.0.0.1:0] logged in with entity id 416 at (-286.4115071160419, 71.34637243592557, 147.07650171150348)
2013-04-16 18:55:51 [iNFO] [Minecraft-Server] Saving and pausing game...
2013-04-16 18:55:51 [iNFO] [Minecraft-Server] Saving chunks for level 'Jackson03'/Overworld
2013-04-16 18:55:51 [iNFO] [Minecraft-Server] Saving chunks for level 'Jackson03'/Nether
2013-04-16 18:55:51 [iNFO] [Minecraft-Server] Saving chunks for level 'Jackson03'/The End
2013-04-16 18:55:51 [iNFO] [Minecraft-Server] Saving chunks for level 'Jackson03'/Shine
2013-04-16 18:56:04 [iNFO] [sTDERR] java.lang.reflect.InvocationTargetException
2013-04-16 18:56:04 [iNFO] [sTDERR] 	at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
2013-04-16 18:56:04 [iNFO] [sTDERR] 	at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
2013-04-16 18:56:04 [iNFO] [sTDERR] 	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
2013-04-16 18:56:04 [iNFO] [sTDERR] 	at java.lang.reflect.Constructor.newInstance(Unknown Source)
2013-04-16 18:56:04 [iNFO] [sTDERR] 	at net.minecraft.entity.EntityList.createEntityByID(EntityList.java:204)
2013-04-16 18:56:04 [iNFO] [sTDERR] 	at net.minecraft.item.ItemMonsterPlacer.spawnCreature(ItemMonsterPlacer.java:111)
2013-04-16 18:56:04 [iNFO] [sTDERR] 	at net.minecraft.item.ItemMonsterPlacer.onItemUse(ItemMonsterPlacer.java:76)
2013-04-16 18:56:04 [iNFO] [sTDERR] 	at net.minecraft.item.ItemStack.tryPlaceItemIntoWorld(ItemStack.java:149)
2013-04-16 18:56:04 [iNFO] [sTDERR] 	at net.minecraft.item.ItemInWorldManager.activateBlockOrUseItem(ItemInWorldManager.java:425)
2013-04-16 18:56:04 [iNFO] [sTDERR] 	at net.minecraft.network.NetServerHandler.handlePlace(NetServerHandler.java:553)
2013-04-16 18:56:04 [iNFO] [sTDERR] 	at net.minecraft.network.packet.Packet15Place.processPacket(Packet15Place.java:79)
2013-04-16 18:56:04 [iNFO] [sTDERR] 	at net.minecraft.network.MemoryConnection.processReadPackets(MemoryConnection.java:89)
2013-04-16 18:56:04 [iNFO] [sTDERR] 	at net.minecraft.network.NetServerHandler.networkTick(NetServerHandler.java:134)
2013-04-16 18:56:04 [iNFO] [sTDERR] 	at net.minecraft.network.NetworkListenThread.networkTick(NetworkListenThread.java:53)
2013-04-16 18:56:04 [iNFO] [sTDERR] 	at net.minecraft.server.integrated.IntegratedServerListenThread.networkTick(IntegratedServerListenThread.java:109)
2013-04-16 18:56:04 [iNFO] [sTDERR] 	at net.minecraft.server.MinecraftServer.updateTimeLightAndEntities(MinecraftServer.java:674)
2013-04-16 18:56:04 [iNFO] [sTDERR] 	at net.minecraft.server.MinecraftServer.tick(MinecraftServer.java:570)
2013-04-16 18:56:04 [iNFO] [sTDERR] 	at net.minecraft.server.integrated.IntegratedServer.tick(IntegratedServer.java:127)
2013-04-16 18:56:04 [iNFO] [sTDERR] 	at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:468)
2013-04-16 18:56:04 [iNFO] [sTDERR] 	at net.minecraft.server.ThreadMinecraftServer.run(ThreadMinecraftServer.java:16)
2013-04-16 18:56:04 [iNFO] [sTDERR] Caused by: java.lang.IllegalArgumentException: Duplicate id value for 16!
2013-04-16 18:56:04 [iNFO] [sTDERR] 	at net.minecraft.entity.DataWatcher.addObject(DataWatcher.java:51)
2013-04-16 18:56:04 [iNFO] [sTDERR] 	at tutorial.ShineSpider.entityInit(ShineSpider.java:28)
2013-04-16 18:56:04 [iNFO] [sTDERR] 	at net.minecraft.entity.Entity.<init>(Entity.java:295)
2013-04-16 18:56:04 [iNFO] [sTDERR] 	at net.minecraft.entity.EntityLiving.<init>(EntityLiving.java:270)
2013-04-16 18:56:04 [iNFO] [sTDERR] 	at net.minecraft.entity.EntityCreature.<init>(EntityCreature.java:25)
2013-04-16 18:56:04 [iNFO] [sTDERR] 	at net.minecraft.entity.monster.EntityMob.<init>(EntityMob.java:19)
2013-04-16 18:56:04 [iNFO] [sTDERR] 	at net.minecraft.entity.monster.EntitySpider.<init>(EntitySpider.java:17)
2013-04-16 18:56:04 [iNFO] [sTDERR] 	at tutorial.ShineSpider.<init>(ShineSpider.java:19)
2013-04-16 18:56:04 [iNFO] [sTDERR] 	... 20 more
2013-04-16 18:56:04 [WARNING] [Minecraft-Server] Skipping Entity with id 301
2013-04-16 18:58:29 [iNFO] [Minecraft-Server] [Player134: Set own game mode to Survival Mode]
2013-04-16 18:58:29 [iNFO] [Minecraft-Client] [CHAT] Your game mode has been updated
2013-04-16 18:58:31 [iNFO] [Minecraft-Server] Player134 fell from a high place
2013-04-16 18:58:31 [iNFO] [Minecraft-Client] [CHAT] Player134 fell from a high place
2013-04-16 18:58:34 [iNFO] [ForgeModLoader] Unloading dimension 20
2013-04-16 18:58:39 [iNFO] [Minecraft-Server] [Player134: Set own game mode to Creative Mode]
2013-04-16 18:58:39 [iNFO] [Minecraft-Client] [CHAT] Your game mode has been updated
2013-04-16 18:58:41 [sEVERE] [ForgeModLoader] Detected leaking worlds in memory. There are 2 worlds that appear to be persisting. A mod is likely caching the world incorrectly

2013-04-16 18:58:41 [sEVERE] [ForgeModLoader] The world 7f7dec47 (Jackson03) has leaked.

2013-04-16 18:58:48 [iNFO] [sTDERR] java.lang.reflect.InvocationTargetException
2013-04-16 18:58:48 [iNFO] [sTDERR] 	at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
2013-04-16 18:58:48 [iNFO] [sTDERR] 	at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
2013-04-16 18:58:48 [iNFO] [sTDERR] 	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
2013-04-16 18:58:48 [iNFO] [sTDERR] 	at java.lang.reflect.Constructor.newInstance(Unknown Source)
2013-04-16 18:58:48 [iNFO] [sTDERR] 	at net.minecraft.entity.EntityList.createEntityByID(EntityList.java:204)
2013-04-16 18:58:48 [iNFO] [sTDERR] 	at net.minecraft.item.ItemMonsterPlacer.spawnCreature(ItemMonsterPlacer.java:111)
2013-04-16 18:58:48 [iNFO] [sTDERR] 	at net.minecraft.item.ItemMonsterPlacer.onItemUse(ItemMonsterPlacer.java:76)
2013-04-16 18:58:48 [iNFO] [sTDERR] 	at net.minecraft.item.ItemStack.tryPlaceItemIntoWorld(ItemStack.java:149)
2013-04-16 18:58:48 [iNFO] [sTDERR] 	at net.minecraft.item.ItemInWorldManager.activateBlockOrUseItem(ItemInWorldManager.java:425)
2013-04-16 18:58:48 [iNFO] [sTDERR] 	at net.minecraft.network.NetServerHandler.handlePlace(NetServerHandler.java:553)
2013-04-16 18:58:48 [iNFO] [sTDERR] 	at net.minecraft.network.packet.Packet15Place.processPacket(Packet15Place.java:79)
2013-04-16 18:58:48 [iNFO] [sTDERR] 	at net.minecraft.network.MemoryConnection.processReadPackets(MemoryConnection.java:89)
2013-04-16 18:58:48 [iNFO] [sTDERR] 	at net.minecraft.network.NetServerHandler.networkTick(NetServerHandler.java:134)
2013-04-16 18:58:48 [iNFO] [sTDERR] 	at net.minecraft.network.NetworkListenThread.networkTick(NetworkListenThread.java:53)
2013-04-16 18:58:48 [iNFO] [sTDERR] 	at net.minecraft.server.integrated.IntegratedServerListenThread.networkTick(IntegratedServerListenThread.java:109)
2013-04-16 18:58:48 [iNFO] [sTDERR] 	at net.minecraft.server.MinecraftServer.updateTimeLightAndEntities(MinecraftServer.java:674)
2013-04-16 18:58:48 [iNFO] [sTDERR] 	at net.minecraft.server.MinecraftServer.tick(MinecraftServer.java:570)
2013-04-16 18:58:48 [iNFO] [sTDERR] 	at net.minecraft.server.integrated.IntegratedServer.tick(IntegratedServer.java:127)
2013-04-16 18:58:48 [iNFO] [sTDERR] 	at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:468)
2013-04-16 18:58:48 [iNFO] [sTDERR] 	at net.minecraft.server.ThreadMinecraftServer.run(ThreadMinecraftServer.java:16)
2013-04-16 18:58:48 [iNFO] [sTDERR] Caused by: java.lang.IllegalArgumentException: Duplicate id value for 16!
2013-04-16 18:58:48 [iNFO] [sTDERR] 	at net.minecraft.entity.DataWatcher.addObject(DataWatcher.java:51)
2013-04-16 18:58:48 [iNFO] [sTDERR] 	at tutorial.ShineSpider.entityInit(ShineSpider.java:28)
2013-04-16 18:58:48 [iNFO] [sTDERR] 	at net.minecraft.entity.Entity.<init>(Entity.java:295)
2013-04-16 18:58:48 [iNFO] [sTDERR] 	at net.minecraft.entity.EntityLiving.<init>(EntityLiving.java:270)
2013-04-16 18:58:48 [iNFO] [sTDERR] 	at net.minecraft.entity.EntityCreature.<init>(EntityCreature.java:25)
2013-04-16 18:58:48 [iNFO] [sTDERR] 	at net.minecraft.entity.monster.EntityMob.<init>(EntityMob.java:19)
2013-04-16 18:58:48 [iNFO] [sTDERR] 	at net.minecraft.entity.monster.EntitySpider.<init>(EntitySpider.java:17)
2013-04-16 18:58:48 [iNFO] [sTDERR] 	at tutorial.ShineSpider.<init>(ShineSpider.java:19)
2013-04-16 18:58:48 [iNFO] [sTDERR] 	... 20 more
2013-04-16 18:58:48 [WARNING] [Minecraft-Server] Skipping Entity with id 301

 

Now this error is from me trying to use and egg to spawn my spider, the reason for that is because there not spawning in my dimension by themselves. And when i make a new world i get this error:

 " [sTDOUT] Fetching addPacket for removed entity"

Like 3 times in a row, it doesnt shut anything down just shows it in the console of eclipse. I hope you can help!! Thanks!

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Announcements



×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.