Jump to content

Smashy

Members
  • Posts

    1
  • Joined

  • Last visited

Everything posted by Smashy

  1. Hi, no need to implement your own crafting handler for a simple recipe. Just use //the output is always an ItemStack //the strings represent rows in the crafting matrix //the Block/Item/Stack after a single character defines what that character represents in the crafting matrix GameRegistry.addRecipe(new ItemStack(Chocolate.chocolateBucket), "ccc", "cbc", "ccc", 'c', new ItemStack(Item.dyePowder, 1, 3), 'b', Item.bucket); for a shaped recipe or ItemStack cocoa = ItemStack(Item.dyePowder, 1, 3); //buffer this to save us some typing work //the output is always an ItemStack //up to 9 Blocks/Items/Stacks can be passed GameRegistry.addShapelessRecipe(new ItemStack(Chocolate.chocolateBucket), Item.bucketMilk, cocoa, cocoa, cocoa, cocoa, cocoa, cocoa, cocoa, cocoa); for a shapeless recipe. Cheers
×
×
  • Create New...

Important Information

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