Posted September 6, 201312 yr 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 Check out SpaceAge: https://github.com/AwesCorp/SpaceAge http://i.imgur.com/J4rrGt6.png[/img]
September 7, 201312 yr 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.
September 7, 201312 yr Author Yes, add the sources and reference them like any classes. Thanks for this, now do you know how to actually add recipes to the Squeezer? Check out SpaceAge: https://github.com/AwesCorp/SpaceAge http://i.imgur.com/J4rrGt6.png[/img]
September 7, 201312 yr Forestry isn't part of Forge, so I don't know. Maybe the Squeezer holds a Map with block to fluid id ?
September 8, 201312 yr 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); Check out SpaceAge: https://github.com/AwesCorp/SpaceAge http://i.imgur.com/J4rrGt6.png[/img]
September 8, 201312 yr 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. Check out SpaceAge: https://github.com/AwesCorp/SpaceAge http://i.imgur.com/J4rrGt6.png[/img]
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.