Jump to content

Sudden crash [1.7.10]


Lumberstock

Recommended Posts

I closed my eclipse project yesterday. When I opened it up today and testran it, it crashed.

I have changed nothing. Yesterday it worked fine.

 

This is the error, I get:

 

Main modding file:

 

package net.lumberstock.mod;

 

import net.lumberstock.mod.blocks.CasseriteOre;

import net.lumberstock.mod.blocks.Crate;

import net.lumberstock.mod.blocks.MagicBush;

import net.lumberstock.mod.blocks.Mud;

import net.lumberstock.mod.blocks.Piss;

import net.lumberstock.mod.blocks.TinBlock;

import net.lumberstock.mod.handlers.BucketHandler;

import net.lumberstock.mod.items.BucketMud;

import net.lumberstock.mod.items.BucketPiss;

import net.lumberstock.mod.items.NCItems;

import net.lumberstock.mod.worldgen.LumberstockWorldGen;

import net.minecraft.block.material.Material;

import net.minecraft.creativetab.CreativeTabs;

import net.minecraft.init.Blocks;

import net.minecraft.init.Items;

import net.minecraft.item.Item;

import net.minecraft.item.ItemFood;

import net.minecraft.item.ItemStack;

import net.minecraftforge.common.MinecraftForge;

import net.minecraftforge.fluids.Fluid;

import net.minecraftforge.fluids.FluidContainerRegistry;

import net.minecraftforge.fluids.FluidRegistry;

import cpw.mods.fml.common.Mod;

import cpw.mods.fml.common.Mod.EventHandler;

import cpw.mods.fml.common.event.FMLInitializationEvent;

import cpw.mods.fml.common.event.FMLPostInitializationEvent;

import cpw.mods.fml.common.event.FMLPreInitializationEvent;

import cpw.mods.fml.common.registry.GameRegistry;

import cpw.mods.fml.relauncher.Side;

import cpw.mods.fml.relauncher.SideOnly;

 

@Mod(modid = Lumberstock.modid, version = Lumberstock.version, name = Lumberstock.name)

public class Lumberstock {

 

 

//Modinformation

public static final String modid = "lumberstock";

public static final String version = "Alpha v0.3";

    public static final String name = "Lumberstock's Wonderful Book of Horrors";

 

    LumberstockWorldGen eventWorldGen = new LumberstockWorldGen();

   

    //Items

    public static Item itemMagicLeaf;

    public static Item itemBattery;

    public static Item itemBucketMud;

    public static Item itemBucketPiss;

    public static Item itemTinIngot;

    public static Item itemTinfoil;

   

    //Food

 

    public static Item foodDonut;

    public static Item foodNiceDonut;

    public static Item foodChocDonut; 

    public static Item foodLemon;

    public static Item foodLime;

    public static Item foodIceCubes;

   

    //Blocks

    public static net.minecraft.block.Block blockMagicBush;

    public static net.minecraft.block.Block blockCrate;

    public static net.minecraft.block.Block blockMud;

    public static net.minecraft.block.Block blockPiss;

    public static net.minecraft.block.Block oreCasseriteOre;

    public static net.minecraft.block.Block blockTinBlock;

 

    //Fluids

    public static Fluid fluidMud;

    public static Fluid fluidPiss;

 

   

    //Creative Tab

    public static CreativeTabs lumberstockTab; 

 

     

   

    @EventHandler

    public void PreInit(FMLPreInitializationEvent preEvent){

 

   

    //Creative tab

    lumberstockTab = new CreativeTabs("lumberstock"){

    @SideOnly(Side.CLIENT)

    public Item getTabIconItem() {

    return Item.getItemFromBlock(Lumberstock.blockCrate);

 

    }

    };

   

   

    //Items

    itemMagicLeaf = new NCItems().setUnlocalizedName("MagicLeaf");

        GameRegistry.registerItem(itemMagicLeaf, "MagicLeaf");

       

        itemBattery = new NCItems().setUnlocalizedName("Battery");

        GameRegistry.registerItem(itemBattery, "Battery");

       

        itemTinIngot = new NCItems().setUnlocalizedName("TinIngot");

        GameRegistry.registerItem(itemTinIngot, "TinIngot");

       

        itemTinfoil = new NCItems().setUnlocalizedName("Tinfoil");

        GameRegistry.registerItem(itemTinfoil, "Tinfoil");

       

        //Blocks

        blockMagicBush = new MagicBush(Material.grass).setBlockName("MagicBush");

        GameRegistry.registerBlock(blockMagicBush, "MagicBush");

       

        blockCrate = new Crate(Material.wood).setBlockName("Crate");

        GameRegistry.registerBlock(blockCrate, "Crate");

       

        oreCasseriteOre = new CasseriteOre(Material.rock).setBlockName("CasseriteOre");

        GameRegistry.registerBlock(oreCasseriteOre, "CasseriteOre");

     

        blockTinBlock = new TinBlock(Material.iron).setBlockName("TinBlock");

        GameRegistry.registerBlock(blockTinBlock, "TinBlock");

       

        //Foods

        foodDonut = new ItemFood(4, 0.6F, true).setUnlocalizedName("Donut").setCreativeTab(lumberstockTab).setTextureName(Lumberstock.modid + ":Donut");

        GameRegistry.registerItem(foodDonut, "Donut");

       

        foodNiceDonut = new ItemFood(8, 0.7F, false).setUnlocalizedName("NiceDonut").setCreativeTab(lumberstockTab).setTextureName(Lumberstock.modid + ":NiceDonut");

        GameRegistry.registerItem(foodNiceDonut, "NiceDonut"); 

   

        foodChocDonut = new ItemFood(6, 0.6F, false).setUnlocalizedName("ChocDonut").setCreativeTab(lumberstockTab).setTextureName(Lumberstock.modid + ":ChocDonut");

        GameRegistry.registerItem(foodChocDonut, "ChocDonut");

 

        foodLemon = new ItemFood(2, 0.1F, false).setUnlocalizedName("Lemon").setCreativeTab(lumberstockTab).setTextureName(Lumberstock.modid + ":Lemon");

        GameRegistry.registerItem(foodLemon, "Lemon");

       

        foodLime = new ItemFood(3, 0.3F, false).setUnlocalizedName("Lime").setCreativeTab(lumberstockTab).setTextureName(Lumberstock.modid + ":Lime");

        GameRegistry.registerItem(foodLime, "Lime");

       

        foodIceCubes = new ItemFood(1, 0.1F, false).setUnlocalizedName("IceCubes").setCreativeTab(lumberstockTab).setTextureName(Lumberstock.modid + ":IceCubes");

        GameRegistry.registerItem(foodIceCubes, "IceCubes");

       

      //Fluids

    Fluid fluidMud = new Fluid("Mud");

    FluidRegistry.registerFluid(fluidMud);

    blockMud = new Mud(fluidMud, Material.water).setBlockName("Mud");

    GameRegistry.registerBlock(blockMud, Lumberstock.modid + "_" + blockMud.getUnlocalizedName().substring(5));

    fluidMud.setUnlocalizedName(blockMud.getUnlocalizedName());

    fluidMud.setViscosity(3000).setDensity(1200).setTemperature(300);

 

    itemBucketMud = new BucketMud(blockMud);

    itemBucketMud.setUnlocalizedName("BucketOfMud").setTextureName(Lumberstock.modid + ":BucketOfMud");

    GameRegistry.registerItem(itemBucketMud, "BucketOfMud");

    FluidContainerRegistry.registerFluidContainer(fluidMud, new ItemStack(itemBucketMud), new ItemStack(Items.bucket));

    BucketHandler.INSTANCE.buckets.put(blockMud, itemBucketMud);

    MinecraftForge.EVENT_BUS.register(BucketHandler.INSTANCE);

   

    Fluid fluidPiss = new Fluid("Piss");

    FluidRegistry.registerFluid(fluidPiss);

    blockPiss = new Piss(fluidPiss, Material.water).setBlockName("Piss");

    GameRegistry.registerBlock(blockPiss, Lumberstock.modid + "_" + blockPiss.getUnlocalizedName().substring(5));

    fluidPiss.setUnlocalizedName(blockPiss.getUnlocalizedName());

    fluidPiss.setViscosity(200).setDensity(200).setTemperature(400);

 

    itemBucketPiss = new BucketPiss(blockPiss);

    itemBucketPiss.setUnlocalizedName("BucketOfPiss").setTextureName(Lumberstock.modid + ":BucketOfPiss");

    GameRegistry.registerItem(itemBucketPiss, "BucketOfPiss");

    FluidContainerRegistry.registerFluidContainer(fluidPiss, new ItemStack(itemBucketPiss), new ItemStack(Items.bucket));

    BucketHandler.INSTANCE.buckets.put(blockPiss, itemBucketPiss);

    MinecraftForge.EVENT_BUS.register(BucketHandler.INSTANCE);

    }

   

@EventHandler

    public void Init(FMLInitializationEvent event){

 

 

//Smelting

GameRegistry.addSmelting(oreCasseriteOre, new ItemStack(itemTinIngot), 5);

 

//Crafting

GameRegistry.addRecipe(new ItemStack(blockTinBlock), new Object[]{"CCC", "CCC", "CCC", 'C', itemTinIngot});

 

GameRegistry.addRecipe(new ItemStack(foodDonut), new Object[]{"AAA", "A A", "AAA ", 'A', Items.wheat});

 

GameRegistry.addRecipe(new ItemStack(itemTinfoil, 3), new Object[]{"AAA", "  ", "  ", 'A', itemTinIngot});

GameRegistry.addRecipe(new ItemStack(itemTinfoil, 3), new Object[]{"  ", "  ", "AAA", 'A', itemTinIngot});

GameRegistry.addRecipe(new ItemStack(itemTinfoil, 3), new Object[]{"  ", "AAA", "  ", 'A', itemTinIngot});

 

//Schapeless Crafting

    GameRegistry.addShapelessRecipe(new ItemStack(foodNiceDonut), new Object[]

    {

        new ItemStack(Items.dye, 1, 9), new ItemStack(Items.dye, 1, 12), new ItemStack(Items.dye, 1, 11), new ItemStack(Items.dye, 1, 1), new ItemStack(Items.dye, 1, 10), foodDonut, Items.sugar

    });

   

    GameRegistry.addShapelessRecipe(new ItemStack(foodIceCubes, 4), new Object[]

    {

        new ItemStack(Blocks.ice)

    });

   

    GameRegistry.addShapelessRecipe(new ItemStack(foodChocDonut), new Object[]

    {

        new ItemStack(Items.dye, 1, 3), foodDonut

    });

    }

 

    @EventHandler

    public void PostInit(FMLPostInitializationEvent postEvent){

   

    }

}

 

 

 

[11:45:42] [Client thread/ERROR] [FML]: Fatal errors were detected during the transition from INITIALIZATION to POSTINITIALIZATION. Loading cannot continue

[11:45:42] [Client thread/ERROR] [FML]:

mcp{9.05} [Minecraft Coder Pack] (minecraft.jar) Unloaded->Constructed->Pre-initialized->Initialized

FML{7.10.84.1220} [Forge Mod Loader] (forgeSrc-1.7.10-10.13.1.1220.jar) Unloaded->Constructed->Pre-initialized->Initialized

Forge{10.13.1.1220} [Minecraft Forge] (forgeSrc-1.7.10-10.13.1.1220.jar) Unloaded->Constructed->Pre-initialized->Initialized

lumberstock{Alpha v0.3} [Lumberstock's Wonderful Book of Horrors] (bin) Unloaded->Constructed->Pre-initialized->Errored

[11:45:42] [Client thread/ERROR] [FML]: The following problems were captured during this phase

[11:45:42] [Client thread/ERROR] [FML]: Caught exception from lumberstock

java.lang.StringIndexOutOfBoundsException: String index out of range: 10

at java.lang.String.charAt(String.java:646) ~[?:1.8.0_25]

at net.minecraft.item.crafting.CraftingManager.addRecipe(CraftingManager.java:232) ~[forgeSrc-1.7.10-10.13.1.1220.jar:?]

at cpw.mods.fml.common.registry.GameRegistry.addShapedRecipe(GameRegistry.java:244) ~[forgeSrc-1.7.10-10.13.1.1220.jar:?]

at cpw.mods.fml.common.registry.GameRegistry.addRecipe(GameRegistry.java:239) ~[forgeSrc-1.7.10-10.13.1.1220.jar:?]

at net.lumberstock.mod.Lumberstock.Init(Lumberstock.java:179) ~[bin/:?]

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_25]

at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:1.8.0_25]

at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_25]

at java.lang.reflect.Method.invoke(Method.java:483) ~[?:1.8.0_25]

at cpw.mods.fml.common.FMLModContainer.handleModStateEvent(FMLModContainer.java:513) ~[forgeSrc-1.7.10-10.13.1.1220.jar:?]

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_25]

at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:1.8.0_25]

at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_25]

at java.lang.reflect.Method.invoke(Method.java:483) ~[?:1.8.0_25]

at com.google.common.eventbus.EventSubscriber.handleEvent(EventSubscriber.java:74) ~[guava-17.0.jar:?]

at com.google.common.eventbus.SynchronizedEventSubscriber.handleEvent(SynchronizedEventSubscriber.java:47) ~[guava-17.0.jar:?]

at com.google.common.eventbus.EventBus.dispatch(EventBus.java:322) ~[guava-17.0.jar:?]

at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:304) ~[guava-17.0.jar:?]

at com.google.common.eventbus.EventBus.post(EventBus.java:275) ~[guava-17.0.jar:?]

at cpw.mods.fml.common.LoadController.sendEventToModContainer(LoadController.java:208) ~[forgeSrc-1.7.10-10.13.1.1220.jar:?]

at cpw.mods.fml.common.LoadController.propogateStateMessage(LoadController.java:187) ~[forgeSrc-1.7.10-10.13.1.1220.jar:?]

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_25]

at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:1.8.0_25]

at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_25]

at java.lang.reflect.Method.invoke(Method.java:483) ~[?:1.8.0_25]

at com.google.common.eventbus.EventSubscriber.handleEvent(EventSubscriber.java:74) ~[guava-17.0.jar:?]

at com.google.common.eventbus.SynchronizedEventSubscriber.handleEvent(SynchronizedEventSubscriber.java:47) ~[guava-17.0.jar:?]

at com.google.common.eventbus.EventBus.dispatch(EventBus.java:322) ~[guava-17.0.jar:?]

at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:304) ~[guava-17.0.jar:?]

at com.google.common.eventbus.EventBus.post(EventBus.java:275) ~[guava-17.0.jar:?]

at cpw.mods.fml.common.LoadController.distributeStateMessage(LoadController.java:118) [LoadController.class:?]

at cpw.mods.fml.common.Loader.initializeMods(Loader.java:691) [Loader.class:?]

at cpw.mods.fml.client.FMLClientHandler.finishMinecraftLoading(FMLClientHandler.java:288) [FMLClientHandler.class:?]

at net.minecraft.client.Minecraft.startGame(Minecraft.java:586) [Minecraft.class:?]

at net.minecraft.client.Minecraft.run(Minecraft.java:931) [Minecraft.class:?]

at net.minecraft.client.main.Main.main(Main.java:164) [Main.class:?]

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_25]

at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:1.8.0_25]

at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_25]

at java.lang.reflect.Method.invoke(Method.java:483) ~[?:1.8.0_25]

at net.minecraft.launchwrapper.Launch.launch(Launch.java:135) [launchwrapper-1.11.jar:?]

at net.minecraft.launchwrapper.Launch.main(Launch.java:28) [launchwrapper-1.11.jar:?]

at net.minecraftforge.gradle.GradleStartCommon.launch(GradleStartCommon.java:78) [start/:?]

at GradleStart.main(GradleStart.java:45) [start/:?]

[11:45:42] [Client thread/INFO] [sTDOUT]: [net.minecraft.client.Minecraft:displayCrashReport:388]: ---- Minecraft Crash Report ----

// I'm sorry, Dave.

 

Time: 23.11.14 11:45

Description: Initializing game

 

java.lang.StringIndexOutOfBoundsException: String index out of range: 10

at java.lang.String.charAt(String.java:646)

at net.minecraft.item.crafting.CraftingManager.addRecipe(CraftingManager.java:232)

at cpw.mods.fml.common.registry.GameRegistry.addShapedRecipe(GameRegistry.java:244)

at cpw.mods.fml.common.registry.GameRegistry.addRecipe(GameRegistry.java:239)

at net.lumberstock.mod.Lumberstock.Init(Lumberstock.java:179)

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)

at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

at java.lang.reflect.Method.invoke(Method.java:483)

at cpw.mods.fml.common.FMLModContainer.handleModStateEvent(FMLModContainer.java:513)

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)

at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

at java.lang.reflect.Method.invoke(Method.java:483)

at com.google.common.eventbus.EventSubscriber.handleEvent(EventSubscriber.java:74)

at com.google.common.eventbus.SynchronizedEventSubscriber.handleEvent(SynchronizedEventSubscriber.java:47)

at com.google.common.eventbus.EventBus.dispatch(EventBus.java:322)

at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:304)

at com.google.common.eventbus.EventBus.post(EventBus.java:275)

at cpw.mods.fml.common.LoadController.sendEventToModContainer(LoadController.java:208)

at cpw.mods.fml.common.LoadController.propogateStateMessage(LoadController.java:187)

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)

at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

at java.lang.reflect.Method.invoke(Method.java:483)

at com.google.common.eventbus.EventSubscriber.handleEvent(EventSubscriber.java:74)

at com.google.common.eventbus.SynchronizedEventSubscriber.handleEvent(SynchronizedEventSubscriber.java:47)

at com.google.common.eventbus.EventBus.dispatch(EventBus.java:322)

at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:304)

at com.google.common.eventbus.EventBus.post(EventBus.java:275)

at cpw.mods.fml.common.LoadController.distributeStateMessage(LoadController.java:118)

at cpw.mods.fml.common.Loader.initializeMods(Loader.java:691)

at cpw.mods.fml.client.FMLClientHandler.finishMinecraftLoading(FMLClientHandler.java:288)

at net.minecraft.client.Minecraft.startGame(Minecraft.java:586)

at net.minecraft.client.Minecraft.run(Minecraft.java:931)

at net.minecraft.client.main.Main.main(Main.java:164)

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)

at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

at java.lang.reflect.Method.invoke(Method.java:483)

at net.minecraft.launchwrapper.Launch.launch(Launch.java:135)

at net.minecraft.launchwrapper.Launch.main(Launch.java:28)

at net.minecraftforge.gradle.GradleStartCommon.launch(GradleStartCommon.java:78)

at GradleStart.main(GradleStart.java:45)

 

 

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

---------------------------------------------------------------------------------------

 

-- Head --

Stacktrace:

at java.lang.String.charAt(String.java:646)

at net.minecraft.item.crafting.CraftingManager.addRecipe(CraftingManager.java:232)

at cpw.mods.fml.common.registry.GameRegistry.addShapedRecipe(GameRegistry.java:244)

at cpw.mods.fml.common.registry.GameRegistry.addRecipe(GameRegistry.java:239)

at net.lumberstock.mod.Lumberstock.Init(Lumberstock.java:179)

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)

at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

at java.lang.reflect.Method.invoke(Method.java:483)

at cpw.mods.fml.common.FMLModContainer.handleModStateEvent(FMLModContainer.java:513)

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)

at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

at java.lang.reflect.Method.invoke(Method.java:483)

at com.google.common.eventbus.EventSubscriber.handleEvent(EventSubscriber.java:74)

at com.google.common.eventbus.SynchronizedEventSubscriber.handleEvent(SynchronizedEventSubscriber.java:47)

at com.google.common.eventbus.EventBus.dispatch(EventBus.java:322)

at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:304)

at com.google.common.eventbus.EventBus.post(EventBus.java:275)

at cpw.mods.fml.common.LoadController.sendEventToModContainer(LoadController.java:208)

at cpw.mods.fml.common.LoadController.propogateStateMessage(LoadController.java:187)

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)

at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

at java.lang.reflect.Method.invoke(Method.java:483)

at com.google.common.eventbus.EventSubscriber.handleEvent(EventSubscriber.java:74)

at com.google.common.eventbus.SynchronizedEventSubscriber.handleEvent(SynchronizedEventSubscriber.java:47)

at com.google.common.eventbus.EventBus.dispatch(EventBus.java:322)

at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:304)

at com.google.common.eventbus.EventBus.post(EventBus.java:275)

at cpw.mods.fml.common.LoadController.distributeStateMessage(LoadController.java:118)

at cpw.mods.fml.common.Loader.initializeMods(Loader.java:691)

at cpw.mods.fml.client.FMLClientHandler.finishMinecraftLoading(FMLClientHandler.java:288)

at net.minecraft.client.Minecraft.startGame(Minecraft.java:586)

 

-- Initialization --

Details:

Stacktrace:

at net.minecraft.client.Minecraft.run(Minecraft.java:931)

at net.minecraft.client.main.Main.main(Main.java:164)

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)

at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

at java.lang.reflect.Method.invoke(Method.java:483)

at net.minecraft.launchwrapper.Launch.launch(Launch.java:135)

at net.minecraft.launchwrapper.Launch.main(Launch.java:28)

at net.minecraftforge.gradle.GradleStartCommon.launch(GradleStartCommon.java:78)

at GradleStart.main(GradleStart.java:45)

 

 

This is this.

Link to comment
Share on other sites

Hi

 

Your foodDonut has an extra space in one of the parameters

 

"AAA "

 

There is a strong hint in your error file

  at net.lumberstock.mod.Lumberstock.Init(Lumberstock.java:179) ~[bin/:?]

This tells you that the problem was caused in your code probably at this line.  But if you don't notice the extra space, you could look at what is happening in the recipe

  at net.minecraft.item.crafting.CraftingManager.addRecipe(CraftingManager.java:232) ~[forgeSrc-1.7.10-10.13.1.1220.jar:?]

--> you see

        for (int i1 = 0; i1 < j * k; ++i1)
        {
            char c0 = s.charAt(i1);

The index i1 is 10, which is more than the number of slots, so j and/or k are too big

If you look further up to where j and k are calculated, you find

 

            while (p_92103_2_[i] instanceof String)              //  "AAA", "A A", "AAA "
            {
                String s2 = (String)p_92103_2_[i++];
                ++k;
                j = s2.length();
                s = s + s2;
            }

So this code is looping through the string array you provided; k is the number of rows of (eg) "AAA" and j is the length of the last one.  The only way this can be more than 9 is if you have got the number of rows wrong or the size of the last row wrong.

 

Even better - if you add a breakpoint to your code, then step in and watch what is happening to the variables directly.  That makes it very obvious what is going wrong.

http://www.vogella.com/tutorials/EclipseDebugging/article.html - for Eclipse.  IntelliJ is very similar.

 

-TGG

 

 

Link to comment
Share on other sites

Join the conversation

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

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

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

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

×   Your previous content has been restored.   Clear editor

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

Announcements



×
×
  • Create New...

Important Information

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