This page relates to Immersive Intelligence, which has built-in support!
Sawmill
The Sawmill
package can be used to modify the Immersive Intelligence Sawmill recipes.
Importing the Package
import mods.immersiveintelligence.Sawmill;
Adding Recipes
Parameters
Type | Name | Required |
---|---|---|
Type IIngredient | Name Input | Required Yes |
Type IIngredient | Name Output | Required Yes |
Type IItemStack | Name Secondary Output | Required Yes |
Type int | Name Torque | Required Yes |
Type int | Name Time | Required Yes |
Type int | Name Saw Hardness | Required Yes |
Type int | Name Dust Color | Required Yes |
DustColor is a color provided in RGB int format. To get it, pick a color (RGB) in hex and convert the number to
decimal.
Saw Hardness determines which saws can be used in the recipe.
Material | Hardness |
---|---|
Material Iron | Hardness 2 |
Material Steel | Hardness 3 |
Material Tungsten | Hardness 4 |
Syntax
mods.immersiveintelligence.Sawmill.addRecipe(IIngredient itemInput, IItemStack itemOutput, IItemStack secondaryItemOutput, int torque, int time, int hardness, int dustColor);
Example
mods.immersiveintelligence.Sawmill.addRecipe(<ore:oreGold>,<minecraft:diamond>,<minecraft:diamond>,10,20,1,0);
Removing Recipes
Parameters
Type | Name | Required |
---|---|---|
Type IItemStack | Name Output | Required Yes |
Syntax
mods.immersiveintelligence.Sawmill.removeRecipe(IItemStack output);
Example
mods.immersiveintelligence.Sawmill.removeRecipe(<minecraft:diamond>);