Jump to content

Recommended Posts

Posted

Hello eveybody,

 

I have a problem with my creative tab. I try to open it and than minecraft crashes.

I think it might be the MapleLeaf texture or the getIcon() Method but I have no idea whats wrong.

 

If there is more information you need, please contact me.

 

I'm searching for the error two days now an I hope somebody here has a idea...

Thanks!

 

BlockMapleLeaf.class

 

package breezertwo.morerecipes.src;

import java.util.ArrayList;
import java.util.List;
import java.util.Random;

import net.minecraft.block.Block;
import net.minecraft.block.BlockLeavesBase;
import net.minecraft.block.BlockOldLeaf;
import net.minecraft.block.material.Material;
import net.minecraft.client.renderer.texture.IIconRegister;
import net.minecraft.creativetab.CreativeTabs;
import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.init.Items;
import net.minecraft.item.Item;
import net.minecraft.item.ItemStack;
import net.minecraft.util.IIcon;
import net.minecraft.world.ColorizerFoliage;
import net.minecraft.world.IBlockAccess;
import net.minecraft.world.World;
import net.minecraftforge.common.IShearable;
import cpw.mods.fml.relauncher.Side;
import cpw.mods.fml.relauncher.SideOnly;

public class BlockMapleLeaf extends BlockOldLeaf
{
public static final String[][] field_150130_N = new String[][] {{"leaves_oak_opaque"}, {"leaves_oak_opaque"}};
public static final String[] field_150131_O = new String[] {"oak"};

@SideOnly(Side.CLIENT)
    public int getRenderColor(int p_149741_1_)
{
    	if ((p_149741_1_ & 3) == 0){
    		return ColorizeLeaves.getFoliageColorMaple(); 
    	}
    	else
    	{
    		return ColorizeLeaves.getFoliageColorMaple(); 
    	}
    }

@SideOnly(Side.CLIENT)
    public IIcon getIcon(int p_149691_1_, int p_149691_2_)
    {
        return (p_149691_2_ & 3) == 1 ? this.field_150129_M[this.field_150127_b][1] : ((p_149691_2_ & 3) == 3 ? this.field_150129_M[this.field_150127_b][3] : ((p_149691_2_ & 3) == 2 ? this.field_150129_M[this.field_150127_b][2] : this.field_150129_M[this.field_150127_b][0]));
    }


    /**
     * Returns a integer with hex for 0xrrggbb with this color multiplied against the blocks color. Note only called
     * when first determining what to render.
     */
    @SideOnly(Side.CLIENT)
    public int colorMultiplier(IBlockAccess p_149720_1_, int p_149720_2_, int p_149720_3_, int p_149720_4_)
    {
        int l = p_149720_1_.getBlockMetadata(p_149720_2_, p_149720_3_, p_149720_4_);
        return (l & 3) == 0 ? ColorizeLeaves.getFoliageColorMaple() : (l & 3) == 1 ? ColorizerFoliage.getFoliageColorPine() : ((l & 3) == 2 ? ColorizerFoliage.getFoliageColorBirch() : super.colorMultiplier(p_149720_1_, p_149720_2_, p_149720_3_, p_149720_4_));
    }

    protected void func_150124_c(World p_150124_1_, int p_150124_2_, int p_150124_3_, int p_150124_4_, int p_150124_5_, int p_150124_6_)
    {
        if ((p_150124_5_ & 3) == 0 && p_150124_1_.rand.nextInt(p_150124_6_) == 0)
        {
            this.dropBlockAsItem(p_150124_1_, p_150124_2_, p_150124_3_, p_150124_4_, new ItemStack(Items.apple, 1, 0));
        }
    }

    protected int func_150123_b(int p_150123_1_)
    {
        int j = super.func_150123_b(p_150123_1_);

        if ((p_150123_1_ & 3) == 3)
        {
            j = 40;
        }

        return j;
    }
   
    @SideOnly(Side.CLIENT)
    public void registerBlockIcons(IIconRegister p_149651_1_)
    {
        for (int i = 0; i < field_150130_N.length; ++i)
        {
            this.field_150129_M[i] = new IIcon[field_150130_N[i].length];

            for (int j = 0; j < field_150130_N[i].length; ++j)
            {
                this.field_150129_M[i][j] = p_149651_1_.registerIcon(field_150130_N[i][j]);
            }
        }
    }

    public String[] func_150125_e()
    {
        return field_150131_O;
    }

    
    @Override
    public Item getItemDropped(int par1, Random par2Random, int par3)
    {
    	int zahl = (int)(Math.random() * 6 + 1);
    	if (zahl <= 4)
    	{
        	return Item.getItemFromBlock(recipesmod.mapleSapling);
    	}	
    	else
    	{
    		return recipesmod.maplejuice;	
    	}
    	
    }
}

 

 

ErrorReport:

 

---- Minecraft Crash Report ----
// Don't do that.

Time: 13.03.14 21:05
Description: Rendering item

java.lang.ArrayIndexOutOfBoundsException: 1
at breezertwo.morerecipes.src.BlockMapleLeaf.getIcon(BlockMapleLeaf.java:45)
at net.minecraft.client.renderer.RenderBlocks.getBlockIconFromSideAndMetadata(RenderBlocks.java:8558)
at net.minecraft.client.renderer.RenderBlocks.renderBlockAsItem(RenderBlocks.java:8484)
at net.minecraft.client.renderer.entity.RenderItem.renderItemIntoGUI(RenderItem.java:453)
at net.minecraft.client.renderer.entity.RenderItem.renderItemAndEffectIntoGUI(RenderItem.java:565)
at net.minecraft.client.gui.inventory.GuiContainer.func_146977_a(GuiContainer.java:305)
at net.minecraft.client.gui.inventory.GuiContainer.drawScreen(GuiContainer.java:132)
at net.minecraft.client.renderer.InventoryEffectRenderer.drawScreen(InventoryEffectRenderer.java:44)
at net.minecraft.client.gui.inventory.GuiContainerCreative.drawScreen(GuiContainerCreative.java:678)
at net.minecraft.client.renderer.EntityRenderer.updateCameraAndRender(EntityRenderer.java:1209)
at net.minecraft.client.Minecraft.runGameLoop(Minecraft.java:1063)
at net.minecraft.client.Minecraft.run(Minecraft.java:951)
at net.minecraft.client.main.Main.main(Main.java:112)
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 net.minecraft.launchwrapper.Launch.launch(Launch.java:134)
at net.minecraft.launchwrapper.Launch.main(Launch.java:28)


A detailed walkthrough of the error, its code path and all known details is as follows:
---------------------------------------------------------------------------------------

-- Head --
Stacktrace:
at breezertwo.morerecipes.src.BlockMapleLeaf.getIcon(BlockMapleLeaf.java:45)
at net.minecraft.client.renderer.RenderBlocks.getBlockIconFromSideAndMetadata(RenderBlocks.java:8558)
at net.minecraft.client.renderer.RenderBlocks.renderBlockAsItem(RenderBlocks.java:8484)
at net.minecraft.client.renderer.entity.RenderItem.renderItemIntoGUI(RenderItem.java:453)

-- Item being rendered --
Details:
Item Type: net.minecraft.item.ItemBlock@11667308
Item Aux: 1
Item NBT: null
Item Foil: false
Stacktrace:
at net.minecraft.client.renderer.entity.RenderItem.renderItemAndEffectIntoGUI(RenderItem.java:565)
at net.minecraft.client.gui.inventory.GuiContainer.func_146977_a(GuiContainer.java:305)
at net.minecraft.client.gui.inventory.GuiContainer.drawScreen(GuiContainer.java:132)
at net.minecraft.client.renderer.InventoryEffectRenderer.drawScreen(InventoryEffectRenderer.java:44)
at net.minecraft.client.gui.inventory.GuiContainerCreative.drawScreen(GuiContainerCreative.java:678)

-- Screen render details --
Details:
Screen name: net.minecraft.client.gui.inventory.GuiContainerCreative
Mouse location: Scaled: (116, 40). Absolute: (233, 398)
Screen size: Scaled: (427, 240). Absolute: (854, 480). Scale factor of 2

-- Affected level --
Details:
Level name: MpServer
All players: 1 total; [EntityClientPlayerMP['Player421'/327, l='MpServer', x=-113,18, y=89,62, z=355,71]]
Chunk stats: MultiplayerChunkCache: 225, 225
Level seed: 0
Level generator: ID 00 - default, ver 1. Features enabled: false
Level generator options: 
Level spawn location: World: (-148,64,252), Chunk: (at 12,4,12 in -10,15; contains blocks -160,0,240 to -145,255,255), Region: (-1,0; contains chunks -32,0 to -1,31, blocks -512,0,0 to -1,255,511)
Level time: 8606 game time, 8606 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: 140 total; [EntityCreeper['Creeper'/275, l='MpServer', x=-47,97, y=40,00, z=412,47], EntityZombie['Zombie'/274, l='MpServer', x=-44,31, y=28,00, z=400,50], EntityZombie['Zombie'/273, l='MpServer', x=-42,69, y=23,00, z=410,56], EntityCreeper['Creeper'/272, l='MpServer', x=-46,41, y=14,00, z=415,00], EntityBat['Bat'/279, l='MpServer', x=-36,75, y=26,11, z=421,62], EntityBat['Bat'/278, l='MpServer', x=-46,66, y=12,10, z=418,25], EntityBat['Bat'/277, l='MpServer', x=-46,75, y=12,10, z=418,25], EntityChicken['Chicken'/276, l='MpServer', x=-43,47, y=70,00, z=406,53], EntitySkeleton['Skeleton'/283, l='MpServer', x=-43,56, y=36,00, z=425,16], EntityCreeper['Creeper'/282, l='MpServer', x=-38,72, y=37,00, z=424,88], EntityBat['Bat'/281, l='MpServer', x=-56,75, y=11,10, z=410,32], EntityBat['Bat'/280, l='MpServer', x=-44,50, y=16,47, z=419,50], EntityCreeper['Creeper'/286, l='MpServer', x=-36,00, y=28,00, z=435,63], EntityChicken['Chicken'/285, l='MpServer', x=-41,47, y=71,00, z=430,72], EntityChicken['Chicken'/284, l='MpServer', x=-35,44, y=72,00, z=421,56], EntitySheep['Sheep'/262, l='MpServer', x=-43,45, y=64,00, z=301,53], EntityBat['Bat'/263, l='MpServer', x=-41,63, y=37,10, z=381,75], EntitySheep['Sheep'/261, l='MpServer', x=-41,16, y=66,00, z=299,53], EntityHorse['Horse'/266, l='MpServer', x=-44,00, y=68,00, z=371,63], EntitySheep['Sheep'/267, l='MpServer', x=-45,66, y=69,00, z=369,44], EntityCreeper['Creeper'/264, l='MpServer', x=-47,75, y=61,08, z=370,31], EntityHorse['Horse'/265, l='MpServer', x=-35,38, y=68,00, z=373,94], EntityZombie['Zombie'/270, l='MpServer', x=-43,53, y=35,00, z=386,53], EntityZombie['Zombie'/271, l='MpServer', x=-41,47, y=66,00, z=392,13], EntityCreeper['Creeper'/268, l='MpServer', x=-35,34, y=30,00, z=392,63], EntitySheep['Sheep'/79, l='MpServer', x=-192,50, y=85,00, z=339,16], EntityChicken['Chicken'/83, l='MpServer', x=-192,88, y=76,00, z=379,84], EntitySheep['Sheep'/93, l='MpServer', x=-187,37, y=78,00, z=367,60], EntitySheep['Sheep'/102, l='MpServer', x=-166,13, y=74,00, z=347,47], EntitySheep['Sheep'/103, l='MpServer', x=-162,75, y=77,00, z=365,59], EntitySheep['Sheep'/101, l='MpServer', x=-166,53, y=81,00, z=329,53], EntitySheep['Sheep'/110, l='MpServer', x=-148,03, y=74,00, z=357,91], EntitySheep['Sheep'/111, l='MpServer', x=-150,69, y=75,00, z=363,41], EntitySheep['Sheep'/108, l='MpServer', x=-156,66, y=81,00, z=329,50], EntitySheep['Sheep'/109, l='MpServer', x=-159,13, y=77,00, z=336,81], EntitySheep['Sheep'/104, l='MpServer', x=-165,69, y=77,00, z=388,31], EntitySheep['Sheep'/114, l='MpServer', x=-151,88, y=74,00, z=371,48], EntitySheep['Sheep'/113, l='MpServer', x=-154,47, y=76,00, z=381,06], EntitySheep['Sheep'/112, l='MpServer', x=-156,47, y=74,00, z=361,53], EntitySheep['Sheep'/127, l='MpServer', x=-141,91, y=87,00, z=312,16], EntitySkeleton['Skeleton'/126, l='MpServer', x=-137,78, y=26,00, z=283,69], EntityCreeper['Creeper'/125, l='MpServer', x=-143,38, y=29,00, z=302,50], EntitySheep['Sheep'/123, l='MpServer', x=-135,72, y=65,00, z=279,53], EntitySkeleton['Skeleton'/122, l='MpServer', x=-130,28, y=31,00, z=278,50], EntitySheep['Sheep'/137, l='MpServer', x=-126,56, y=84,00, z=295,44], EntityCreeper['Creeper'/136, l='MpServer', x=-121,50, y=54,00, z=299,28], EntitySkeleton['Skeleton'/139, l='MpServer', x=-116,34, y=13,00, z=332,84], EntityCreeper['Creeper'/138, l='MpServer', x=-121,31, y=55,96, z=307,09], EntitySheep['Sheep'/141, l='MpServer', x=-109,03, y=77,00, z=319,09], EntitySheep['Sheep'/140, l='MpServer', x=-114,53, y=75,00, z=331,59], EntityChicken['Chicken'/142, l='MpServer', x=-130,41, y=87,00, z=408,59], EntitySheep['Sheep'/128, l='MpServer', x=-136,84, y=80,00, z=327,94], EntityEnderman['Enderman'/133, l='MpServer', x=-115,66, y=32,00, z=278,84], EntityEnderman['Enderman'/132, l='MpServer', x=-126,54, y=31,00, z=278,50], EntityCow['Cow'/135, l='MpServer', x=-124,94, y=64,00, z=277,09], EntityEnderman['Enderman'/134, l='MpServer', x=-117,50, y=32,00, z=277,38], EntityCow['Cow'/152, l='MpServer', x=-95,77, y=72,00, z=278,50], EntitySkeleton['Skeleton'/153, l='MpServer', x=-102,84, y=27,00, z=293,38], EntityBat['Bat'/154, l='MpServer', x=-106,56, y=56,10, z=318,50], EntityZombie['Zombie'/155, l='MpServer', x=-108,00, y=56,00, z=317,31], EntitySheep['Sheep'/156, l='MpServer', x=-116,75, y=77,00, z=320,97], EntitySheep['Sheep'/157, l='MpServer', x=-101,19, y=72,00, z=306,09], EntitySkeleton['Skeleton'/158, l='MpServer', x=-105,72, y=13,00, z=335,56], EntitySkeleton['Skeleton'/159, l='MpServer', x=-103,53, y=14,00, z=337,22], EntityBat['Bat'/150, l='MpServer', x=-106,75, y=21,00, z=291,75], EntityCow['Cow'/151, l='MpServer', x=-109,53, y=63,00, z=286,53], EntityItem['item.tile.maplesapling'/171, l='MpServer', x=-108,13, y=82,13, z=418,84], EntityItem['item.tile.maplesapling'/170, l='MpServer', x=-109,06, y=82,13, z=419,34], EntityItem['item.tile.maplesapling'/169, l='MpServer', x=-107,22, y=81,13, z=417,81], EntityItem['item.item.maplejuice'/168, l='MpServer', x=-108,94, y=83,13, z=415,25], EntityCreeper['Creeper'/163, l='MpServer', x=-100,56, y=40,00, z=344,00], EntityCreeper['Creeper'/162, l='MpServer', x=-99,03, y=40,00, z=344,50], EntityCreeper['Creeper'/161, l='MpServer', x=-93,01, y=38,00, z=343,31], EntityCreeper['Creeper'/160, l='MpServer', x=-92,75, y=38,00, z=346,03], EntityChicken['Chicken'/167, l='MpServer', x=-108,81, y=81,00, z=396,88], EntityChicken['Chicken'/166, l='MpServer', x=-110,75, y=77,00, z=366,19], EntitySkeleton['Skeleton'/165, l='MpServer', x=-96,59, y=68,00, z=356,13], EntityZombie['Zombie'/164, l='MpServer', x=-102,84, y=21,00, z=364,38], EntitySkeleton['Skeleton'/186, l='MpServer', x=-91,31, y=15,00, z=345,69], EntitySkeleton['Skeleton'/187, l='MpServer', x=-87,84, y=18,00, z=342,25], EntityCreeper['Creeper'/184, l='MpServer', x=-83,99, y=46,00, z=326,45], EntityCreeper['Creeper'/185, l='MpServer', x=-80,56, y=48,00, z=322,97], EntityZombie['Zombie'/190, l='MpServer', x=-83,94, y=51,00, z=361,50], EntityCreeper['Creeper'/191, l='MpServer', x=-95,59, y=49,00, z=360,84], EntitySkeleton['Skeleton'/188, l='MpServer', x=-85,79, y=18,00, z=341,56], EntitySpider['Spider'/189, l='MpServer', x=-90,66, y=43,00, z=339,72], EntityClientPlayerMP['Player421'/327, l='MpServer', x=-113,18, y=89,62, z=355,71], EntityCreeper['Creeper'/182, l='MpServer', x=-83,35, y=49,00, z=323,21], EntitySkeleton['Skeleton'/183, l='MpServer', x=-83,47, y=47,00, z=332,31], EntityCreeper['Creeper'/180, l='MpServer', x=-95,50, y=47,00, z=312,97], EntityZombie['Zombie'/181, l='MpServer', x=-98,03, y=43,00, z=306,53], EntityCreeper['Creeper'/207, l='MpServer', x=-78,44, y=46,00, z=300,44], EntityChicken['Chicken'/200, l='MpServer', x=-82,44, y=70,00, z=400,44], EntityCreeper['Creeper'/197, l='MpServer', x=-91,28, y=49,76, z=402,94], EntityZombie['Zombie'/196, l='MpServer', x=-80,50, y=48,00, z=365,99], EntitySkeleton['Skeleton'/199, l='MpServer', x=-89,13, y=50,19, z=406,40], EntitySkeleton['Skeleton'/198, l='MpServer', x=-91,72, y=49,60, z=407,00], EntitySquid['Squid'/193, l='MpServer', x=-86,50, y=56,00, z=353,38], EntityBat['Bat'/192, l='MpServer', x=-80,12, y=52,73, z=361,39], EntityCreeper['Creeper'/195, l='MpServer', x=-84,66, y=46,00, z=368,59], EntitySquid['Squid'/194, l='MpServer', x=-81,69, y=57,00, z=355,97], EntityZombie['Zombie'/220, l='MpServer', x=-67,50, y=42,00, z=374,50], EntitySpider['Spider'/221, l='MpServer', x=-73,50, y=60,00, z=379,09], EntityCreeper['Creeper'/222, l='MpServer', x=-72,56, y=54,00, z=392,97], EntitySheep['Sheep'/216, l='MpServer', x=-75,53, y=63,00, z=366,53], EntitySquid['Squid'/217, l='MpServer', x=-79,50, y=56,31, z=352,50], EntityCreeper['Creeper'/218, l='MpServer', x=-63,97, y=41,47, z=377,94], EntityCreeper['Creeper'/219, l='MpServer', x=-71,44, y=44,00, z=380,06], EntityBat['Bat'/212, l='MpServer', x=-78,38, y=46,10, z=338,75], EntitySquid['Squid'/213, l='MpServer', x=-80,59, y=57,28, z=349,50], EntityZombie['Zombie'/214, l='MpServer', x=-79,53, y=47,00, z=363,94], EntitySheep['Sheep'/215, l='MpServer', x=-74,34, y=63,00, z=366,41], EntityBat['Bat'/208, l='MpServer', x=-75,75, y=40,10, z=307,75], EntityZombie['Zombie'/209, l='MpServer', x=-79,50, y=45,00, z=308,97], EntitySheep['Sheep'/210, l='MpServer', x=-72,35, y=63,00, z=319,47], EntityEnderman['Enderman'/211, l='MpServer', x=-69,59, y=44,00, z=327,72], EntityCreeper['Creeper'/239, l='MpServer', x=-62,69, y=56,00, z=398,47], EntityZombie['Zombie'/238, l='MpServer', x=-50,32, y=36,00, z=380,47], EntityCreeper['Creeper'/237, l='MpServer', x=-51,63, y=40,00, z=394,59], EntitySheep['Sheep'/236, l='MpServer', x=-51,03, y=67,00, z=381,06], EntityWitch['Witch'/235, l='MpServer', x=-63,16, y=45,00, z=371,56], EntitySkeleton['Skeleton'/234, l='MpServer', x=-52,16, y=55,00, z=356,50], EntitySheep['Sheep'/233, l='MpServer', x=-61,75, y=63,00, z=332,13], EntitySheep['Sheep'/232, l='MpServer', x=-53,14, y=64,00, z=304,85], EntitySquid['Squid'/231, l='MpServer', x=-51,50, y=60,00, z=313,72], EntitySheep['Sheep'/230, l='MpServer', x=-51,34, y=64,00, z=302,22], EntitySheep['Sheep'/229, l='MpServer', x=-45,03, y=64,00, z=301,50], EntityChicken['Chicken'/252, l='MpServer', x=-48,53, y=72,00, z=430,47], EntityCreeper['Creeper'/250, l='MpServer', x=-50,31, y=11,00, z=422,13], EntityBat['Bat'/251, l='MpServer', x=-51,75, y=41,10, z=426,75], EntityZombie['Zombie'/248, l='MpServer', x=-49,06, y=35,00, z=403,53], EntityCreeper['Creeper'/249, l='MpServer', x=-48,33, y=41,75, z=416,91], EntityZombie['Zombie'/246, l='MpServer', x=-57,09, y=36,00, z=411,38], EntitySpider['Spider'/247, l='MpServer', x=-48,59, y=41,00, z=410,91], EntitySkeleton['Skeleton'/244, l='MpServer', x=-51,88, y=38,00, z=409,47], EntityZombie['Zombie'/245, l='MpServer', x=-50,91, y=39,00, z=413,44], EntityZombie['Zombie'/242, l='MpServer', x=-57,84, y=26,00, z=413,72], EntityBat['Bat'/243, l='MpServer', x=-44,40, y=16,04, z=418,29], EntityCreeper['Creeper'/240, l='MpServer', x=-55,53, y=11,00, z=410,34], EntityBat['Bat'/241, l='MpServer', x=-63,26, y=11,09, z=399,44]]
Retry entities: 0 total; []
Server brand: fml,forge
Server type: Integrated singleplayer server
Stacktrace:
at net.minecraft.client.multiplayer.WorldClient.addWorldInfoToCrashReport(WorldClient.java:418)
at net.minecraft.client.Minecraft.addGraphicsAndWorldToCrashReport(Minecraft.java:2556)
at net.minecraft.client.Minecraft.run(Minecraft.java:973)
at net.minecraft.client.main.Main.main(Main.java:112)
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 net.minecraft.launchwrapper.Launch.launch(Launch.java:134)
at net.minecraft.launchwrapper.Launch.main(Launch.java:28)

-- System Details --
Details:
Minecraft Version: 1.7.2
Operating System: Windows 8 (amd64) version 6.2
Java Version: 1.7.0_21, Oracle Corporation
Java VM Version: Java HotSpot(TM) 64-Bit Server VM (mixed mode), Oracle Corporation
Memory: 420592544 bytes (401 MB) / 603848704 bytes (575 MB) up to 1884684288 bytes (1797 MB)
JVM Flags: 0 total; 
AABB Pool Size: 18803 (1052968 bytes; 1 MB) allocated, 1881 (105336 bytes; 0 MB) used
IntCache: cache: 0, tcache: 0, allocated: 13, tallocated: 95
FML: MCP v9.01-pre FML v7.2.116.1025 Minecraft Forge 10.12.0.1025 4 mods loaded, 4 mods active
mcp{8.09} [Minecraft Coder Pack] (minecraft.jar) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available->Available->Available->Available
FML{7.2.116.1025} [Forge Mod Loader] (forgeSrc-1.7.2-10.12.0.1025.jar) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available->Available->Available->Available
Forge{10.12.0.1025} [Minecraft Forge] (forgeSrc-1.7.2-10.12.0.1025.jar) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available->Available->Available->Available
recipesmod{2.0} [MoreRecipesMod] (bin) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available->Available->Available->Available
Launched Version: 1.7.2
LWJGL: 2.9.0
OpenGL: GeForce GTX 660M/PCIe/SSE2 GL version 4.3.0, NVIDIA Corporation
Is Modded: Definitely; Client brand changed to 'fml,forge'
Type: Client (map_client.txt)
Resource Packs: []
Current Language: ~~ERROR~~ NullPointerException: null
Profiler Position: N/A (disabled)
Vec3 Pool Size: 2958 (165648 bytes; 0 MB) allocated, 910 (50960 bytes; 0 MB) used
Anisotropic Filtering: Off (1)
#@!@# Game crashed! Crash report saved to: #@!@# D:\Desktop\Usage\Minecraft\Moding\RecipesMod\Update1.7.2\RecipesMod2\.\crash-reports\crash-2014-03-13_21.05.52-client.txt
[21:05:52] [Client Shutdown Thread/INFO]: Stopping server
2014-03-13 21:05:52,476 WARN Unable to register shutdown hook due to JVM state
AL lib: (EE) alc_cleanup: 1 device not closed

 

Posted

IT doesn't like this

[code @SideOnly(Side.CLIENT)
    public IIcon getIcon(int p_149691_1_, int p_149691_2_)
    {
        return (p_149691_2_ & 3) == 1 ? this.field_150129_M[this.field_150127_b][1] : ((p_149691_2_ & 3) == 3 ? this.field_150129_M[this.field_150127_b][3] : ((p_149691_2_ & 3) == 2 ? this.field_150129_M[this.field_150127_b][2] : this.field_150129_M[this.field_150127_b][0]));
    }

 

Specifically the first part, where you check to see if it is == 1. It says 1 is too high, try 0.

Join the conversation

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

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

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

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

×   Your previous content has been restored.   Clear editor

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

Announcements



  • Recently Browsing

    • No registered users viewing this page.
  • Posts

    • Hi, i'm really having problems trying to set the texture to my custom item. I thought i'm doing everything correctly, but all i see is the missing texture block for my item. I am trying this for over a week now and getting really frustrated. The only time i could make the texture work, was when i used an older Forge version (52.0.1) for Minecraft (1.21.4). Was there a fundamental change for textures and models somewhere between versions that i'm missing? I started with Forge 54.1.0 and had this problem, so in my frustration i tried many things: Upgrading to Forge 54.1.1, created multiple new projects, workspaces, redownloaded everything and setting things up multiple times, as it was suggested in an older thread. Therea are no errors in the console logs, but maybe i'm blind, so i pasted the console logs to pastebin anyway: https://pastebin.com/zAM8RiUN The only time i see an error is when i change the models JSON file to an incorrect JSON which makes sense and that suggests to me it is actually reading the JSON file.   I set the github repository to public, i would be so thankful if anyone could take a look and tell me what i did wrong: https://github.com/xLorkin/teleport_pug_forge   As a note: i'm pretty new to modding, this is my first mod ever. But i'm used to programming. I had some up and downs, but through reading the documentation, using google and experimenting, i could solve all other problems. I only started modding for Minecraft because my son is such a big fan and wanted this mod.
    • Please read the FAQ (link in orange bar at top of page), and post logs as described there.
    • Hello fellow Minecrafters! I recently returned to Minecraft and realized I needed a wiki that displays basic information easily and had great user navigation. That’s why I decided to build: MinecraftSearch — a site by a Minecraft fan, for Minecraft fans. Key Features So Far Straight-to-the-Point Info: No extra fluff; just the essentials on items, mobs, recipes, loot and more. Clean & Intuitive Layout: Easy navigation so you spend less time scrolling and more time playing. Optimized Search: Search for anything—items, mobs, blocks—and get results instantly. What I’m Thinking of Adding More data/information: Catch chances for fishing rod, traveling villager trades, biomes info and a lot more. The website is still under development and need a lot more data added. Community Contributions: Potential for user-uploaded tips for items/mobs/blocks in the future. Feature Requests Welcome: Your ideas could shape how the wiki evolves! You can see my roadmap at the About page https://minecraftsearch.com/about I’d love for you to check out MinecraftSearch and see if it helps you find the info you need faster. Feedback is crucial—I want to develop this further based on what the community needs most, so please let me know what you think. Thanks, and happy crafting!
    • Instructions on how to install newer Java can be found in the FAQ
    • That's just plain wrong... newer versions are much better optimised and start a lot faster than 1.8.9, both Forge and Minecraft itself. Comparing Fabric 1.21 with Forge 1.8 is like comparing apples and oranges... one's brand new and the other's over a decade old.
  • Topics

×
×
  • Create New...

Important Information

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