This page relates to Immersive Intelligence, which has built-in support!

Precision Assembler

Link to precision-assembler

The PrecisionAssembler package can be used to modify the Immersive Intelligence Precision Assembler recipes.

Importing the Package

Link to importing-the-package

ZenScript
Copy
import mods.immersiveintelligence.PrecisionAssembler;
TypeNameRequired
Type
IItemStack
Name
Main Output
Required
Yes
Type
IItemStack
Name
Secondary Output
Required
Yes
Type
IIngredient[]
Name
Inputs
Required
Yes
Type
String[]
Name
Tool Names
Required
Yes
Type
String[]
Name
Tool Animations
Required
Yes
Type
int
Name
Energy
Required
Yes
Type
float
Name
Time Multiplier
Required
Yes
ZenScript
Copy
mods.immersiveintelligence.PrecisionAssembler.addRecipe(IItemStack itemOutput, IItemStack trash, IIngredient[] itemInputs, String[] tools, String[] animations, int energy, float timeMultiplier);
NameDescriptionExample
Name
pick
Description
makes the tool pick an item from the slot (inserter only)
Example
inserter pick first
Name
work
Description
Works™ on the slot (plays animation)
Example
solderer work second
Name
drop
Description
drops the picked item onto the slot (inserter only)
Example
inserter drop main

Animations are defined using short 3-word command strings, i.e. inserter pick first will make the inserter pick the item from the first (left) slot.
Animations are persistent - an item picked by a tool remains picked until it is dropped.
A single animation consists of 3 parts - the in, work and out.

Tools/Default Action Time

Link to toolsdefault-action-time

NameAction Time (ticks)
Name
buzzsaw
Action Time (ticks)
140
Name
drill
Action Time (ticks)
140
Name
inserter
Action Time (ticks)
60
Name
solderer
Action Time (ticks)
80
Name
welder
Action Time (ticks)
160
Name
hammer
Action Time (ticks)
40

Note the work/pick/drop times are dependent on the tool itself. Tool use durations can be modified in tools section of the config/immersiveintelligence.cfg file.
The total recipe time is a sum of all action times for each animation multiplied by the timeMultiplier parameter.

NamePosition
Name
main
Position
Center
Name
first
Position
Left
Name
second
Position
Middle
Name
third
Position
Right
ZenScript
Copy
mods.immersiveintelligence.PrecisionAssembler.addRecipe(<minecraft:diamond>,<minecraft:stone>,[<ore:oreGold>, <ore:oreIron>*2], ["drill","hammer","inserter"], ["inserter pick first","drill work main","inserter drop main","hammer work main"], 8000, 1);

Removing Recipes

Link to removing-recipes

TypeNameRequired
Type
IItemStack
Name
Output
Required
Yes
ZenScript
Copy
mods.immersiveintelligence.PrecisionAssembler.removeRecipe(IItemStack output);
ZenScript
Copy
mods.immersiveintelligence.PrecisionAssembler.removeRecipe(<minecraft:diamond>);