Difference between revisions of "AI Craftapalooza CNC"
Jump to navigation
Jump to search
Troylaurin (talk | contribs) m |
Troylaurin (talk | contribs) |
||
Line 255: | Line 255: | ||
|craft script check | |craft script check | ||
|3 | |3 | ||
− | | | + | |Uses a timing hack to determine if the target script exists, and sets status to 404 if it doesn't. |
|{{AIScript | |{{AIScript | ||
|code= | |code= | ||
Line 330: | Line 330: | ||
|craft ingot | |craft ingot | ||
|13 | |13 | ||
− | | | + | |Inputs: |
+ | *<code>craft_tier:ingot</code> (int) | ||
+ | *<code>craft_count:ingot</code> (double) | ||
+ | *<code>craft_verify:ingot</code> (int) | ||
+ | ** If 1, will only count and not create ingots | ||
+ | |||
+ | Note: will always use ingots in inventory, regardless of <code>craft_inventory</code> setting. | ||
+ | Note: will exit immediately if <code>craft_status</code> contains a terminal value. | ||
+ | |||
|{{AIScript | |{{AIScript | ||
|code= | |code= |
Latest revision as of 01:13, 22 January 2021
Command scripts
Script | Lines | Notes | Source | |||
---|---|---|---|---|---|---|
craft init | 9 | Impulse on wake |
| |||
craft GO | 13 | Impulse on 0
|
| |||
craft tier up | 1 | Impulse on 1 |
| |||
craft mode up | 2 | Impulse on 2 |
| |||
craft output up | 2 | Impulse on 3 |
| |||
craft count up | 5 | Impulse on 9 |
| |||
craft count down | 5 | Impulse on 8 |
| |||
craft inventory use | 1 | Impulse on 5 |
| |||
craft script check | 3 | Uses a timing hack to determine if the target script exists, and sets status to 404 if it doesn't. |
| |||
craft output producer | ? | Impulse on 4
|
TODO | |||
craft output machine | 4 | Impulse on 4
|
| |||
craft ingot | 13 | Inputs:
Note: will always use ingots in inventory, regardless of |
|