Jump to content

Firefury

Members
  • Posts

    4
  • Joined

  • Last visited

Everything posted by Firefury

  1. I will be doing that in the future. But for now while i'm here im stuck again, What I want to do is when the block is smelted it will have a chance of dropping between 5 and 10 of the result. So far i have FurnaceRecipes.smelting().addSmelting(249, new ItemStack(Item.arrow, Random()), 0.1F); I did some searching to try and find a random int generator and i found this private static int Random() { int x; x = 5 + (int)(Math.random() * ((10 - 5) + 1)); return x ; However it just keeps returning 5
  2. This worked, the problem I see with this is id conflicts between different mods using the id, so maybe I should make a config file that allows for the item ID's to be corrected to the appropriate item id if such conflicts occur. //IC2 copper item id 249 FurnaceRecipes.smelting().addSmelting(249, new ItemStack(Block.blockLapis), 0.7F); //Buildcraft copper item id 1398:1 FurnaceRecipes.smelting().addSmelting(1398, 1, new ItemStack(Block.blockLapis), 0.7F);
  3. I tried that but it didn't work unfortunately, I was wonder is it passable to instead use the items ID and make multiple recipes for the different ids Such as for IC2 copper = 249 Buildcraft copper 1398:1 FurnaceRecipes.smelting().addSmelting(?, new ItemStack(Items.rockwoolBlock), 0.1F); //rockwoolBlockis just a place holder for now
  4. I have tried this FurnaceRecipes.smelting().addSmelting(OreDictionary.getOreID("oreCopper"), new ItemStack(Blocks.rockwoolBlock), 0.1F); but I cant get it to work, can someone assist with this.
×
×
  • Create New...

Important Information

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