• 0

    posted a message on [1.5] [WIP (again)] Deverion's Forge Modding Tutorials [Updated 16-03-2013] [1.5 Tutorials: 1!]
    WOW! It works now!! THANK YOU SO MUCH!!!
    I also have another little question, can I use a unique custom ItemBlock class to register all the blocks which have metadata?
    I mean, if now I put into my ItemNuiJagaNest the names and textures from another block class would it work?
    Posted in: Tutorials
  • 0

    posted a message on [1.5] [WIP (again)] Deverion's Forge Modding Tutorials [Updated 16-03-2013] [1.5 Tutorials: 1!]
    Hey Deverion, I followed your tutorial of creating a Block with Metadata. I made some modifications about how to name the Block but I don't think that could affect anything. Now the only thing that I want is to add those to the Creative Tab Block...
    But when I start the client it crashes. Can you help me?

    So here is my

    Crash Report:

    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:\Archivos de programa\Modding\jars\.\crash-reports\crash-2013-02-04_02.37.39-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 a151a698 --------
    Full report at:
    C:\Archivos de programa\Modding\jars\.\crash-reports\crash-2013-02-04_02.37.39-client.txt
    Please show that file to Mojang, NOT just this screen!

    Generated 4/02/13 2:37

    -- System Details --
    Details:
    Minecraft Version: 1.4.5
    Operating System: Windows XP (x86) version 5.1
    Java Version: 1.7.0_09, Oracle Corporation
    Java VM Version: Java HotSpot™ Client VM (mixed mode), Oracle Corporation
    Memory: 978914256 bytes (933 MB) / 1060372480 bytes (1011 MB) up to 1060372480 bytes (1011 MB)
    JVM Flags: 3 total; -Xincgc -Xmx1024M -Xms1024M
    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.23 FML v4.5.65.500 Minecraft Forge 6.4.2.448 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
    Romas_MineNui [Mine-Nui Mod] (bin) Unloaded->Constructed->Pre-initialized->Errored
    LWJGL: 2.4.2
    OpenGL: Intel Bear Lake B GL version 1.4.0 - Build 7.15.10.5218, Intel
    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.NoSuchMethodException: bionicle.common.ItemNuiJagaNest.<init>(int)
    at cpw.mods.fml.common.registry.GameRegistry.registerBlock(GameRegistry.java:246)
    at cpw.mods.fml.common.registry.GameRegistry.registerBlock(GameRegistry.java:220)
    at bionicle.common.Mod_Bionicle.load(Mod_Bionicle.java:235)
    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:440)
    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:69)
    at com.google.common.eventbus.SynchronizedEventHandler.handleEvent(SynchronizedEventHandler.java:45)
    at com.google.common.eventbus.EventBus.dispatch(EventBus.java:317)
    at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:300)
    at com.google.common.eventbus.EventBus.post(EventBus.java:268)
    at cpw.mods.fml.common.LoadController.propogateStateMessage(LoadController.java:140)
    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:69)
    at com.google.common.eventbus.SynchronizedEventHandler.handleEvent(SynchronizedEventHandler.java:45)
    at com.google.common.eventbus.EventBus.dispatch(EventBus.java:317)
    at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:300)
    at com.google.common.eventbus.EventBus.post(EventBus.java:268)
    at cpw.mods.fml.common.LoadController.distributeStateMessage(LoadController.java:83)
    at cpw.mods.fml.common.Loader.initializeMods(Loader.java:651)
    at cpw.mods.fml.client.FMLClientHandler.finishMinecraftLoading(FMLClientHandler.java:207)
    at net.minecraft.client.Minecraft.startGame(Minecraft.java:458)
    at net.minecraft.client.Minecraft.run(Minecraft.java:746)
    at java.lang.Thread.run(Unknown Source)
    Caused by: java.lang.NoSuchMethodException: bionicle.common.ItemNuiJagaNest.<init>(int)
    at java.lang.Class.getConstructor0(Unknown Source)
    at java.lang.Class.getConstructor(Unknown Source)
    at cpw.mods.fml.common.registry.GameRegistry.registerBlock(GameRegistry.java:240)
    ... 32 more
    --- END ERROR REPORT 6f4edc7b ----------


    my Block
    public class BlockNuiJagaNest extends Block
    {
    /** The type of tree this block came from. */
    public static final String[] NuiJagaNestType = new String[] {"Eggs", "noEggs", "Normal"};
    
    public BlockNuiJagaNest(int par1)
    {
    	 super(par1, 4, Material.cloth);
    	 this.setCreativeTab(CreativeTabs.tabBlock);
    
    }
    
    /**
    	 * From the specified side and block metadata retrieves the blocks texture. Args: side, metadata
    	 */
    public int getBlockTextureFromSideAndMetadata(int par1, int par2)
    {
    	 switch (par2)
    	 {
    		 case 0:
    			 return 31;
    		 case 1:
    			 return 33;
    		 default:
    			 return 32;
    	 }
    }
    
    /**
    	 * Determines the damage on the item the block drops. Used in cloth and NuiJagaNest.
    	 */
    public int damageDropped(int par1)
    {
    	 return par1;
    }
    
    
    @SideOnly(Side.CLIENT)
    
    /**
    	 * returns a list of blocks with the same ID, but different meta (eg: NuiJagaNest returns 4 blocks)
    	 */
    public void getSubBlocks(int par1, CreativeTabs par2CreativeTabs, List par3List)
    {
    	 par3List.add(new ItemStack(par1, 1, 0));
    	 par3List.add(new ItemStack(par1, 1, 1));
    	 par3List.add(new ItemStack(par1, 1, 2));
    }
    
    
    
    public String getTextureFile()
    {
    		 return "/Textures/Blocks.png";
    }
    }

    my Item
    public class ItemNuiJagaNest extends ItemBlock{
    
    	 public ItemNuiJagaNest(int id, Block block){
    			 super(id);
    			 this.setMaxDamage(0);
    			 setHasSubtypes(true);
    	 }
    	
    	 public int getIconFromDamage(int par1) //Gets the texture
    	 {
    				 return Mod_Bionicle.blockNuiJagaNest.getBlockTextureFromSideAndMetadata(2, par1);
    	 }
    
    	 public String getItemNameIS(ItemStack is){
    			 String name = "";
    			 switch(is.getItemDamage()){
    			 case 0: {name= "normal";
    							 break;}
    			 case 1: {name= "eggs";
    							 break;}
    			 case 2: name= "noeggs";
    			 }
    			 return getItemName()+"."+name;
    			
    	 }
    	
    	
    	 public int getMetadata(int meta){
    			 return meta;
    	 }

    and the piece of my Mod_file we are focusing in:

    public static Block blockNuiJagaNest = new BlockNuiJagaNest(181).setHardness(4F).setResistance(0F).setStepSound(Block.soundClothFootstep).setBlockName("NuiJagaNest");

    public void load(FMLInitializationEvent event) {
    GameRegistry.registerBlock(blockNuiJagaNest, ItemNuiJagaNest.class, "Nui-Jaga Nest");
    LanguageRegistry.addName(new ItemStack(blockNuiJagaNest,1,1), "Sapphire Block");
    LanguageRegistry.addName(new ItemStack(blockNuiJagaNest,1,2), "Amethyst Block");
    LanguageRegistry.addName(new ItemStack(blockNuiJagaNest,1,3), "Topaz Block");

    Thanks, nice tutorials also.
    Posted in: Tutorials
  • 0

    posted a message on Trouble rendering throwable entity with model
    IT WORKS!!!!!



    I didn't used any living things... just an Entity class similar to the EntityThrowable one, a modified Render class of the RenderBoat, and my own model! YES!!! well, thanks for your help and support. If you want me to post the class files tell me, ok?
    Oh I'm so happy.
    Posted in: Modification Development
  • 0

    posted a message on Trouble rendering throwable entity with model
    Well, I have tried that (it's an Entity Arrow settings for an Entity Living, I also added a MaxHealth)
    I got a new Error:


    Minecraft has crashed!
    ----------------------

    Minecraft has stopped running because it encountered a problem; Ticking entity

    A full error report has been saved to C:\Archivos de programa\MCP Spiral\jars\.\crash-reports\crash-2012-12-20_07.34.00-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 55ddaa93 --------
    Full report at:
    C:\Archivos de programa\MCP Spiral\jars\.\crash-reports\crash-2012-12-20_07.34.00-client.txt
    Please show that file to Mojang, NOT just this screen!

    Generated 20/12/12 7:34

    -- Head --
    Stacktrace:
    at net.minecraft.src.DataWatcher.getWatchableObjectInt(DataWatcher.java:81)
    at net.minecraft.src.EntityLiving.updatePotionEffects(EntityLiving.java:2283)
    at net.minecraft.src.EntityLiving.onEntityUpdate(EntityLiving.java:609)
    at net.minecraft.src.Entity.onUpdate(Entity.java:380)
    at net.minecraft.src.EntityLiving.onUpdate(EntityLiving.java:724)
    at net.minecraft.src.EntityShard.onUpdate(EntityShard.java:168)
    at net.minecraft.src.World.updateEntityWithOptionalForce(World.java:2138)
    at net.minecraft.src.World.updateEntity(World.java:2109)

    -- Entity being ticked --
    Details:
    Entity Type: Shard (net.minecraft.src.EntityShard)
    Entity ID: 3097
    Name: entity.Shard.name
    Exact location: 1132,05, 5,64, 691,13
    Block location: World: (1132,5,691), Chunk: (at 12,0,3 in 70,43; contains blocks 1120,0,688 to 1135,255,703), Region: (2,1; contains chunks 64,32 to 95,63, blocks 1024,0,512 to 1535,255,1023)
    Momentum: 0,85, 0,07, -1,21
    Stacktrace:
    at net.minecraft.src.World.updateEntities(World.java:1960)

    -- Affected level --
    Details:
    Level name: MpServer
    All players: 1 total; [EntityClientPlayerMP['Player262'/18, l='MpServer', x=1131,92, y=5,62, z=691,04]]
    Chunk stats: MultiplayerChunkCache: 441
    Level seed: 0
    Level generator: ID 01 - flat, ver 0. Features enabled: false
    Level generator options:
    Level spawn location: World: (1127,4,697), Chunk: (at 7,0,9 in 70,43; contains blocks 1120,0,688 to 1135,255,703), Region: (2,1; contains chunks 64,32 to 95,63, blocks 1024,0,512 to 1535,255,1023)
    Level time: 43592 game time, 43592 day time
    Level dimension: 0
    Level storage version: 0x00000 - Unknown?
    Level weather: Rain time: 0 (now: false), thunder time: 0 (now: false)
    Level game mode: Game mode: creative (ID 1). Hardcore: false. Cheats: false
    Forced entities: 11 total; [EntityShard['entity.Shard.name'/3097, l='MpServer', x=1132,05, y=5,64, z=691,13], EntityPig['Pig'/3, l='MpServer', x=1065,06, y=4,00, z=649,91], EntityBat['Bat'/4, l='MpServer', x=1127,47, y=1,00, z=691,75], EntityBat['Bat'/5, l='MpServer', x=1129,64, y=1,00, z=690,38], EntityBat['Bat'/6, l='MpServer', x=1129,08, y=1,00, z=692,66], EntityBat['Bat'/7, l='MpServer', x=1129,75, y=1,00, z=690,69], EntityClientPlayerMP['Player262'/18, l='MpServer', x=1131,92, y=5,62, z=691,04], EntitySheep['Sheep'/8, l='MpServer', x=1189,41, y=4,00, z=642,56], EntitySheep['Sheep'/9, l='MpServer', x=1185,88, y=4,00, z=640,13], EntitySheep['Sheep'/10, l='MpServer', x=1191,34, y=4,00, z=644,75], EntitySheep['Sheep'/11, l='MpServer', x=1207,34, y=4,00, z=630,25]]
    Retry entities: 0 total; []
    Stacktrace:
    at net.minecraft.src.WorldClient.addWorldInfoToCrashReport(WorldClient.java:411)
    at net.minecraft.client.Minecraft.addGraphicsAndWorldToCrashReport(Minecraft.java:2428)
    at net.minecraft.client.Minecraft.run(Minecraft.java:784)
    at java.lang.Thread.run(Unknown Source)

    -- System Details --
    Details:
    Minecraft Version: 1.4.5
    Operating System: Windows XP (x86) version 5.1
    Java Version: 1.7.0_09, Oracle Corporation
    Java VM Version: Java HotSpot(TM) Client VM (mixed mode), Oracle Corporation
    Memory: 864604624 bytes (824 MB) / 1060372480 bytes (1011 MB) up to 1060372480 bytes (1011 MB)
    JVM Flags: 3 total; -Xincgc -Xmx1024M -Xms1024M
    AABB Pool Size: 308 (17248 bytes; 0 MB) allocated, 155 (8680 bytes; 0 MB) used
    Suspicious classes: Start[net.minecraft.src.IPlayerUsage, MinecraftFakeLauncher, ThreadShutdown, ...]
    IntCache: cache: 0, tcache: 0, allocated: 0, tallocated: 0
    ModLoader: Mods loaded: 2
    ModLoader 1.4.5
    mod_Bionicle 1.4.5

    LWJGL: 2.4.2
    OpenGL: Intel Bear Lake B GL version 1.4.0 - Build 7.15.10.5218, Intel
    Is Modded: Very likely; Jar signature invalidated
    Type: Client (map_client.txt)
    Texture Pack: Default
    Profiler Position: N/A (disabled)
    Vec3 Pool Size: 84 (4704 bytes; 0 MB) allocated, 31 (1736 bytes; 0 MB) used

    java.lang.NullPointerException
    at net.minecraft.src.DataWatcher.getWatchableObjectInt(DataWatcher.java:81)
    at net.minecraft.src.EntityLiving.updatePotionEffects(EntityLiving.java:2283)
    at net.minecraft.src.EntityLiving.onEntityUpdate(EntityLiving.java:609)
    at net.minecraft.src.Entity.onUpdate(Entity.java:380)
    at net.minecraft.src.EntityLiving.onUpdate(EntityLiving.java:724)
    at net.minecraft.src.EntityShard.onUpdate(EntityShard.java:168)
    at net.minecraft.src.World.updateEntityWithOptionalForce(World.java:2138)
    at net.minecraft.src.World.updateEntity(World.java:2109)
    at net.minecraft.src.World.updateEntities(World.java:1960)
    at net.minecraft.client.Minecraft.runTick(Minecraft.java:1846)
    at net.minecraft.client.Minecraft.runGameLoop(Minecraft.java:843)
    at net.minecraft.client.Minecraft.run(Minecraft.java:768)
    at java.lang.Thread.run(Unknown Source)
    --- END ERROR REPORT b645d4a4 ----------

    Thanks for helping, I will post if I advance with this.
    Posted in: Modification Development
  • 0

    posted a message on Trouble rendering throwable entity with model
    That's the problem. Could I create an EntityLiving with the same properties that a Throwable one? I mean, won't it walk or something like that? If it is possible, please tell me and I will start right now.

    The other alternative, about creating a non-living render file, I just don't know nothing and have no experience about rendering. I don't know how does it even works. The most advanced thing I've done was creating a living entity with a custom model. So I will try the first one I think.

    Thanks for replying.
    Posted in: Modification Development
  • 0

    posted a message on Trouble rendering throwable entity with model
    Hi! I am making a mod with MODLOADER and I got a crash error. This issue got me about a year ago.
    I'm having some trouble with rendering an Entity called "EntityShard".

    The EntityShard is an extension to the EntityThrowable class... but I found the Render in another topic and made the Model class myself.

    When I start Minecraft it's all ok but when I spawn the EntityShard in the world it crashes.
    Can someone please help me finding the problem in this situation? I will be very thankfull.


    This is my EntityShard code. It's a copy paste of EntitySnowball but I didn't used the same class because I want to modify it later.
    package net.minecraft.src;
    
    public class EntityShard extends EntityThrowable
    {
    public EntityShard(World par1World)
    {
    	 super(par1World);
    }
    
    public EntityShard(World par1World, EntityLiving par2EntityLiving)
    {
    	 super(par1World, par2EntityLiving);
    }
    
    public EntityShard(World par1World, double par2, double par4, double par6)
    {
    	 super(par1World, par2, par4, par6);
    }
    
    /**
    	 * Called when this EntityThrowable hits a block or entity.
    	 */
    protected void onImpact(MovingObjectPosition par1MovingObjectPosition)
    {
    	 if (par1MovingObjectPosition.entityHit != null)
    	 {
    		 byte var2 = 0;
    
    		 if (par1MovingObjectPosition.entityHit instanceof EntityBlaze)
    		 {
    			 var2 = 3;
    		 }
    
    		 par1MovingObjectPosition.entityHit.attackEntityFrom(DamageSource.causeThrownDamage(this, this.func_85052_h()), var2);
    	 }
    
    	 for (int var3 = 0; var3 < 8; ++var3)
    	 {
    		 this.worldObj.spawnParticle("snowballpoof", this.posX, this.posY, this.posZ, 0.0D, 0.0D, 0.0D);
    	 }
    
    	 if (!this.worldObj.isRemote)
    	 {
    		 this.setDead();
    	 }
    }
    }

    This is where I call the Shard (it's an item)
    public ItemStack onItemRightClick(ItemStack itemstack, World world, EntityPlayer entityplayer)
    {
    			 world.spawnEntityInWorld(new EntityShard(world,ModLoader.getMinecraftInstance().thePlayer));
    	 return itemstack;
    }


    The RenderShard class
    package net.minecraft.src;
    
    public class RenderShard extends RenderLiving
    {
    
    	 public RenderShard(float f)
    	 {
    			 super(new ModelShard(), f);
    	 }
    
    	 public void renderNew(EntityLiving entityliving, double d, double d1, double d2, float f, float f1)
    	 {
    			 super.doRenderLiving(entityliving, d, d1, d2, f, f1);
    	 }
    
    	 public void doRenderLiving(EntityLiving entityliving, double d, double d1, double d2, float f, float f1)
    	 {
    			 renderNew(entityliving, d, d1, d2, f, f1);
    	 }
    
    	 public void doRender(Entity entity, double d, double d1, double d2, float f, float f1)
    	 {
    			 renderNew((EntityLiving)entity, d, d1, d2, f, f1);
    	 }
    	 public void renderShard(EntityShard entityshard, double d, double d1, double d2,
    			 float f, float f1)
    {
    		 loadTexture("/Items/Flute.png");
    			 //Put this random texture here
    }
    
    }

    And the ModelShard
    package net.minecraft.src;
    
    import net.minecraft.client.Minecraft;
    
    public class ModelShard extends ModelBase
    {
    //fields
    ModelRenderer Body;
    public ModelShard()
    {
    	 textureWidth = 16;
    	 textureHeight = 16;
    	
    	 Body = new ModelRenderer(this, 0, 0);
    	 Body.addBox(4F, 2F, 2F, 4, 2, 2);
    	 Body.setRotationPoint(0F,0F,0F);
    	 setRotation(Body, 0F, 0F, 0F);
    }
    
    public void render(Entity entity, float f, float f1, float f2, float f3, float f4, float f5)
    {
    	 super.render(entity, f, f1, f2, f3, f4, f5);
    	 setRotationAngles(f, f1, f2, f3, f4, f5,entity);
    	 Body.render(f5);
    }
    
    private void setRotation(ModelRenderer model, float x, float y, float z)
    {
    	 model.rotateAngleX = x;
    	 model.rotateAngleY = y;
    	 model.rotateAngleZ = z;
    }
    
    public void setRotationAngles(float par1, float par2, float par3, float par4, float par5, float par6, Entity par7Entity) {
    super.setRotationAngles(par1, par2, par3, par4, par5, par6, par7Entity);
    }
    }

    Crash report:


    Minecraft has crashed!
    ----------------------

    Minecraft has stopped running because it encountered a problem; Rendering entity in world

    A full error report has been saved to C:\Archivos de programa\MCP\jars\.\crash-reports\crash-2012-12-18_08.19.24-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 e3d30ee2 --------
    Full report at:
    C:\Archivos de programa\MCP Spiral\jars\.\crash-reports\crash-2012-12-18_08.19.24-client.txt
    Please show that file to Mojang, NOT just this screen!

    Generated 18/12/12 8:19

    -- Head --
    Stacktrace:
    at net.minecraft.src.RenderShard.doRender(RenderShard.java:23)

    -- Entity being rendered --
    Details:
    Entity Type: Shard (net.minecraft.src.EntityShard)
    Entity ID: 3246
    Name: entity.Shard.name
    Exact location: -185,18, 7,65, -263,86
    Block location: World: (-186,7,-264), Chunk: (at 6,0,8 in -12,-17; contains blocks -192,0,-272 to -177,255,-257), Region: (-1,-1; contains chunks -32,-32 to -1,-1, blocks -512,0,-512 to -1,255,-1)
    Momentum: -0,01, -0,02, -1,48

    -- Renderer details --
    Details:
    Assigned renderer: [email protected]
    Location: 0,16,0,03,-0,21 - World: (0,0,-1), Chunk: (at 0,0,15 in 0,-1; contains blocks 0,0,-16 to 15,255,-1), Region: (0,-1; contains chunks 0,-32 to 31,-1, blocks 0,0,-512 to 511,255,-1)
    Rotation: -179.8015
    Delta: 0.15823424
    Stacktrace:
    at net.minecraft.src.RenderManager.renderEntityWithPosYaw(RenderManager.java:218)
    at net.minecraft.src.RenderManager.renderEntity(RenderManager.java:187)
    at net.minecraft.src.RenderGlobal.renderEntities(RenderGlobal.java:438)
    at net.minecraft.src.EntityRenderer.renderWorld(EntityRenderer.java:1097)
    at net.minecraft.src.EntityRenderer.updateCameraAndRender(EntityRenderer.java:936)

    -- Affected level --
    Details:
    Level name: MpServer
    All players: 1 total; [EntityClientPlayerMP['Player808'/46, l='MpServer', x=-185,33, y=7,54, z=-262,56]]
    Chunk stats: MultiplayerChunkCache: 441
    Level seed: 0
    Level generator: ID 01 - flat, ver 0. Features enabled: false
    Level generator options:
    Level spawn location: World: (-177,4,-252), Chunk: (at 15,0,4 in -12,-16; contains blocks -192,0,-256 to -177,255,-241), Region: (-1,-1; contains chunks -32,-32 to -1,-1, blocks -512,0,-512 to -1,255,-1)
    Level time: 81894 game time, 17795 day time
    Level dimension: 0
    Level storage version: 0x00000 - Unknown?
    Level weather: Rain time: 0 (now: true), thunder time: 0 (now: false)
    Level game mode: Game mode: creative (ID 1). Hardcore: false. Cheats: false
    Forced entities: 8 total; [EntityPig['Pig'/35, l='MpServer', x=-164,84, y=6,00, z=-292,66], EntityClientPlayerMP['Player808'/46, l='MpServer', x=-185,33, y=7,54, z=-262,56], EntitySheep['Sheep'/38, l='MpServer', x=-152,34, y=6,00, z=-280,22], EntityPig['Pig'/39, l='MpServer', x=-132,53, y=6,00, z=-338,19], EntityPig['Pig'/37, l='MpServer', x=-145,81, y=6,00, z=-331,69], EntityPig['Pig'/40, l='MpServer', x=-136,72, y=6,00, z=-302,01], EntitySheep['Sheep'/41, l='MpServer', x=-133,03, y=6,00, z=-272,94], EntityShard['entity.Shard.name'/3246, l='MpServer', x=-185,18, y=7,65, z=-263,86]]
    Retry entities: 0 total; []
    Stacktrace:
    at net.minecraft.src.WorldClient.addWorldInfoToCrashReport(WorldClient.java:411)
    at net.minecraft.client.Minecraft.addGraphicsAndWorldToCrashReport(Minecraft.java:2428)
    at net.minecraft.client.Minecraft.run(Minecraft.java:784)
    at java.lang.Thread.run(Unknown Source)

    -- System Details --
    Details:
    Minecraft Version: 1.4.5
    Operating System: Windows XP (x86) version 5.1
    Java Version: 1.7.0_09, Oracle Corporation
    Java VM Version: Java HotSpot™ Client VM (mixed mode), Oracle Corporation
    Memory: 877187944 bytes (836 MB) / 1060372480 bytes (1011 MB) up to 1060372480 bytes (1011 MB)
    JVM Flags: 3 total; -Xincgc -Xmx1024M -Xms1024M
    AABB Pool Size: 962 (53872 bytes; 0 MB) allocated, 123 (6888 bytes; 0 MB) used
    Suspicious classes: Start[net.minecraft.src.IPlayerUsage, MinecraftFakeLauncher, ThreadShutdown, ...]
    IntCache: cache: 0, tcache: 0, allocated: 0, tallocated: 0
    ModLoader: Mods loaded: 2
    ModLoader 1.4.5
    mod_Bionicle 1.4.5

    LWJGL: 2.4.2
    OpenGL: Intel Bear Lake B GL version 1.4.0 - Build 7.15.10.5218, Intel
    Is Modded: Very likely; Jar signature invalidated
    Type: Client (map_client.txt)
    Texture Pack: Default
    Profiler Position: N/A (disabled)
    Vec3 Pool Size: 240 (13440 bytes; 0 MB) allocated, 49 (2744 bytes; 0 MB) used

    java.lang.ClassCastException: net.minecraft.src.EntityShard cannot be cast to net.minecraft.src.EntityLiving
    at net.minecraft.src.RenderShard.doRender(RenderShard.java:23)
    at net.minecraft.src.RenderManager.renderEntityWithPosYaw(RenderManager.java:218)
    at net.minecraft.src.RenderManager.renderEntity(RenderManager.java:187)
    at net.minecraft.src.RenderGlobal.renderEntities(RenderGlobal.java:438)
    at net.minecraft.src.EntityRenderer.renderWorld(EntityRenderer.java:1097)
    at net.minecraft.src.EntityRenderer.updateCameraAndRender(EntityRenderer.java:936)
    at net.minecraft.src.EntityRendererProxy.updateCameraAndRender(EntityRendererProxy.java:20)
    at net.minecraft.client.Minecraft.runGameLoop(Minecraft.java:872)
    at net.minecraft.client.Minecraft.run(Minecraft.java:768)
    at java.lang.Thread.run(Unknown Source)
    --- END ERROR REPORT 8a27c77f ----------


    And obviously I included
    public void addRenderer(Map map)
    {
    		 map.put(EntityShard.class, new RenderShard( 0.5F));
    }
    public mod_***()
    {
    ModLoader.registerEntityID(EntityShard.class, "Shard", ModLoader.getUniqueEntityId());


    I really need to know how to fix this to advance with my mod. Thanks.
    Posted in: Modification Development
  • 0

    posted a message on Trouble rendering throwable entity with model
    It's a cubic Shard. Much like a bullet. I didn't set the damage yet so I think it doesn't make any damage. What is that for anyways?
    Also thanks for replying.
    Posted in: Mods Discussion
  • 0

    posted a message on Screen effects mod... Need help
    When I started making a mod a year ago I had the same trouble. Then I left the project and now that I'm back I really need to know how to mrender an overlay like the pumpkin one. If anyone can help us two, I will be very thankfull.
    Posted in: Modification Development
  • 0

    posted a message on Trouble rendering a throwable entity with model
    Hi! I am making a mod with MODLOADER and I got a crash error. This issue got me about a year ago.
    I'm having some trouble with rendering an Entity called "EntityShard".

    The EntityShard is an extension to the EntityThrowable class... but I found the Render in another topic and made the Model class myself.

    When I start Minecraft it's all ok but when I spawn the EntityShard in the world it crashes.
    Can someone please help me finding the problem in this situation? I will be very thankfull.


    This is my EntityShard code. It's a copy paste of EntitySnowball but I didn't used the same class because I want to modify it later.
    package net.minecraft.src;
    
    public class EntityShard extends EntityThrowable
    {
    public EntityShard(World par1World)
    {
    	 super(par1World);
    }
    
    public EntityShard(World par1World, EntityLiving par2EntityLiving)
    {
    	 super(par1World, par2EntityLiving);
    }
    
    public EntityShard(World par1World, double par2, double par4, double par6)
    {
    	 super(par1World, par2, par4, par6);
    }
    
    /**
    	 * Called when this EntityThrowable hits a block or entity.
    	 */
    protected void onImpact(MovingObjectPosition par1MovingObjectPosition)
    {
    	 if (par1MovingObjectPosition.entityHit != null)
    	 {
    		 byte var2 = 0;
    
    		 if (par1MovingObjectPosition.entityHit instanceof EntityBlaze)
    		 {
    			 var2 = 3;
    		 }
    
    		 par1MovingObjectPosition.entityHit.attackEntityFrom(DamageSource.causeThrownDamage(this, this.func_85052_h()), var2);
    	 }
    
    	 for (int var3 = 0; var3 < 8; ++var3)
    	 {
    		 this.worldObj.spawnParticle("snowballpoof", this.posX, this.posY, this.posZ, 0.0D, 0.0D, 0.0D);
    	 }
    
    	 if (!this.worldObj.isRemote)
    	 {
    		 this.setDead();
    	 }
    }
    }

    This is where I call the Shard (it's an item)
    public ItemStack onItemRightClick(ItemStack itemstack, World world, EntityPlayer entityplayer)
    {
    			 world.spawnEntityInWorld(new EntityShard(world,ModLoader.getMinecraftInstance().thePlayer));
    	 return itemstack;
    }


    The RenderShard class
    package net.minecraft.src;
    
    public class RenderShard extends RenderLiving
    {
    
    	 public RenderShard(float f)
    	 {
    			 super(new ModelShard(), f);
    	 }
    
    	 public void renderNew(EntityLiving entityliving, double d, double d1, double d2, float f, float f1)
    	 {
    			 super.doRenderLiving(entityliving, d, d1, d2, f, f1);
    	 }
    
    	 public void doRenderLiving(EntityLiving entityliving, double d, double d1, double d2, float f, float f1)
    	 {
    			 renderNew(entityliving, d, d1, d2, f, f1);
    	 }
    
    	 public void doRender(Entity entity, double d, double d1, double d2, float f, float f1)
    	 {
    			 renderNew((EntityLiving)entity, d, d1, d2, f, f1);
    	 }
    	 public void renderShard(EntityShard entityshard, double d, double d1, double d2,
    			 float f, float f1)
    {
    		 loadTexture("/Items/Flute.png");
    			 //Put this random texture here
    }
    
    }

    And the ModelShard
    package net.minecraft.src;
    
    import net.minecraft.client.Minecraft;
    
    public class ModelShard extends ModelBase
    {
    //fields
    ModelRenderer Body;
    public ModelShard()
    {
    	 textureWidth = 16;
    	 textureHeight = 16;
    	
    	 Body = new ModelRenderer(this, 0, 0);
    	 Body.addBox(4F, 2F, 2F, 4, 2, 2);
    	 Body.setRotationPoint(0F,0F,0F);
    	 setRotation(Body, 0F, 0F, 0F);
    }
    
    public void render(Entity entity, float f, float f1, float f2, float f3, float f4, float f5)
    {
    	 super.render(entity, f, f1, f2, f3, f4, f5);
    	 setRotationAngles(f, f1, f2, f3, f4, f5,entity);
    	 Body.render(f5);
    }
    
    private void setRotation(ModelRenderer model, float x, float y, float z)
    {
    	 model.rotateAngleX = x;
    	 model.rotateAngleY = y;
    	 model.rotateAngleZ = z;
    }
    
    public void setRotationAngles(float par1, float par2, float par3, float par4, float par5, float par6, Entity par7Entity) {
    super.setRotationAngles(par1, par2, par3, par4, par5, par6, par7Entity);
    }
    }

    Crash report:


    Minecraft has crashed!
    ----------------------

    Minecraft has stopped running because it encountered a problem; Rendering entity in world

    A full error report has been saved to C:\Archivos de programa\MCP\jars\.\crash-reports\crash-2012-12-18_08.19.24-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 e3d30ee2 --------
    Full report at:
    C:\Archivos de programa\MCP Spiral\jars\.\crash-reports\crash-2012-12-18_08.19.24-client.txt
    Please show that file to Mojang, NOT just this screen!

    Generated 18/12/12 8:19

    -- Head --
    Stacktrace:
    at net.minecraft.src.RenderShard.doRender(RenderShard.java:23)

    -- Entity being rendered --
    Details:
    Entity Type: Shard (net.minecraft.src.EntityShard)
    Entity ID: 3246
    Name: entity.Shard.name
    Exact location: -185,18, 7,65, -263,86
    Block location: World: (-186,7,-264), Chunk: (at 6,0,8 in -12,-17; contains blocks -192,0,-272 to -177,255,-257), Region: (-1,-1; contains chunks -32,-32 to -1,-1, blocks -512,0,-512 to -1,255,-1)
    Momentum: -0,01, -0,02, -1,48

    -- Renderer details --
    Details:
    Assigned renderer: [email protected]
    Location: 0,16,0,03,-0,21 - World: (0,0,-1), Chunk: (at 0,0,15 in 0,-1; contains blocks 0,0,-16 to 15,255,-1), Region: (0,-1; contains chunks 0,-32 to 31,-1, blocks 0,0,-512 to 511,255,-1)
    Rotation: -179.8015
    Delta: 0.15823424
    Stacktrace:
    at net.minecraft.src.RenderManager.renderEntityWithPosYaw(RenderManager.java:218)
    at net.minecraft.src.RenderManager.renderEntity(RenderManager.java:187)
    at net.minecraft.src.RenderGlobal.renderEntities(RenderGlobal.java:438)
    at net.minecraft.src.EntityRenderer.renderWorld(EntityRenderer.java:1097)
    at net.minecraft.src.EntityRenderer.updateCameraAndRender(EntityRenderer.java:936)

    -- Affected level --
    Details:
    Level name: MpServer
    All players: 1 total; [EntityClientPlayerMP['Player808'/46, l='MpServer', x=-185,33, y=7,54, z=-262,56]]
    Chunk stats: MultiplayerChunkCache: 441
    Level seed: 0
    Level generator: ID 01 - flat, ver 0. Features enabled: false
    Level generator options:
    Level spawn location: World: (-177,4,-252), Chunk: (at 15,0,4 in -12,-16; contains blocks -192,0,-256 to -177,255,-241), Region: (-1,-1; contains chunks -32,-32 to -1,-1, blocks -512,0,-512 to -1,255,-1)
    Level time: 81894 game time, 17795 day time
    Level dimension: 0
    Level storage version: 0x00000 - Unknown?
    Level weather: Rain time: 0 (now: true), thunder time: 0 (now: false)
    Level game mode: Game mode: creative (ID 1). Hardcore: false. Cheats: false
    Forced entities: 8 total; [EntityPig['Pig'/35, l='MpServer', x=-164,84, y=6,00, z=-292,66], EntityClientPlayerMP['Player808'/46, l='MpServer', x=-185,33, y=7,54, z=-262,56], EntitySheep['Sheep'/38, l='MpServer', x=-152,34, y=6,00, z=-280,22], EntityPig['Pig'/39, l='MpServer', x=-132,53, y=6,00, z=-338,19], EntityPig['Pig'/37, l='MpServer', x=-145,81, y=6,00, z=-331,69], EntityPig['Pig'/40, l='MpServer', x=-136,72, y=6,00, z=-302,01], EntitySheep['Sheep'/41, l='MpServer', x=-133,03, y=6,00, z=-272,94], EntityShard['entity.Shard.name'/3246, l='MpServer', x=-185,18, y=7,65, z=-263,86]]
    Retry entities: 0 total; []
    Stacktrace:
    at net.minecraft.src.WorldClient.addWorldInfoToCrashReport(WorldClient.java:411)
    at net.minecraft.client.Minecraft.addGraphicsAndWorldToCrashReport(Minecraft.java:2428)
    at net.minecraft.client.Minecraft.run(Minecraft.java:784)
    at java.lang.Thread.run(Unknown Source)

    -- System Details --
    Details:
    Minecraft Version: 1.4.5
    Operating System: Windows XP (x86) version 5.1
    Java Version: 1.7.0_09, Oracle Corporation
    Java VM Version: Java HotSpot™ Client VM (mixed mode), Oracle Corporation
    Memory: 877187944 bytes (836 MB) / 1060372480 bytes (1011 MB) up to 1060372480 bytes (1011 MB)
    JVM Flags: 3 total; -Xincgc -Xmx1024M -Xms1024M
    AABB Pool Size: 962 (53872 bytes; 0 MB) allocated, 123 (6888 bytes; 0 MB) used
    Suspicious classes: Start[net.minecraft.src.IPlayerUsage, MinecraftFakeLauncher, ThreadShutdown, ...]
    IntCache: cache: 0, tcache: 0, allocated: 0, tallocated: 0
    ModLoader: Mods loaded: 2
    ModLoader 1.4.5
    mod_Bionicle 1.4.5

    LWJGL: 2.4.2
    OpenGL: Intel Bear Lake B GL version 1.4.0 - Build 7.15.10.5218, Intel
    Is Modded: Very likely; Jar signature invalidated
    Type: Client (map_client.txt)
    Texture Pack: Default
    Profiler Position: N/A (disabled)
    Vec3 Pool Size: 240 (13440 bytes; 0 MB) allocated, 49 (2744 bytes; 0 MB) used

    java.lang.ClassCastException: net.minecraft.src.EntityShard cannot be cast to net.minecraft.src.EntityLiving
    at net.minecraft.src.RenderShard.doRender(RenderShard.java:23)
    at net.minecraft.src.RenderManager.renderEntityWithPosYaw(RenderManager.java:218)
    at net.minecraft.src.RenderManager.renderEntity(RenderManager.java:187)
    at net.minecraft.src.RenderGlobal.renderEntities(RenderGlobal.java:438)
    at net.minecraft.src.EntityRenderer.renderWorld(EntityRenderer.java:1097)
    at net.minecraft.src.EntityRenderer.updateCameraAndRender(EntityRenderer.java:936)
    at net.minecraft.src.EntityRendererProxy.updateCameraAndRender(EntityRendererProxy.java:20)
    at net.minecraft.client.Minecraft.runGameLoop(Minecraft.java:872)
    at net.minecraft.client.Minecraft.run(Minecraft.java:768)
    at java.lang.Thread.run(Unknown Source)
    --- END ERROR REPORT 8a27c77f ----------


    And obviously I included
    public void addRenderer(Map map)
    {
    		 map.put(EntityShard.class, new RenderShard( 0.5F));
    }
    public mod_***()
    {
    ModLoader.registerEntityID(EntityShard.class, "Shard", ModLoader.getUniqueEntityId());


    I really need to know how to fix this to advance with my mod. Thanks.
    Posted in: Modification Development
  • 0

    posted a message on Trouble rendering throwable entity with model
    Bump again.
    Posted in: Mods Discussion
  • 0

    posted a message on Trouble rendering throwable entity with model
    BUMP
    Posted in: Mods Discussion
  • 0

    posted a message on Trouble rendering throwable entity with model
    Hi! I am making a mod with MODLOADER and I got a crash error. This issue got me about a year ago.
    I'm having some trouble with rendering an Entity called "EntityShard".

    The EntityShard is an extension to the EntityThrowable class... but I found the Render in another topic and made the Model class myself.

    When I start Minecraft it's all ok but when I spawn the EntityShard in the world it crashes.
    Can someone please help me finding the problem in this situation? I will be very thankfull.


    This is my EntityShard code. It's a copy paste of EntitySnowball but I didn't used the same class because I want to modify it later.
    package net.minecraft.src;
    
    public class EntityShard extends EntityThrowable
    {
    public EntityShard(World par1World)
    {
    	 super(par1World);
    }
    
    public EntityShard(World par1World, EntityLiving par2EntityLiving)
    {
    	 super(par1World, par2EntityLiving);
    }
    
    public EntityShard(World par1World, double par2, double par4, double par6)
    {
    	 super(par1World, par2, par4, par6);
    }
    
    /**
    	 * Called when this EntityThrowable hits a block or entity.
    	 */
    protected void onImpact(MovingObjectPosition par1MovingObjectPosition)
    {
    	 if (par1MovingObjectPosition.entityHit != null)
    	 {
    		 byte var2 = 0;
    
    		 if (par1MovingObjectPosition.entityHit instanceof EntityBlaze)
    		 {
    			 var2 = 3;
    		 }
    
    		 par1MovingObjectPosition.entityHit.attackEntityFrom(DamageSource.causeThrownDamage(this, this.func_85052_h()), var2);
    	 }
    
    	 for (int var3 = 0; var3 < 8; ++var3)
    	 {
    		 this.worldObj.spawnParticle("snowballpoof", this.posX, this.posY, this.posZ, 0.0D, 0.0D, 0.0D);
    	 }
    
    	 if (!this.worldObj.isRemote)
    	 {
    		 this.setDead();
    	 }
    }
    }

    This is where I call the Shard (it's an item)
    public ItemStack onItemRightClick(ItemStack itemstack, World world, EntityPlayer entityplayer)
        {
    			    world.spawnEntityInWorld(new EntityShard(world,ModLoader.getMinecraftInstance().thePlayer));
    	    return itemstack;
        }


    The RenderShard class
    package net.minecraft.src;
    
    public class RenderShard extends RenderLiving
    {
    
    	 public RenderShard(float f)
    	 {
    			 super(new ModelShard(), f);
    	 }
    
    	 public void renderNew(EntityLiving entityliving, double d, double d1, double d2, float f, float f1)
    	 {
    			 super.doRenderLiving(entityliving, d, d1, d2, f, f1);
    	 }
    
    	 public void doRenderLiving(EntityLiving entityliving, double d, double d1, double d2, float f, float f1)
    	 {
    			 renderNew(entityliving, d, d1, d2, f, f1);
    	 }
    
    	 public void doRender(Entity entity, double d, double d1, double d2, float f, float f1)
    	 {
    			 renderNew((EntityLiving)entity, d, d1, d2, f, f1);
    	 }
    	 public void renderShard(EntityShard entityshard, double d, double d1, double d2,
    			 float f, float f1)
    {
    		 loadTexture("/Items/Flute.png");
    			 //Put this random texture here
    }
    
    }

    And the ModelShard
    package net.minecraft.src;
    
    import net.minecraft.client.Minecraft;
    
    public class ModelShard extends ModelBase
    {
    //fields
    ModelRenderer Body;
    public ModelShard()
    {
    	 textureWidth = 16;
    	 textureHeight = 16;
    	
    	 Body = new ModelRenderer(this, 0, 0);
    	 Body.addBox(4F, 2F, 2F, 4, 2, 2);
    	 Body.setRotationPoint(0F,0F,0F);
    	 setRotation(Body, 0F, 0F, 0F);
    }
    
    public void render(Entity entity, float f, float f1, float f2, float f3, float f4, float f5)
    {
    	 super.render(entity, f, f1, f2, f3, f4, f5);
    	 setRotationAngles(f, f1, f2, f3, f4, f5,entity);
    	 Body.render(f5);
    }
    
    private void setRotation(ModelRenderer model, float x, float y, float z)
    {
    	 model.rotateAngleX = x;
    	 model.rotateAngleY = y;
    	 model.rotateAngleZ = z;
    }
    
    public void setRotationAngles(float par1, float par2, float par3, float par4, float par5, float par6, Entity par7Entity) {
    super.setRotationAngles(par1, par2, par3, par4, par5, par6, par7Entity);
    }
    }

    Crash report:


    Minecraft has crashed!
    ----------------------

    Minecraft has stopped running because it encountered a problem; Rendering entity in world

    A full error report has been saved to C:\Archivos de programa\MCP\jars\.\crash-reports\crash-2012-12-18_08.19.24-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 e3d30ee2 --------
    Full report at:
    C:\Archivos de programa\MCP Spiral\jars\.\crash-reports\crash-2012-12-18_08.19.24-client.txt
    Please show that file to Mojang, NOT just this screen!

    Generated 18/12/12 8:19

    -- Head --
    Stacktrace:
    at net.minecraft.src.RenderShard.doRender(RenderShard.java:23)

    -- Entity being rendered --
    Details:
    Entity Type: Shard (net.minecraft.src.EntityShard)
    Entity ID: 3246
    Name: entity.Shard.name
    Exact location: -185,18, 7,65, -263,86
    Block location: World: (-186,7,-264), Chunk: (at 6,0,8 in -12,-17; contains blocks -192,0,-272 to -177,255,-257), Region: (-1,-1; contains chunks -32,-32 to -1,-1, blocks -512,0,-512 to -1,255,-1)
    Momentum: -0,01, -0,02, -1,48

    -- Renderer details --
    Details:
    Assigned renderer: [email protected]
    Location: 0,16,0,03,-0,21 - World: (0,0,-1), Chunk: (at 0,0,15 in 0,-1; contains blocks 0,0,-16 to 15,255,-1), Region: (0,-1; contains chunks 0,-32 to 31,-1, blocks 0,0,-512 to 511,255,-1)
    Rotation: -179.8015
    Delta: 0.15823424
    Stacktrace:
    at net.minecraft.src.RenderManager.renderEntityWithPosYaw(RenderManager.java:218)
    at net.minecraft.src.RenderManager.renderEntity(RenderManager.java:187)
    at net.minecraft.src.RenderGlobal.renderEntities(RenderGlobal.java:438)
    at net.minecraft.src.EntityRenderer.renderWorld(EntityRenderer.java:1097)
    at net.minecraft.src.EntityRenderer.updateCameraAndRender(EntityRenderer.java:936)

    -- Affected level --
    Details:
    Level name: MpServer
    All players: 1 total; [EntityClientPlayerMP['Player808'/46, l='MpServer', x=-185,33, y=7,54, z=-262,56]]
    Chunk stats: MultiplayerChunkCache: 441
    Level seed: 0
    Level generator: ID 01 - flat, ver 0. Features enabled: false
    Level generator options:
    Level spawn location: World: (-177,4,-252), Chunk: (at 15,0,4 in -12,-16; contains blocks -192,0,-256 to -177,255,-241), Region: (-1,-1; contains chunks -32,-32 to -1,-1, blocks -512,0,-512 to -1,255,-1)
    Level time: 81894 game time, 17795 day time
    Level dimension: 0
    Level storage version: 0x00000 - Unknown?
    Level weather: Rain time: 0 (now: true), thunder time: 0 (now: false)
    Level game mode: Game mode: creative (ID 1). Hardcore: false. Cheats: false
    Forced entities: 8 total; [EntityPig['Pig'/35, l='MpServer', x=-164,84, y=6,00, z=-292,66], EntityClientPlayerMP['Player808'/46, l='MpServer', x=-185,33, y=7,54, z=-262,56], EntitySheep['Sheep'/38, l='MpServer', x=-152,34, y=6,00, z=-280,22], EntityPig['Pig'/39, l='MpServer', x=-132,53, y=6,00, z=-338,19], EntityPig['Pig'/37, l='MpServer', x=-145,81, y=6,00, z=-331,69], EntityPig['Pig'/40, l='MpServer', x=-136,72, y=6,00, z=-302,01], EntitySheep['Sheep'/41, l='MpServer', x=-133,03, y=6,00, z=-272,94], EntityShard['entity.Shard.name'/3246, l='MpServer', x=-185,18, y=7,65, z=-263,86]]
    Retry entities: 0 total; []
    Stacktrace:
    at net.minecraft.src.WorldClient.addWorldInfoToCrashReport(WorldClient.java:411)
    at net.minecraft.client.Minecraft.addGraphicsAndWorldToCrashReport(Minecraft.java:2428)
    at net.minecraft.client.Minecraft.run(Minecraft.java:784)
    at java.lang.Thread.run(Unknown Source)

    -- System Details --
    Details:
    Minecraft Version: 1.4.5
    Operating System: Windows XP (x86) version 5.1
    Java Version: 1.7.0_09, Oracle Corporation
    Java VM Version: Java HotSpot™ Client VM (mixed mode), Oracle Corporation
    Memory: 877187944 bytes (836 MB) / 1060372480 bytes (1011 MB) up to 1060372480 bytes (1011 MB)
    JVM Flags: 3 total; -Xincgc -Xmx1024M -Xms1024M
    AABB Pool Size: 962 (53872 bytes; 0 MB) allocated, 123 (6888 bytes; 0 MB) used
    Suspicious classes: Start[net.minecraft.src.IPlayerUsage, MinecraftFakeLauncher, ThreadShutdown, ...]
    IntCache: cache: 0, tcache: 0, allocated: 0, tallocated: 0
    ModLoader: Mods loaded: 2
    ModLoader 1.4.5
    mod_Bionicle 1.4.5

    LWJGL: 2.4.2
    OpenGL: Intel Bear Lake B GL version 1.4.0 - Build 7.15.10.5218, Intel
    Is Modded: Very likely; Jar signature invalidated
    Type: Client (map_client.txt)
    Texture Pack: Default
    Profiler Position: N/A (disabled)
    Vec3 Pool Size: 240 (13440 bytes; 0 MB) allocated, 49 (2744 bytes; 0 MB) used

    java.lang.ClassCastException: net.minecraft.src.EntityShard cannot be cast to net.minecraft.src.EntityLiving
    at net.minecraft.src.RenderShard.doRender(RenderShard.java:23)
    at net.minecraft.src.RenderManager.renderEntityWithPosYaw(RenderManager.java:218)
    at net.minecraft.src.RenderManager.renderEntity(RenderManager.java:187)
    at net.minecraft.src.RenderGlobal.renderEntities(RenderGlobal.java:438)
    at net.minecraft.src.EntityRenderer.renderWorld(EntityRenderer.java:1097)
    at net.minecraft.src.EntityRenderer.updateCameraAndRender(EntityRenderer.java:936)
    at net.minecraft.src.EntityRendererProxy.updateCameraAndRender(EntityRendererProxy.java:20)
    at net.minecraft.client.Minecraft.runGameLoop(Minecraft.java:872)
    at net.minecraft.client.Minecraft.run(Minecraft.java:768)
    at java.lang.Thread.run(Unknown Source)
    --- END ERROR REPORT 8a27c77f ----------


    And obviously I included
    public void addRenderer(Map map)
        {
    		    map.put(EntityShard.class, new RenderShard( 0.5F));
        }
        public mod_***()
        {
            ModLoader.registerEntityID(EntityShard.class, "Shard", ModLoader.getUniqueEntityId());


    I really need to know how to fix this to advance with my mod. Thanks.
    Posted in: Mods Discussion
  • To post a comment, please or register a new account.