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

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.

 

 

"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

  • Author

thx for the reply:-)

 

 

i got it now... the potion item ids are so fu.. up

 

there are false potions in the game....... ive installed NIE to check this-.-

  • Author

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

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

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.