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

How would I go about having an item being used in a recipe, but so that I get to keep the item after the crafting. Example: Buckets in cake recipes.

If you found this post helpful, please take your time to give me a "Thank You". :)

  • Author

Have a look at setContainerItem in the Item Class.

So if I set it as the item it should give me back the item after crafting?

If you found this post helpful, please take your time to give me a "Thank You". :)

  • Author

So if I set it as the item it should give me back the item after crafting?

Yup.

I just tried it, it didn't work:

metalConvert = new portableMagik(metalID).setMaxStackSize(1).setCreativeTab(MagikTab).setIconIndex(0).setItemName("MetalConvert").setContainerItem(metalConvert);

So basically it should turn iron into copper, but when I craft with it, it uses it up.

If you found this post helpful, please take your time to give me a "Thank You". :)

  • Author

You need to create your Item first of course. At the point where you do setContainerItem(metalConvert) metalConvert is still null (= no containerItem).

So inside my item class?

 

EDIT: Nevermind, just put it after the declaration like so:

metalConvert.setContainerItem(metalConvert);

If you found this post helpful, please take your time to give me a "Thank You". :)

  • Author

You need to create your Item first of course. At the point where you do setContainerItem(metalConvert) metalConvert is still null (= no containerItem).

Ok, but it disappears every time I craft something. Is there a way how to prevent it from going into my inventory every time? Example: The minium stone from EE3.

If you found this post helpful, please take your time to give me a "Thank You". :)

The EE3 source is open to everyone, so you could check how they do it inn EE by going to their github :D

If you guys dont get it.. then well ya.. try harder...

  • Author

The EE3 source is open to everyone, so you could check how they do it inn EE by going to their github :D

I did, I couldn't find it.

If you found this post helpful, please take your time to give me a "Thank You". :)

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.