
vandy22
Members-
Posts
224 -
Joined
-
Last visited
Everything posted by vandy22
-
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!
-
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!
-
Kk
-
Ok so i just recomplied and rebofuscated my mod and im getting an error on the WorldProvider. Here is the error: Minecraft Log Error: Minecraft has crashed! ---------------------- Minecraft has stopped running because it encountered a problem; Failed to start game A full error report has been saved to C:\Users\jacks_000\Documents\My Games\Minecraft\MultiMC\instances\1.5.1\minecraft\crash-reports\crash-2013-04-14_20.29.27-client.txt - Please include a copy of that file (Not this screen!) if you report this crash to anyone; without it, they will not be able to help fix the crash --- BEGIN ERROR REPORT a7c3f90e -------- Full report at: C:\Users\jacks_000\Documents\My Games\Minecraft\MultiMC\instances\1.5.1\minecraft\crash-reports\crash-2013-04-14_20.29.27-client.txt Please show that file to Mojang, NOT just this screen! Generated 4/14/13 8:29 PM -- System Details -- Details: Minecraft Version: 1.5.1 Operating System: Windows 8 (amd64) version 6.2 Java Version: 1.7.0_13, Oracle Corporation Java VM Version: Java HotSpot(TM) 64-Bit Server VM (mixed mode), Oracle Corporation Memory: 472736488 bytes (450 MB) / 648740864 bytes (618 MB) up to 954466304 bytes (910 MB) JVM Flags: 2 total; -Xms512m -Xmx1024m AABB Pool Size: 0 (0 bytes; 0 MB) allocated, 0 (0 bytes; 0 MB) used Suspicious classes: FML and Forge are installed IntCache: cache: 0, tcache: 0, allocated: 0, tallocated: 0 FML: MCP v7.44 FML v5.1.16.640 Minecraft Forge 7.7.1.640 5 mods loaded, 5 mods active mcp [Minecraft Coder Pack] (minecraft.jar) Unloaded->Constructed->Pre-initialized->Initialized FML [Forge Mod Loader] (coremods) Unloaded->Constructed->Pre-initialized->Initialized Forge [Minecraft Forge] (coremods) Unloaded->Constructed->Pre-initialized->Initialized mod_ReiMinimap [mod_ReiMinimap] ([1.5.1]ReiMinimap_v3.3_04.zip) Unloaded->Constructed->Pre-initialized->Initialized JV's ToolPack [JV's ToolPack] (ShineToolPack.zip) Unloaded->Constructed->Pre-initialized->Errored LWJGL: 2.4.2 OpenGL: AMD Radeon HD 7570 GL version 4.2.11750 Compatibility Profile Context, ATI Technologies Inc. Is Modded: Definitely; Client brand changed to 'fml,forge' Type: Client (map_client.txt) Texture Pack: Default Profiler Position: N/A (disabled) Vec3 Pool Size: ~~ERROR~~ NullPointerException: null cpw.mods.fml.common.LoaderException: java.lang.NoClassDefFoundError: tutorial/WorldProviderShrine at cpw.mods.fml.common.LoadController.transition(LoadController.java:142) at cpw.mods.fml.common.Loader.initializeMods(Loader.java:691) at cpw.mods.fml.client.FMLClientHandler.finishMinecraftLoading(FMLClientHandler.java:206) at net.minecraft.client.Minecraft.func_71384_a(Minecraft.java:444) at net.minecraft.client.MinecraftAppletImpl.func_71384_a(SourceFile:56) at net.minecraft.client.Minecraft.run(Minecraft.java:729) at java.lang.Thread.run(Unknown Source) Caused by: java.lang.NoClassDefFoundError: tutorial/WorldProviderShrine at tutorial.mod_tutorial.load(mod_tutorial.java:266) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at cpw.mods.fml.common.FMLModContainer.handleModStateEvent(FMLModContainer.java:515) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at com.google.common.eventbus.EventHandler.handleEvent(EventHandler.java:74) at com.google.common.eventbus.SynchronizedEventHandler.handleEvent(SynchronizedEventHandler.java:45) at com.google.common.eventbus.EventBus.dispatch(EventBus.java:314) at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:296) at com.google.common.eventbus.EventBus.post(EventBus.java:267) at cpw.mods.fml.common.LoadController.propogateStateMessage(LoadController.java:165) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at com.google.common.eventbus.EventHandler.handleEvent(EventHandler.java:74) at com.google.common.eventbus.SynchronizedEventHandler.handleEvent(SynchronizedEventHandler.java:45) at com.google.common.eventbus.EventBus.dispatch(EventBus.java:314) at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:296) at com.google.common.eventbus.EventBus.post(EventBus.java:267) at cpw.mods.fml.common.LoadController.distributeStateMessage(LoadController.java:98) at cpw.mods.fml.common.Loader.initializeMods(Loader.java:690) ... 5 more Caused by: java.lang.ClassNotFoundException: tutorial.WorldProviderShrine at cpw.mods.fml.relauncher.RelaunchClassLoader.findClass(RelaunchClassLoader.java:238) at java.lang.ClassLoader.loadClass(Unknown Source) at java.lang.ClassLoader.loadClass(Unknown Source) ... 32 more Caused by: java.lang.ClassFormatError: Duplicate method name&signature in class file tutorial/WorldProviderShrine at java.lang.ClassLoader.defineClass1(Native Method) at java.lang.ClassLoader.defineClass(Unknown Source) at java.security.SecureClassLoader.defineClass(Unknown Source) at cpw.mods.fml.relauncher.RelaunchClassLoader.findClass(RelaunchClassLoader.java:227) ... 34 more --- END ERROR REPORT f0996974 ---------- Here is my WorldProviderShine code: package tutorial; import java.util.Random; import net.minecraft.world.WorldProvider; import net.minecraft.world.biome.BiomeGenBase; import net.minecraft.world.biome.WorldChunkManagerHell; import net.minecraft.world.chunk.IChunkProvider; public class WorldProviderShrine extends WorldProvider { //The WorldProvider covers all the basics of the dimension. Look in WorldProviderBase.java and //WorldProvider.java for all the potential qualities you can assign to your dimension. public WorldProviderShrine() { } //The save file will be called DIM65 (DIM + id number). public int getDimensionID() { return 20; } public String getDimensionName(){ return "Shine"; } public boolean renderClouds() { return false; } public boolean renderEndSky() { return false; } public boolean renderVoidFog() { return true; } public float setMoonSize() { return 1.0F; } public float setSunSize() { return 1.5F; } public String getSunTexture() { return "/BloodrackenTexture/sun.png"; } public String getMoonTexture() { return "/BloodrackenTexture/moon.png"; } public boolean renderStars() { return true; } public boolean darkenSkyDuringRain() { return true; } public String getRespawnMessage() { return " Leaving The Shrine Dimension"; } //You can use an existing WorldChunkManager, or create your own. You must create your own to //add multiple unique biomes to a dimension. public void registerWorldChunkManager() { worldChunkMgr = new WorldChunkManagerHell(BiomeGenBase.ShineBiome, 1.0F, 0.0F); //Your Biome goes here this.hasNoSky = true; } //This is where you define your terrain generator. public IChunkProvider getChunkProvider() { return new ChunkProviderShrine(worldObj, worldObj.getSeed(), false); } //Note that, if you respawn in the dimension, you will end up at the coordinates of your //overworld spawn point, not at the location of your first entrance to the dimension or //something like that. Note also that beds don't work if you cannot respawn in the dimension. public boolean canRespawnHere() { return true; } public float calculateCelestialAngle(long par1, float par3) { return 0.25F; } public String func_80007_l() { return null; } } And here is the line in mod_tutorial(266)were i believe it gets registered. Im also going to include the next line with it for a possibility that it may be a problem also. DimensionManager.registerProviderType(dimension, WorldProviderShrine.class, false); DimensionManager.registerDimension(dimension, dimension); Im also not sure if you need to know but Im not using the DimensionAPI or whatever, this is coded without it. I really hope I dont have to get it but if it comes down to it I will. I hope you can help guys, thanks!!
-
Wow it would be something that simple! THANKS , it worked!! A couple other questions for anyone that can answer: is there anyway to make it day in my dimension? In my Shine Dimension its so dark i can barley see the ground, its weird because the moon and sun are on both horizons but different sides. Also is there anyway to have a custom stone, i have it all ready to go and work but i dont know how to make it work.!
-
Im making a dimension and for that I thought I might as well make a biome for it. So i went ahead and did that by changing a line of code in the WorldProvider. Anyways the point is in 1.5.1 for some reason when making a biome the only blocks you can use as grass, dirt, stone, etc have to be vanilla. I have tried to create my blocks in the actuall Block class thinking it may register it as a vanilla block but no luck. So now i get a dimension that only works with regular blocks, aka looks practiclly like overworld. I mean you could make the were the grass is supposed to be like wood for example or something like that. Here is my biome class it also has a tree generator if you are wondering what the other stuff is. Ill give you an example of code that does work and a example of code that doesnt work. Code that does work(BiomeShine class): package tutorial; import java.util.Random; import net.minecraft.block.Block; 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) Block.dirt.blockID; this.topBlock = (byte) Block.wood.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 = 0; 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); } } } Code that wouldnt work(BiomeShrine class): package tutorial; import java.util.Random; import net.minecraft.block.Block; 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.ShineDirt.blockID; this.topBlock = (byte) mod_tutorial.ShrineWood.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 = 0; 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); } } } As you can see if I use a block that is made by me(aka not vanilla) it will not work. I've seen people also asking this question in other forums and yet no answer, I also know i have never not recived a responce of some sort from this forum which is why I always post here . Anyway's I really hope one of you out there looking at this knows how to fix and will answer because this will help alot of people!!!!
-
bump, please help...
-
BUMP!!!!!!!!!!!!!!!! PLEASE HELP!
-
Minor help needed. [Solved and fixed code given]
vandy22 replied to xXRoboJackXx's topic in Modder Support
Yeah xXRobojackXx how did you fix it, what did you do? Please tell!!! Thanks! -
BUMP! Please help, if you know the solution!!!
-
Hello everyone, im making a dimension and theres no tutorials out there on 1.5.1 if u know of any please tell!!!!!!!!!!!!!!!!! Anyways im running into alot of errors with updated methods i cant seem to figure out. Here is my BlockPortalTutorial(Portal block) for my dimension. package tutorial; import java.util.Random; import cpw.mods.fml.relauncher.Side; import cpw.mods.fml.relauncher.SideOnly; import net.minecraft.block.Block; import net.minecraft.block.material.Material; import net.minecraft.client.renderer.texture.IconRegister; import net.minecraft.world.World; public class BlockPortalTutorial extends Block{ private String blockTexture; public BlockPortalTutorial(int par1, Material Mat, String par3String){ super(par1, Mat); this.blockTexture = par3String; } @SideOnly(Side.CLIENT) public void registerIcons(IconRegister par1IconRegister){ this.blockIcon = par1IconRegister.registerIcon("mod/" + this.blockTexture); } public void updateTick(World par1World, int par2, int par3, int par4, Random par5Random) { } public boolean tryToCreatePortal(World par1World, int par2, int par3, int par4) { byte var5 = 0; byte var6 = 0; if (par1World.getBlockId(par2 - 1, par3, par4) == Block.sandStone.blockID || par1World.getBlockId(par2 + 1, par3, par4) == Block.sandStone.blockID) { var5 = 1; } if (par1World.getBlockId(par2, par3, par4 - 1) == Block.sandStone.blockID || par1World.getBlockId(par2, par3, par4 + 1) == Block.sandStone.blockID) { var6 = 1; } if (var5 == var6) { return false; } else { if (par1World.getBlockId(par2 - var5, par3, par4 - var6) == 0) { par2 -= var5; par4 -= var6; } int var7; int var8; for (var7 = -1; var7 <= 2; ++var7) { for (var8 = -1; var8 <= 3; ++var8) { boolean var9 = var7 == -1 || var7 == 2 || var8 == -1 || var8 == 3; if (var7 != -1 && var7 != 2 || var8 != -1 && var8 != 3) { int var10 = par1World.getBlockId(par2 + var5 * var7, par3 + var8, par4 + var6 * var7); if (var9) { if (var10 != Block.sandStone.blockID) { return false; } } else if (var10 != 0 && var10 != Block.fire.blockID) { return false; } } } } //****************************************** par1World.[b]editingBlocks[/b] = true; //****************************************** for (var7 = 0; var7 < 2; ++var7) { for (var8 = 0; var8 < 3; ++var8) { par1World.setBlock(par2 + var5 * var7, par3 + var8, par4 + var6 * var7, this.blockID); } } //****************************************** par1World.[b]editingBlocks[/b] = false; return true; } //***************************************** } public void randomDisplayTick(World par1World, int par2, int par3, int par4, Random par5Random) { } public void onNeighborBlockChange(World par1World, int par2, int par3, int par4, int par5) { byte var6 = 0; byte var7 = 1; if (par1World.getBlockId(par2 - 1, par3, par4) == this.blockID || par1World.getBlockId(par2 + 1, par3, par4) == this.blockID) { var6 = 1; var7 = 0; } int var8; for (var8 = par3; par1World.getBlockId(par2, var8 - 1, par4) == this.blockID; --var8) { ; } if (par1World.getBlockId(par2, var8 - 1, par4) != Block.sandStone.blockID) { par1World.setBlock(par2, par3, par4, 0); } else { int var9; for (var9 = 1; var9 < 4 && par1World.getBlockId(par2, var8 + var9, par4) == this.blockID; ++var9) { ; } if (var9 == 3 && par1World.getBlockId(par2, var8 + var9, par4) == Block.sandStone.blockID) { boolean var10 = par1World.getBlockId(par2 - 1, par3, par4) == this.blockID || par1World.getBlockId(par2 + 1, par3, par4) == this.blockID; boolean var11 = par1World.getBlockId(par2, par3, par4 - 1) == this.blockID || par1World.getBlockId(par2, par3, par4 + 1) == this.blockID; if (var10 && var11) { par1World.setBlock(par2, par3, par4, 0); } else { if ((par1World.getBlockId(par2 + var6, par3, par4 + var7) != Block.sandStone.blockID || par1World.getBlockId(par2 - var6, par3, par4 - var7) != this.blockID) && (par1World.getBlockId(par2 - var6, par3, par4 - var7) != Block.sandStone.blockID || par1World.getBlockId(par2 + var6, par3, par4 + var7) != this.blockID)) { par1World.setBlock(par2, par3, par4, 0); } } } else { par1World.setBlock(par2, par3, par4, 0); } } } } Now you can see where i marked the .editingBlocks method. I cant seem to figure out what to change it to!. If you know anything about how to fix this or possibly even some major rescripting to get it to work please help! Creating a dimension is not very easy and even knowlege with java script can barley get you through this stuff!!!!
-
Yeah i think im just gonna take some time and do it the way that should work, making them in my actuall mod class.
-
I seroiusly cant believe after 6 months i still havent made a mod that works. IT ALWAYS RUNS FINE ON ECLIPSE THEN I GET A FREAKING ERROR ON THE CLIENT! This time its about EnumArmorMaterial. Here is the error: Minecraft has crashed! ---------------------- Minecraft has stopped running because it encountered a problem; Failed to start game A full error report has been saved to C:\Users\jacks_000\AppData\Roaming\.minecraft\crash-reports\crash-2013-04-07_17.33.54-client.txt - Please include a copy of that file (Not this screen!) if you report this crash to anyone; without it, they will not be able to help fix the crash --- BEGIN ERROR REPORT 776202ff -------- Full report at: C:\Users\jacks_000\AppData\Roaming\.minecraft\crash-reports\crash-2013-04-07_17.33.54-client.txt Please show that file to Mojang, NOT just this screen! Generated 4/7/13 5:33 PM -- System Details -- Details: Minecraft Version: 1.5.1 Operating System: Windows 8 (amd64) version 6.2 Java Version: 1.7.0_13, Oracle Corporation Java VM Version: Java HotSpot(TM) 64-Bit Server VM (mixed mode), Oracle Corporation Memory: 530635744 bytes (506 MB) / 648740864 bytes (618 MB) up to 954466304 bytes (910 MB) JVM Flags: 2 total; -Xms512m -Xmx1024m AABB Pool Size: 0 (0 bytes; 0 MB) allocated, 0 (0 bytes; 0 MB) used Suspicious classes: FML and Forge are installed IntCache: cache: 0, tcache: 0, allocated: 0, tallocated: 0 FML: MCP v7.44 FML v5.1.8.611 Minecraft Forge 7.7.1.611 4 mods loaded, 4 mods active mcp [Minecraft Coder Pack] (minecraft.jar) Unloaded->Constructed->Pre-initialized->Initialized FML [Forge Mod Loader] (coremods) Unloaded->Constructed->Pre-initialized->Initialized Forge [Minecraft Forge] (coremods) Unloaded->Constructed->Pre-initialized->Initialized JV's ToolPack [JV's ToolPack] ([1.5.1]JV'sToolPack.zip) Unloaded->Constructed->Pre-initialized->Errored LWJGL: 2.4.2 OpenGL: AMD Radeon HD 7570 GL version 4.2.11750 Compatibility Profile Context, ATI Technologies Inc. Is Modded: Definitely; Client brand changed to 'forge,fml' Type: Client (map_client.txt) Texture Pack: Default Profiler Position: N/A (disabled) Vec3 Pool Size: ~~ERROR~~ NullPointerException: null cpw.mods.fml.common.LoaderException: java.lang.NoSuchFieldError: BLUE at cpw.mods.fml.common.LoadController.transition(LoadController.java:142) at cpw.mods.fml.common.Loader.initializeMods(Loader.java:690) at cpw.mods.fml.client.FMLClientHandler.finishMinecraftLoading(FMLClientHandler.java:206) at net.minecraft.client.Minecraft.func_71384_a(Minecraft.java:444) at net.minecraft.client.MinecraftAppletImpl.func_71384_a(SourceFile:56) at net.minecraft.client.Minecraft.run(Minecraft.java:729) at java.lang.Thread.run(Unknown Source) Caused by: java.lang.NoSuchFieldError: BLUE at tutorial.mod_tutorial.load(mod_tutorial.java:180) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at cpw.mods.fml.common.FMLModContainer.handleModStateEvent(FMLModContainer.java:515) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at com.google.common.eventbus.EventHandler.handleEvent(EventHandler.java:74) at com.google.common.eventbus.SynchronizedEventHandler.handleEvent(SynchronizedEventHandler.java:45) at com.google.common.eventbus.EventBus.dispatch(EventBus.java:314) at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:296) at com.google.common.eventbus.EventBus.post(EventBus.java:267) at cpw.mods.fml.common.LoadController.propogateStateMessage(LoadController.java:165) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at com.google.common.eventbus.EventHandler.handleEvent(EventHandler.java:74) at com.google.common.eventbus.SynchronizedEventHandler.handleEvent(SynchronizedEventHandler.java:45) at com.google.common.eventbus.EventBus.dispatch(EventBus.java:314) at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:296) at com.google.common.eventbus.EventBus.post(EventBus.java:267) at cpw.mods.fml.common.LoadController.distributeStateMessage(LoadController.java:98) at cpw.mods.fml.common.Loader.initializeMods(Loader.java:689) ... 5 more --- END ERROR REPORT 94ae40d5 ---------- Here is the line 180 in my mod_tutorial that it refers to: TutorialHelmet = new TutArmor(502,EnumArmorMaterial.BLUE, proxy.addArmor("Tut"),0).setUnlocalizedName("TutHelm").setCreativeTab(tabJVCraft); As you can see the blue is in there and thats for some reason an error. I made everything in my actuall EnumArmorMaterial and ToolArmorMaterial classes. I know it may be bad coding practice, but i just wanted to see my mod work, then go back in and patch things up. I seriously can't believe I still dont have a running and working mod. Please help me get through this error, and hopefully finish my mod!!!!!!!!!!!!!!!!!!!!!! Thanks!
-
BUMP. PLEASE HELP!
-
Ok so I updated my mod from 1.5 to 1.5.1 and of course they had to change even more things for the textures. I have all my items, tools, and weapons working with textures. The only thing not working is my blocks, they simply do not show up when in game, the texture is a white box saying something like "No texture on here" or something. Here is my ItemOre class or my CustomBlock class. package tutorial; import cpw.mods.fml.relauncher.Side; import cpw.mods.fml.relauncher.SideOnly; import tutorial.client.ClientProxy.ClientProxy; import net.minecraft.block.Block; import net.minecraft.block.material.Material; import net.minecraft.client.renderer.texture.IconRegister; import net.minecraft.creativetab.CreativeTabs; public class ItemOre extends Block { private String blockTexture; public ItemOre(int par1, Material par2Material, String par3String){ super(par1, par2Material); this.blockTexture = par3String; } @SideOnly(Side.CLIENT) public void registerIcons(IconRegister par1IconRegister){ this.blockIcon = par1IconRegister.registerIcon("mod/" + this.blockTexture); } } Here is the line in my code where Im registering the block in my mod_tutorial class. BlueOre = new ItemOre(539, Material.iron, "BlueOre").setHardness(3.0F).setResistance(3.0F).setUnlocalizedName("BlueOre").setCreativeTab(tabJVCraft); Also know this class is used for like 9 textures and as you can see I have it setup so I can use it for multiple blocks. I have this setup for my items and things and it works fine, so im not sure what the deal is. Hope you can help, thanks!
-
This runs fine in eclipse everytime. I don't understand what you mean with my class like it uses ModLoader? Also every block/item in my mod is put into this creativetab to answer jordan30001's question.
-
Ok so I thought finally I had my mod finished but no there always has to be something and this time its the creative tabs. I recompiled and rebofuscated and installed everything in the correct directory and this is the error I get from a forge log off of the minecraft client: 2013-04-02 17:00:30 [iNFO] [ForgeModLoader] Forge Mod Loader version 5.1.8.611 for Minecraft 1.5.1 loading 2013-04-02 17:00:30 [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-02 17:00:30 [FINE] [ForgeModLoader] Java classpath at launch is C:\Users\jacks_000\Documents\My Games\Minecraft\Minecraft.exe 2013-04-02 17:00:30 [FINE] [ForgeModLoader] Java library path at launch is C:\Program Files\Java\jre7\bin;C:\windows\Sun\Java\bin;C:\windows\system32;C:\windows;C:\Program Files (x86)\AMD APP\bin\x86_64;C:\Program Files (x86)\AMD APP\bin\x86;C:\windows\system32;C:\windows;C:\windows\System32\Wbem;C:\windows\System32\WindowsPowerShell\v1.0\;C:\Program Files (x86)\ATI Technologies\ATI.ACE\Core-Static;C:\Program Files (x86)\Windows Live\Shared;C:\Program Files\D3DGear;C:\Program Files (x86)\Autodesk\Backburner\;C:\Program Files\Common Files\Autodesk Shared\;C:\Program Files\Java\jre7\bin;. 2013-04-02 17:00:30 [FINE] [ForgeModLoader] Enabling runtime deobfuscation 2013-04-02 17:00:30 [FINEST] [ForgeModLoader] All core mods are successfully located 2013-04-02 17:00:30 [FINEST] [ForgeModLoader] Discovering coremods 2013-04-02 17:00:30 [FINEST] [ForgeModLoader] Found library file argo-small-3.2.jar present and correct in lib dir 2013-04-02 17:00:30 [FINEST] [ForgeModLoader] Found library file guava-14.0-rc3.jar present and correct in lib dir 2013-04-02 17:00:30 [FINEST] [ForgeModLoader] Found library file asm-all-4.1.jar present and correct in lib dir 2013-04-02 17:00:30 [FINEST] [ForgeModLoader] Found library file bcprov-jdk15on-148.jar present and correct in lib dir 2013-04-02 17:00:30 [FINEST] [ForgeModLoader] Found library file deobfuscation_data_1.5.1.zip present and correct in lib dir 2013-04-02 17:00:30 [FINEST] [ForgeModLoader] Found library file scala-library.jar present and correct in lib dir 2013-04-02 17:00:30 [FINEST] [ForgeModLoader] Running coremod plugins 2013-04-02 17:00:30 [FINEST] [ForgeModLoader] Running coremod plugin FMLCorePlugin 2013-04-02 17:00:30 [iNFO] [ForgeModLoader] Found valid fingerprint for Minecraft Forge. Certificate fingerprint de4cf8a3f3bc15635810044c39240bf96804ea7d 2013-04-02 17:00:30 [FINEST] [ForgeModLoader] Coremod plugin FMLCorePlugin run successfully 2013-04-02 17:00:30 [FINEST] [ForgeModLoader] Running coremod plugin FMLForgePlugin 2013-04-02 17:00:30 [FINEST] [ForgeModLoader] Coremod plugin FMLForgePlugin run successfully 2013-04-02 17:00:30 [FINEST] [ForgeModLoader] Validating minecraft 2013-04-02 17:00:31 [FINEST] [ForgeModLoader] Minecraft validated, launching... 2013-04-02 17:00:33 [iNFO] [sTDOUT] 229 recipes 2013-04-02 17:00:33 [iNFO] [sTDOUT] 27 achievements 2013-04-02 17:00:33 [iNFO] [Minecraft-Client] Setting user: vandy22 2013-04-02 17:00:33 [iNFO] [sTDOUT] (Session ID is 2516573331987915611) 2013-04-02 17:00:33 [iNFO] [Minecraft-Client] LWJGL Version: 2.4.2 2013-04-02 17:00:34 [iNFO] [MinecraftForge] Attempting early MinecraftForge initialization 2013-04-02 17:00:34 [iNFO] [sTDOUT] MinecraftForge v7.7.1.611 Initialized 2013-04-02 17:00:34 [iNFO] [ForgeModLoader] MinecraftForge v7.7.1.611 Initialized 2013-04-02 17:00:34 [iNFO] [sTDOUT] Replaced 85 ore recipies 2013-04-02 17:00:34 [iNFO] [MinecraftForge] Completed early MinecraftForge initialization 2013-04-02 17:00:34 [iNFO] [ForgeModLoader] Reading custom logging properties from C:\Users\jacks_000\AppData\Roaming\.minecraft\config\logging.properties 2013-04-02 17:00:34 [OFF] [ForgeModLoader] Logging level for ForgeModLoader logging is set to ALL 2013-04-02 17:00:34 [FINE] [ForgeModLoader] Building injected Mod Containers [cpw.mods.fml.common.FMLDummyContainer, net.minecraftforge.common.ForgeDummyContainer] 2013-04-02 17:00:34 [FINE] [ForgeModLoader] Attempting to load mods contained in the minecraft jar file and associated classes 2013-04-02 17:00:34 [FINER] [ForgeModLoader] Skipping known library file C:\Users\jacks_000\AppData\Roaming\.minecraft\bin\lwjgl.jar 2013-04-02 17:00:34 [FINER] [ForgeModLoader] Skipping known library file C:\Users\jacks_000\AppData\Roaming\.minecraft\bin\jinput.jar 2013-04-02 17:00:34 [FINER] [ForgeModLoader] Skipping known library file C:\Users\jacks_000\AppData\Roaming\.minecraft\bin\lwjgl_util.jar 2013-04-02 17:00:34 [FINE] [ForgeModLoader] Found a minecraft related file at C:\Users\jacks_000\AppData\Roaming\.minecraft\bin\minecraft.jar, examining for mod candidates 2013-04-02 17:00:34 [FINER] [ForgeModLoader] Skipping known library file C:\Users\jacks_000\AppData\Roaming\.minecraft\lib\argo-small-3.2.jar 2013-04-02 17:00:34 [FINER] [ForgeModLoader] Skipping known library file C:\Users\jacks_000\AppData\Roaming\.minecraft\lib\guava-14.0-rc3.jar 2013-04-02 17:00:34 [FINER] [ForgeModLoader] Skipping known library file C:\Users\jacks_000\AppData\Roaming\.minecraft\lib\asm-all-4.1.jar 2013-04-02 17:00:34 [FINER] [ForgeModLoader] Skipping known library file C:\Users\jacks_000\AppData\Roaming\.minecraft\lib\bcprov-jdk15on-148.jar 2013-04-02 17:00:34 [FINER] [ForgeModLoader] Skipping known library file C:\Users\jacks_000\AppData\Roaming\.minecraft\lib\deobfuscation_data_1.5.1.zip 2013-04-02 17:00:34 [FINER] [ForgeModLoader] Skipping known library file C:\Users\jacks_000\AppData\Roaming\.minecraft\lib\scala-library.jar 2013-04-02 17:00:34 [FINE] [ForgeModLoader] Minecraft jar mods loaded successfully 2013-04-02 17:00:34 [iNFO] [ForgeModLoader] Searching C:\Users\jacks_000\AppData\Roaming\.minecraft\mods for mods 2013-04-02 17:00:34 [FINE] [ForgeModLoader] Found a candidate zip or jar file JV'sToolPack.zip 2013-04-02 17:00:34 [FINE] [ForgeModLoader] Examining file minecraft.jar for potential mods 2013-04-02 17:00:34 [FINE] [ForgeModLoader] The mod container minecraft.jar appears to be missing an mcmod.info file 2013-04-02 17:00:34 [FINE] [ForgeModLoader] Examining file JV'sToolPack.zip for potential mods 2013-04-02 17:00:34 [FINE] [ForgeModLoader] The mod container JV'sToolPack.zip appears to be missing an mcmod.info file 2013-04-02 17:00:34 [FINE] [ForgeModLoader] Identified a class tutorialtest.mod_tutorial following modloader naming convention but not directly a BaseMod or currently seen subclass 2013-04-02 17:00:34 [FINE] [ForgeModLoader] Identified an FMLMod type mod tutorialtest.mod_tutorial 2013-04-02 17:00:34 [FINEST] [JV's ToolPack] Parsed dependency info : [] [] [] 2013-04-02 17:00:34 [iNFO] [ForgeModLoader] Attempting to reparse the mod container JV'sToolPack.zip 2013-04-02 17:00:34 [FINE] [ForgeModLoader] Examining file JV'sToolPack.zip for potential mods 2013-04-02 17:00:34 [FINE] [ForgeModLoader] The mod container JV'sToolPack.zip appears to be missing an mcmod.info file 2013-04-02 17:00:34 [FINE] [ForgeModLoader] Identified a class tutorialtest.mod_tutorial following modloader naming convention but not directly a BaseMod or currently seen subclass 2013-04-02 17:00:34 [FINE] [ForgeModLoader] Identified an FMLMod type mod tutorialtest.mod_tutorial 2013-04-02 17:00:34 [FINEST] [JV's ToolPack] Parsed dependency info : [] [] [] 2013-04-02 17:00:34 [iNFO] [ForgeModLoader] Forge Mod Loader has identified 4 mods to load 2013-04-02 17:00:34 [FINER] [ForgeModLoader] Received a system property request '' 2013-04-02 17:00:34 [FINER] [ForgeModLoader] System property request managing the state of 0 mods 2013-04-02 17:00:34 [FINE] [ForgeModLoader] After merging, found state information for 0 mods 2013-04-02 17:00:34 [FINE] [ForgeModLoader] Reloading logging properties from C:\Users\jacks_000\AppData\Roaming\.minecraft\config\logging.properties 2013-04-02 17:00:34 [FINE] [ForgeModLoader] Reloaded logging properties 2013-04-02 17:00:34 [FINE] [mcp] Mod Logging channel mcp configured at default level. 2013-04-02 17:00:34 [iNFO] [mcp] Activating mod mcp 2013-04-02 17:00:34 [FINE] [FML] Mod Logging channel FML configured at default level. 2013-04-02 17:00:34 [iNFO] [FML] Activating mod FML 2013-04-02 17:00:34 [FINE] [Forge] Mod Logging channel Forge configured at default level. 2013-04-02 17:00:34 [iNFO] [Forge] Activating mod Forge 2013-04-02 17:00:34 [FINE] [JV's ToolPack] Enabling mod JV's ToolPack 2013-04-02 17:00:34 [FINE] [JV's ToolPack] Mod Logging channel JV's ToolPack configured at default level. 2013-04-02 17:00:34 [iNFO] [JV's ToolPack] Activating mod JV's ToolPack 2013-04-02 17:00:34 [FINER] [ForgeModLoader] Verifying mod requirements are satisfied 2013-04-02 17:00:34 [FINER] [ForgeModLoader] All mod requirements are satisfied 2013-04-02 17:00:34 [FINER] [ForgeModLoader] Sorting mods into an ordered list 2013-04-02 17:00:34 [FINER] [ForgeModLoader] Mod sorting completed successfully 2013-04-02 17:00:34 [FINE] [ForgeModLoader] Mod sorting data 2013-04-02 17:00:34 [FINE] [ForgeModLoader] JV's ToolPack(JV's ToolPack:1.4.7): JV'sToolPack.zip () 2013-04-02 17:00:34 [FINEST] [mcp] Sending event FMLConstructionEvent to mod mcp 2013-04-02 17:00:34 [FINEST] [mcp] Sent event FMLConstructionEvent to mod mcp 2013-04-02 17:00:34 [FINEST] [FML] Sending event FMLConstructionEvent to mod FML 2013-04-02 17:00:34 [FINEST] [FML] Sent event FMLConstructionEvent to mod FML 2013-04-02 17:00:34 [FINEST] [Forge] Sending event FMLConstructionEvent to mod Forge 2013-04-02 17:00:34 [FINEST] [Forge] Sent event FMLConstructionEvent to mod Forge 2013-04-02 17:00:34 [FINEST] [JV's ToolPack] Sending event FMLConstructionEvent to mod JV's ToolPack 2013-04-02 17:00:34 [iNFO] [sTDERR] Exception in thread "Minecraft main thread" java.lang.NoSuchMethodError: net.minecraft.item.ItemBucket.getNextID()I 2013-04-02 17:00:34 [iNFO] [sTDERR] at tutorialtest.mod_tutorial.<clinit>(mod_tutorial.java:29) 2013-04-02 17:00:34 [iNFO] [sTDERR] at java.lang.Class.forName0(Native Method) 2013-04-02 17:00:34 [iNFO] [sTDERR] at java.lang.Class.forName(Unknown Source) 2013-04-02 17:00:34 [iNFO] [sTDERR] at cpw.mods.fml.common.FMLModContainer.constructMod(FMLModContainer.java:446) 2013-04-02 17:00:34 [iNFO] [sTDERR] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) 2013-04-02 17:00:34 [iNFO] [sTDERR] at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) 2013-04-02 17:00:34 [iNFO] [sTDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) 2013-04-02 17:00:34 [iNFO] [sTDERR] at java.lang.reflect.Method.invoke(Unknown Source) 2013-04-02 17:00:34 [iNFO] [sTDERR] at com.google.common.eventbus.EventHandler.handleEvent(EventHandler.java:74) 2013-04-02 17:00:34 [iNFO] [sTDERR] at com.google.common.eventbus.SynchronizedEventHandler.handleEvent(SynchronizedEventHandler.java:45) 2013-04-02 17:00:34 [iNFO] [sTDERR] at com.google.common.eventbus.EventBus.dispatch(EventBus.java:314) 2013-04-02 17:00:34 [iNFO] [sTDERR] at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:296) 2013-04-02 17:00:34 [iNFO] [sTDERR] at com.google.common.eventbus.EventBus.post(EventBus.java:267) 2013-04-02 17:00:34 [iNFO] [sTDERR] at cpw.mods.fml.common.LoadController.propogateStateMessage(LoadController.java:165) 2013-04-02 17:00:34 [iNFO] [sTDERR] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) 2013-04-02 17:00:34 [iNFO] [sTDERR] at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) 2013-04-02 17:00:34 [iNFO] [sTDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) 2013-04-02 17:00:34 [iNFO] [sTDERR] at java.lang.reflect.Method.invoke(Unknown Source) 2013-04-02 17:00:34 [iNFO] [sTDERR] at com.google.common.eventbus.EventHandler.handleEvent(EventHandler.java:74) 2013-04-02 17:00:34 [iNFO] [sTDERR] at com.google.common.eventbus.SynchronizedEventHandler.handleEvent(SynchronizedEventHandler.java:45) 2013-04-02 17:00:34 [iNFO] [sTDERR] at com.google.common.eventbus.EventBus.dispatch(EventBus.java:314) 2013-04-02 17:00:34 [iNFO] [sTDERR] at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:296) 2013-04-02 17:00:34 [iNFO] [sTDERR] at com.google.common.eventbus.EventBus.post(EventBus.java:267) 2013-04-02 17:00:34 [iNFO] [sTDERR] at cpw.mods.fml.common.LoadController.distributeStateMessage(LoadController.java:98) 2013-04-02 17:00:34 [iNFO] [sTDERR] at cpw.mods.fml.common.Loader.loadMods(Loader.java:502) 2013-04-02 17:00:34 [iNFO] [sTDERR] at cpw.mods.fml.client.FMLClientHandler.beginMinecraftLoading(FMLClientHandler.java:160) 2013-04-02 17:00:34 [iNFO] [sTDERR] at net.minecraft.client.Minecraft.func_71384_a(Minecraft.java:407) 2013-04-02 17:00:34 [iNFO] [sTDERR] at net.minecraft.client.MinecraftAppletImpl.func_71384_a(SourceFile:56) 2013-04-02 17:00:34 [iNFO] [sTDERR] at net.minecraft.client.Minecraft.run(Minecraft.java:729) 2013-04-02 17:00:34 [iNFO] [sTDERR] at java.lang.Thread.run(Unknown Source) It refers to line 29 in my mod_tutorial.java class so here it is: public static CreativeTabs tabJVCraft = new CreativeTabJVCraft(CreativeTabs.getNextID(), "tabJVCraft", "LALA"); And also just in case here is my CreativeTabJVCraft.java class: package tutorialtest; import net.minecraft.creativetab.CreativeTabs; import cpw.mods.fml.relauncher.Side; import cpw.mods.fml.relauncher.SideOnly; public class CreativeTabJVCraft extends CreativeTabs{ private int tabIndexID; private String tabName; CreativeTabJVCraft(int par1, String par3Str, String par4String ) { super(par1, par3Str); this.tabName = par4String; } @SideOnly(Side.CLIENT) public int getTabIconItemIndex(){ return mod_tutorial.BasicCube.blockID; } public String getTranslatedTabLabel(){ return this.tabName; } } Hope you can help! Thanks guys! I really want my mod to work!!!!!!!!!!!!
-
Alright well if you could help me out with the next problem that would be great. In every armor class and theres A BUNCH in my mod, I have to re-script them and im not positively sure how yet. Ive figured out everything except that. Here is the script I need to re-write because the icon-Index doesn't work. Script From Armor Class(Random Red Helmet Class): package tutorialtest; import tutorial.client.ClientProxy.ClientProxy; import net.minecraft.item.EnumArmorMaterial; import net.minecraft.item.ItemArmor; import net.minecraft.item.ItemStack; import net.minecraftforge.common.IArmorTextureProvider; public class ItemRedHelmet extends ItemArmor implements IArmorTextureProvider{ public ItemRedHelmet(int par1, EnumArmorMaterial par2EnumArmorMaterial, int par3, int par4) { super(par1, par2EnumArmorMaterial, par3, par4); } public String getTextureFile(){ return ClientProxy.ITEMS_PNG; } public String getArmorTextureFile(ItemStack par1){ if ( par1.itemID==mod_tutorial.RedHelmet.iconIndex|| par1.itemID==mod_tutorial.RedPlate.iconIndex|| par1.itemID==mod_tutorial.RedBoots.iconIndex){ return "/armor/Red_1.png"; }if(par1.itemID==mod_tutorial.RedLegs.iconIndex){ return "/armor/Red_2.png"; }return "/armor/Red_1.png"; } } Im not sure how to recode that, but if I figure it out my mod is good to go!!! I could really use your help! Thanks!