Jump to content

PsudoSage

Members
  • Posts

    8
  • Joined

  • Last visited

Converted

  • Gender
    Undisclosed
  • Personal Text
    I am new!

PsudoSage's Achievements

Tree Puncher

Tree Puncher (2/8)

0

Reputation

  1. Hi, I'm trying to make a custom recipe that takes into account the stack sizes of the input grid. I've managed to get the output to change depending on the size of the stacks of the input, but I cant figure out how to make the recipe actually use the entire stack from the input. It only takes 1, could someone tell me where I should be looking to make this happen? Edit: After some more research it looks like I need to create my own crafting handler that implements ICraftingHandler but I would like some info on the parameters of onCrafting. Im assuming the item stack is the output stack and craftMatrix is the crafting table. Would I be able to use the matrix to edit the leftover items in the table to delete the whole stack of items instead of just the single one it usually does. Also would this effect only apply to recipes from my mod as the interface comment says its called from a mod container. Edit 2: Ok, so I seem to have figured it all out myself now, the only issue I have left is that the IRecipe.getCraftingResult doesnt work on a stack size change. It works when you split a stack or re-seat a stack in the slot, but right clicking into a stack to increment its size will not trigger a recipe update. Anyone know how to do this?
  2. After doing some tests I can confirm that you cant have the mirrored recipes, i have changed the design of the recipe to an L shape instead of half a 'plus' shape and it works ok. I will leave it as that for now, but larsgerrits has a good idea that I may try out too so thanks for that larsgerrits. Thanks for your help guys, much appreciated.
  3. Are you seriously trying to tell me that you cant have mirrored recipes because minecraft cant handle it? I hope this is a bug and not a 'feature' as I will have serious doubts about the intelligence of the people behind this if so. Rage mode on!!!
  4. I am trying to make some recipes for converting wood from mod logs to vanilla and I have a set of recipes for each vanilla log. Here is the snippet of the recipes: GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(Block.wood, 4, 0), " x ", "xxx", " ", 'x', "logWood")); GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(Block.wood, 4, 1), " x ", " xx", " x ", 'x', "logWood")); GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(Block.wood, 4, 2), " ", "xxx", " x ", 'x', "logWood")); GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(Block.wood, 4, 3), " x ", "xx ", " x ", 'x', "logWood")); The problem I'm having with this code is that the 4th recipe is producing the same log as the 2nd. I have no idea why.
×
×
  • Create New...

Important Information

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