iiBlake
Members-
Posts
9 -
Joined
-
Last visited
Converted
-
Gender
Undisclosed
-
Personal Text
I am new!
iiBlake's Achievements
Tree Puncher (2/8)
0
Reputation
-
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
-
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!
-
Thank you! That fixed my problem completely!
-
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.
-
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!
-
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