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

I am creating a new mod, well sort of addon for Forestry by SirSengir (It has Forestry integration) where a new fruit called Oranges (already coded that in, don't need help on that) gets processed in a Squeezer (added by Forestry) to create Orange Juice. (which I have yet to code and is a liquid) I was wondering how to add a new recipe to a squeezer and actually create addons in general - do you put the api files in the Eclipse workspace?

 

Thanks in advance,

SkylordJoel

 

 

I don't think you understand.  I want a "pixelation" effect.

 

guiScale and chatScale scale the GUI,  this is obvious.

 

overrideWidth  and overrideHeight only change the size of the window.

 

I want to change the full screen resolution to say 320x240 specifically for the "grainy" pixelated effect.

 

Forestry isn't part of Forge, so I don't know.

Maybe the Squeezer holds a Map with block to fluid id ?

  • Author

OK, so I got the recipe hopefully working. Does this look right to you?

    RecipeManagers.squeezerManager.addRecipe(2, new ItemStack[] { new ItemStack(MoreFood.orange) }, new LiquidStack (MoreFood.orangeJuiceStill, 1000)); 

I sorta tried this because the forestry javadoc says

/**
 * Add a recipe to the squeezer.
 * 
 * @param timePerItem
 *            Number of work cycles required to squeeze one set of resources.
 * @param resources
 *            Array of item stacks representing the required resources for one process. Stack size will be taken into account.
 * @param liquid
 *            {@link LiquidStack} representing the output of this recipe.
 */
public void addRecipe(int timePerItem, ItemStack[] resources, LiquidStack liquid); 

  • Author

How did you do it? I have a similar question to do with the same machine. Is this code right?

RecipeManagers.squeezerManager.addRecipe(2, new ItemStack[] { new ItemStack(MoreFood.orange) }, new LiquidStack (MoreFood.orangeJuiceStill, 1000));

 

You can test it to check if its working, but yes, it seems right.

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.