Jump to content
Search In
  • More options...
Find results that contain...
Find results in...


  • Posts

  • Joined

  • Last visited


  • Gender
  • Personal Text
    I am new!

iiBlake's Achievements

Tree Puncher

Tree Puncher (2/8)



  1. Got it fixed, air returns as null in the array so calling item.getItemName() was crashing it.
  2. Okay, i tried using the CraftingDeconstructor class, and I'm doing it like this: List<String> d = new ArrayList<String>(); CraftingDeconstructor decon = new CraftingDeconstructor(); ItemStack[] ingredients = decon.getDeconstructResults(item); for (ItemStack i : ingredients) { d.add(i.getUnlocalizedName()); } return d; But it is throwing a NPE in it: Sorry if this is a basic mistake, I'm not sure what is making the error
  3. hello, I was recently playing a 1.6.4 modpack and saw ICBM has recipes in the lore when holding J (http://prntscr.com/cdkvwq). Is there any way I can do this in my mod? Getting the recipe for an itemStack, I already know how to do the lore based on keys held. I had a look in the CraftingManager class but found nothing that could help. Thanks for any help!
  4. Thank you! That fixed my problem completely!
  5. Hi, i have been having a problem with building my mod. when i run gradle build, it fails saying error: multi-catch statement is not supported in -source 1.6 } catch (NumberFormatException | ArrayIndexOutOfBoundsException ex) { ^ (use -source 7 or higher to enable multi-catch statement) Is there any way I can change gradle to build with java 1.7? I have looked it up a few times but nothing seemed to work... Thanks in advance.
  6. hello, I am trying to make a block that makes a hollow cube around it from one location to another. I know how to set blocks and all, but i have no idea how I could get a hollow cube. Any help is appreciated! Thanks in advance!
  7. I got this fixed, thanks for all the help! Turns out it was because i was setting the tabs in preInit(or not?), but once i moved the tab setting into Init it worked fine. Thanks for the help again!
  8. Hello, I'm relatively new to modding but not java, and i was trying to add new items and blocks. Everything is working so far, except the creativetab part. I can get my items with /give, but they are just not showing in my creative tab. I am creating the creativetab like so: modTab = new ModTab("testmod", wrench); , and my ModTabs constructor is: public ModTab(String label, Item i) { super(label); tabIcon = i; } . I register my items with a method called 'register', and inside that it registers them to gameregistry and sets the creativetab: private void register(Item item){ GameRegistry.registerItem(item, item.getUnlocalizedName()); item.setCreativeTab(modTab); } . I also have one for blocks, the same but with registerBlock. Any help would be appreciated! P.S. Sorry for formatting issues, new to forum
  • Create New...

Important Information

By using this site, you agree to our Privacy Policy.