Jump to content

sealab865

Forge Modder
  • Posts

    7
  • Joined

  • Last visited

Posts posted by sealab865

  1. Just copy the IRecipe into a new class file, make a new addRecipe, and add a small if statement into your IRecipe to check if the slot stacksize and item stacksize are the same...

     

    It will force having the correct stackSizes but oncrafted it only removed 1 :\

    I do not know how to fix this, just mess with it. Maybe make a craftingHandler, and set the oncrafted to check if it was your recipe? i dont know...

     

    I'm one of those people who learn better from actually looking at code, I tried to do what you said but when it came to adding a new addRecipe eclipse was giving me errors saying 'Syntax Error at Token . / )'

     

    package sealab.stackpack;

     

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

    import net.minecraft.inventory.InventoryCrafting;

    import net.minecraft.item.ItemStack;

    import net.minecraft.world.World;

     

    public interface StackRecipe

    {

        /**

        * Used to check if a recipe matches current crafting inventory

        */

        boolean matches(InventoryCrafting var1, World var2);

     

        /**

        * Returns an Item that is the result of this recipe

        */

        ItemStack getCraftingResult(InventoryCrafting var1);

     

        /**

        * Returns the size of the recipe area

        */

        int getRecipeSize();

     

        ItemStack getRecipeOutput();

       

    GameRegistry.addShapelessRecipe(new ItemStack(Base.stoneStack), new Object[]

    new ItemStack(Base.Stack),

    new ItemStack(Block.stone)

    });

    }

     

     

    It's probably something obvious that I just looked past.

  2. You will need a custom crafting handler like in redpower its alloy furnace

    That is not right at all.

    You need to make a custom recipe (instance of IRecipe) and use that.

     

    Thank you for replying, also I am clueless as to how I can do that, do you mind helping a little?

  3. I was wondering how I could get a block I create in blender and render it into minecraft(I think eloramm did this for her engine) but I just can't seem to get my head around the coding part of it so if you know how to/ know any tutorials related to this it would certainly help, thanks in advanced(hopefully)

×
×
  • Create New...

Important Information

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