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, I'm trying to make a custom recipe that takes into account the stack sizes of the input grid. I've managed to get the output to change depending on the size of the stacks of the input, but I cant figure out how to make the recipe actually use the entire stack from the input. It only takes 1, could someone tell me where I should be looking to make this happen?

 

Edit:

After some more research it looks like I need to create my own crafting handler that implements ICraftingHandler but I would like some info on the parameters of onCrafting. Im assuming the item stack is the output stack and craftMatrix is the crafting table. Would I be able to use the matrix to edit the leftover items in the table to delete the whole stack of items instead of just the single one it usually does.

 

Also would this effect only apply to recipes from my mod as the interface comment says its called from a mod container.

 

Edit 2:

Ok, so I seem to have figured it all out myself now, the only issue I have left is that the IRecipe.getCraftingResult doesnt work on a stack size change. It works when you split a stack or re-seat a stack in the slot, but right clicking into a stack to increment its size will not trigger a recipe update. Anyone know how to do this?

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.