Jump to content

kosakriszi

Members
  • Posts

    9
  • Joined

  • Last visited

Converted

  • Gender
    Undisclosed
  • Personal Text
    I am new!

kosakriszi's Achievements

Tree Puncher

Tree Puncher (2/8)

1

Reputation

  1. Hey there! I had a similar problem in my mod, where I had multiple outcomes based on item combinations. You can add NBT to an item stack and then pass it to the GameRegistry, and that NBT will be present when you craft it! Here I used two metadata items, similar to how the color dyes work. // iterate through all damage values for meat item for(int i = 0; i < meatItem.getItemData().size(); i++) { // create item stack for crafting component ItemStack meatStack = new ItemStack(meatItem, 1, i); // iterate through all damage values for cheese item for(int j = 0; j < cheeseItem.getItemData().size(); j++) { // create item stack for crafting component ItemStack cheeseStack = new ItemStack(cheeseItem, 1, j); // this item stack will be the result with the NBT ItemStack sandwich = new ItemStack(sandwichItem, 1); // assign a new tag compound to the item stack sandwich.setTagCompound(new NBTTagCompound()); // retrieve said compound for modifying NBTTagCompound tags = sandwich.stackTagCompound; // here you can set your NBT data on the item tags.setString("meat", meatStack.getDisplayName()); tags.setByte("meatTier", (byte) ItemMeat.getTier(meatStack)); tags.setString("cheese", cheeseStack.getDisplayName()); // add the recipe to the GameRegistry GameRegistry.addShapelessRecipe(sandwich, new Object[] { breadSliceItem, breadSliceItem, meatStack, cheeseStack }); } } Hope this helps! If I didn't explain anything well enough, please don't hesitate to ask!
  2. Nevermind, I figured it out! It was MineChem that was causing the problem.
  3. Well in that case, does anyone have any insight as to why my game is not launching? I've been struggling with this issue for a few days now. Any help is appreciated.
  4. https://dl.dropboxusercontent.com/u/21001005/Minecraft/Downloads/ForgeModLoader-client-0.log Hey there, so I've been using Forge version 9.1.11.953 for my private modpack, and recently the severes at the end of the linked log file have started showing up. I understand that Forge is trying to move towards 1.7, but why was this change introduced in a version of forge meant for 1.6.4? I understand that cpw made this a severe on purpose, but I cannot launch my game anymore due to this error. Is there anything I can do to continue playing my modpack? Thanks in advance, kosakriszi
×
×
  • Create New...

Important Information

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