Posts by ZephaniahNoah

    Aha! I found something interesting...

    I tried,

    System.out.println("ITEMSTACK OUT >> "+ new ItemStack(GameRegistry.findBlock("soulforest", "Copperingot")).getUnlocalizedName());

    and also,

    System.out.println("ITEMSTACK OUT >> "+ new ItemStack(GameRegistry.findBlock("soulforest", "Copperingot")));

    And it crashed both times:

    Does that mean that the stack is empty?

    I also tried it at FMLPostInitializationEvent instead of FMLInitializationEvent and that didn't work.

    I'm registering them at the FMLInitializationEvent

    Like this:

    Java
    public void init(FMLInitializationEvent event)
        {
            initOreDict();
        }
    
    public static void initOreDict() {
        if(Loader.isModLoaded("gibby_dungeons")) {
                OreDictionary.registerOre("ingotCopper", new ItemStack(GameRegistry.findBlock("gibby_dungeons", "dungeons_copper")));
            }
    }

    I have four mods that add copper ingots:

    Arcana RPG,

    Soul Forest,

    End Ores,

    and IC2 itself...


    The new copper ingot from the End Ores mod can be smashed. But the other two, from Arcana RPG & Soul Forest, can't.


    I tried registering them as ingotCopper but that didn't work.

    Java: Class.java
    if(Loader.isModLoaded("gibby_dungeons")) { //Arcana RPG
        OreDictionary.registerOre("ingotCopper", new ItemStack(GameRegistry.findBlock("gibby_dungeons", "dungeons_copper")));
    }
    
    if(Loader.isModLoaded("soulforest")) { //Soul Forest
        OreDictionary.registerOre("ingotCopper", new ItemStack(GameRegistry.findBlock("soulforest", "Copperingot")));
    }

    How can I get ingots from other mods to be smashed with a hammer? How does End Ores do it?


    MC-1.7.10

    I'm creating an addon for IC2, similar to the old 1.6.4 JAMI addon but for 1.7.10. I'm starting on adding interaction with DivineRPG and I was able to successfully add macerator recipes thanks to Speiger's example. But I'm having trouble adding recipes for the Ore Washing Plant. I added the code as you can see from in the code block. I get no errors in eclipse and the game doesn't crash but nothing happens when I put the crushed ores in the Ore Washing Plant. Other Crushed Ores will get washed but the ones from the recipe I tried to add don't.

    Java: IC2RPGAddon.java
                    ItemStack oreWashing_input   = new ItemStack(crushedRupeeOre, 1);
                    ItemStack oreWashing_output  = new ItemStack(purifiedRupeeOre, 1);
                    ItemStack oreWashing_output2 = new ItemStack(Items.string, 2);//String for testing. Change to respective tiny dust.
                    ItemStack oreWashing_output3 = new ItemStack(Items.wheat_seeds, 1);//Seeds for testing. Change to IC2 stone dust.
                    Recipes.oreWashing.addRecipe(new RecipeInputItemStack(oreWashing_input), null, oreWashing_output, oreWashing_output2, oreWashing_output3);

    MC: 1.7.10

    IC2: 2.2.828

    Forge: 10.13.4.1614

    Mods folder: IC2-dev, DivineRPG, CodeChickenCore-dev

    That's the first time someone reported this, I need more information than that. Corruption usually involves a crash or at least log entries.

    There was no crash. Just quite a large framerate drop and a bunch of lag spikes which slowly ceased. And a bunch of missing chunks. I checked In mcedit and a quarter of the map was missing. It was replaced with the flatworld it originally was, and all structures and terraformings were missing. It may have been due to incompatible mods that were installed alongside it. Here's the log...