Jump to content

Recommended Posts

Posted

Is it possible to use potions in crafting recipes? Not using the effect in an item like potion effected food, but craft an item like a sword using a potion and other items. I have looked all over the MC code and have not been able to find how the brewing stand does this...

 

Any help at all is appreciated

Posted

You just need to make it an itemstack instead of the item in the parameters for the crafting recipe. For example, if you want to use a regular potion of invisibility, you would just need to put:

new ItemStack(Item.potion, 1, 8206)

 

That's all!

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

Wow, thanks for the fast reply....I knew I was on the right track, I thought I could use ItemPotion though cause Item.potion wasnt giving me the list of potions to choose from, didnt think of it in terms like wool, or dyes and using metadata....thanks.

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.