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 Copyimport mods.immersiveintelligence.PrecisionAssembler;
Adding Recipes
Link to adding-recipes
Parameters
Link to parameters
Type | Name | Required |
---|---|---|
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 |
Syntax
Link to syntax
ZenScript Copymods.immersiveintelligence.PrecisionAssembler.addRecipe(IItemStack itemOutput, IItemStack trash, IIngredient[] itemInputs, String[] tools, String[] animations, int energy, float timeMultiplier);
Animations
Link to animations
Name | Description | Example |
---|---|---|
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
Name | Action 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.
Slots
Link to slots
Name | Position |
---|---|
Name main | Position Center |
Name first | Position Left |
Name second | Position Middle |
Name third | Position Right |
Example
Link to example
ZenScript Copymods.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
Parameters
Link to parameters-1
Type | Name | Required |
---|---|---|
Type IItemStack | Name Output | Required Yes |
Syntax
Link to syntax-1
ZenScript Copymods.immersiveintelligence.PrecisionAssembler.removeRecipe(IItemStack output);
Example
Link to example-1
ZenScript Copymods.immersiveintelligence.PrecisionAssembler.removeRecipe(<minecraft:diamond>);