Jump to content

Recommended Posts

Posted

So I recently learned some basic modding, and I want to do some recipes using items from other mods. I thought I'd start with Thaumcraft. Lets say I want to make a recipe using a Thaumium Sword, how should I use that in the code?

 

Using a regular vanilla item in a recipe would look something like this(probably wrong but you get my idea)

GameRegistry.addRecipe(new ItemStack(MyNewCoolItemUsingTools), new Object[] { "   ", "xyx", "   ", 'x', Item.stone, 'y', Item.swordIron});

 

Working with the Thaumcraft API, what should I replace Item.swordIron with to use a Thaumium Sword? I hope it's not too much to ask for, if you who are reading this don't have time to look at a API and see how it works it's cool.

 

The closest I got was

ItemApi.getItem(ItemThaumiumSword)

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...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Announcements



×
×
  • Create New...

Important Information

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