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.

Featured Replies

Posted

I saw this somewhere once before, but I guess I did not bookmark it with all the rest of my tutorial links. Oops.

 

I am adding a battery-like item to my mod, as a crafting material to make more complex items.

I would also like to include extra recipes that support a few battery-like items from other mods to be useable as a replacement for my battery.

I know the basic concept of how I have to check if the other mod is present to check if the recipe needs to be active or not, but I do not remember any of the specific methods/functions to use in my code.

 

Also, by chance, does anyone know the coded item names of IC2's RE Battery and/or Galacticraft 2's Battery?

These are the items I want to add recipe support for in case you couldn't guess.

One trick is you can just make a debug method in your mod that lists names and/or ids of all the registered items (or blocks or entities) to the console, and then run your mod with the other mods.  I think you can probably also inspect the lang files of the other mods.

Check out my tutorials here: http://jabelarminecraft.blogspot.com/

Use the Ic2 Api

http://ic2api.player.to:8080/job/IC2_experimental/397/

 

battery name

// batteries

  reBattery; // Empty RE Battery item, currently not meta sensitive

  chargedReBattery; // RE Battery item, meta = damage value for charge level

  advBattery;        // Adv Batteryitem, meta = damage value for charge level

  energyCrystal; // Energy Crystal item, meta = damage value for charge level

  lapotronCrystal; // Lapotron Crystal item, meta = damage value for charge level

  suBattery; // SU Battery item, meta = damage value for charge level

 

 

CraftingManager.getInstance().getRecipeList().add(new ShapelessOreRecipe(new ItemStack(/*Crafting Result*/, 1), "XY",'X',"battery",'Y',/*Other Item*/));

 

That's assuming they both register in the ore dictionary as "battery"

-Mitchellbrine

 

Minecraft can do ANYTHING, it's coded in Java and you got the full power of Java behind you when you code. So nothing is impossible.

It may be freaking fucking hard though, but still possible ;)

 

If you create a topic on Modder Support, live by this motto:

I don't want your charity, I want your information

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

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.