Jump to content

Help with creating a Forestry addon


SkylordJoel

Recommended Posts

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

 

 

Link to comment
Share on other sites

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.

 

Link to comment
Share on other sites

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); 

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Announcements



×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.