Home Getting Started With Scripts Using this wiki Commands CTGUI Global functions Bracket Handlers
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

script.zs
import mods.immersiveintelligence.Sawmill;

Adding Recipes

Parameters

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

MaterialHardness
Material
Iron
Hardness
2
Material
Steel
Hardness
3
Material
Tungsten
Hardness
4

Syntax

script.zs
mods.immersiveintelligence.Sawmill.addRecipe(IIngredient itemInput, IItemStack itemOutput, IItemStack secondaryItemOutput, int torque, int time, int hardness, int dustColor);

Example

script.zs
mods.immersiveintelligence.Sawmill.addRecipe(<ore:oreGold>,<minecraft:diamond>,<minecraft:diamond>,10,20,1,0);

Removing Recipes

Parameters

TypeNameRequired
Type
IItemStack
Name
Output
Required
Yes

Syntax

script.zs
mods.immersiveintelligence.Sawmill.removeRecipe(IItemStack output);

Example

script.zs
mods.immersiveintelligence.Sawmill.removeRecipe(<minecraft:diamond>);