Jump to content
View in the app

A better way to browse. Learn more.

Forge Forums

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

iiBlake

Members
  • Joined

  • Last visited

  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

Important Information

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

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.