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,

 

Is there a way to make a same recipe with different items like "OreDictionary.WILDCARD_VALUE" effect?

 

I mean, with this code the recipe shows any combination of plank block in the same shape:

GameRegistry.addShapedRecipe(new ItemStack(Chest, 1), "ppp", "p p", "ppp", 'p', new ItemStack(Blocks.planks, 1, OreDictionary.WILDCARD_VALUE));

 

But I need to use "different" items like diamond and emerald then with different id.

 

thanks

 

 

 

GameRegistry.addRecipe(new ItemStack(Blocks.chest, 2), "SSS", "S S", "SSS", new ItemStack(Blocks.dirt,);

'

 

Just do this change the

(Blocks.chest, 2)

with what the output gonna be and change 2 with how manny it gonna be

Hope it works

NEWB! in java im sorry :/

Ah

GameRegistry.addShapedRecipe(new ItemStack(Blocks.Chest), "SSS ", "B B", "PPP", 'S', Items.Iron, 'B', Items.stick, 'P', Items.Gold);

Here this what you mean?

NEWB! in java im sorry :/

  • Author

Ah

GameRegistry.addShapedRecipe(new ItemStack(Blocks.Chest), "SSS ", "B B", "PPP", 'S', Items.Iron, 'B', Items.stick, 'P', Items.Gold);

Here this what you mean?

 

no, I mean like this but that works:

GameRegistry.addRecipe(new ItemStack(Blocks.Chest, 1), "ddd", "d d", "ddd", "d", new ItemStack(Items.diamond), "d", new ItemStack(Items.emerald));

 

that makes a chest BUT using "diamonds" OR "emeralds" ....

 

 

 

  • Author

Yes, you need two recipe registrations for that then. One with diamonds, one with emeralds. If you want to mix-and-match them you need a custom IRecipe implementation.

 

this time I really afraid to asking you a sample link ...

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.