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

For my mod I have tools which can have different looks but I need to keep the damage in the resulting item when I craft the new tool.

 

GameRegistry.addRecipe(new ItemStack(AlloycraftItems.aluminumtooltest, 1, 1), new Object[]{
        	" A ",
        	" B ",
        	"   ",
        	'B', Items.dye, 'A', new ItemStack(AlloycraftItems.aluminumtooltest, WILDCARD_VALUE, WILDCARD_VALUE)
    	});

What is this recipe supposed to do?  Normally damage is used either for damage or as metadata.  How is your aluminiumtooltest expected to change colour?

 

-TGG

  • Author

What is this recipe supposed to do?  Normally damage is used either for damage or as metadata.  How is your aluminiumtooltest expected to change colour?

 

-TGG

 

Thanks for responding but I just forgot to change the resulting item to a different one.

  • Author

Sorry dude I have absolutely no idea what you mean :)

 

Have you solved your own question?

 

-TGG

 

No not yet :P Here I made an example I have a diamond sword with 5 damage and then if I craft it with lapis then I get an iron sword with the same damage as the diamond sword.

Ah ok.

 

I think you will need to implement a custom IRecipe for that.

 

GameRegister.addRecipe(myRecipe implements IRecipe);

 

-->Your myRecipe can match diamond sword plus lapis and return an iron sword with the damage copied from the diamond sword.

 

-TGG

  • Author

Ah ok.

 

I think you will need to implement a custom IRecipe for that.

 

GameRegister.addRecipe(myRecipe implements IRecipe);

 

-->Your myRecipe can match diamond sword plus lapis and return an iron sword with the damage copied from the diamond sword.

 

-TGG

 

Alright sweet so I got the class made now do I use a if statement to get if the items are there and then replace it with the other item?

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.