Jump to content

[1.7.10] Adding Splash Potion to shapeless recipe?!


D3_M0N

Recommended Posts

Hi, im back again with another stupid question^^

 

how can i add a splash potion to my recipe?

 

new ItemStack(Items.potionitem,1,16387));

 

does not work.....

 

it seems thats 16387 is not the right id........

 

btw normal potions do work.

 

 

Link to comment
Share on other sites

"new ItemStack(youritem,amount,metadata)"

unless the potion's metadata is 16387 (I highly doubt it) it should be around the 60-70 range.

If you don't know the metadata of the potion you could go on the minecraft wiki or use f3+h to find the item id/metadata ingame.

The proud(ish) developer of Ancients

Link to comment
Share on other sites

hmmm ive found another problem

 

this works with 1 arrow and its only removing 1 arrow from my workbench on crafting

 

GameRegistry.addShapelessRecipe(new ItemStack(SkyPvP.fireArrow1, 8), new ItemStack(Items.arrow,16), new ItemStack(Items.potionitem,1,16419));

 

i want it to take 16 arrows...

Link to comment
Share on other sites

unfortunately, crafting doesn't work like that the best way to do that is just to create a shaped recipe with 8 arrows and the potion.

when you craft something in minecraft, it just subtracts one item from every slot in the crafting table gui.

if you really wanted to do that you would probably need to create a custom crafting manager, although I have no idea how to create one.

The proud(ish) developer of Ancients

Link to comment
Share on other sites

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.