Digital Crafter: Difference between revisions
Appearance
No edit summary |
No edit summary |
||
| Line 10: | Line 10: | ||
!Description | !Description | ||
|- | |- | ||
|<code> | |<code>isBusy</code> | ||
|<code>boolean</code> | |<code>boolean</code> | ||
|READ | |READ | ||
| | |Whether the auto crafter is currently crafting something and thus not able to accept another :craft call. | ||
|} | |} | ||
{| class="wikitable" | {| class="wikitable" | ||
| Line 34: | Line 34: | ||
|- | |- | ||
|<code>:craft(9x ingredientModnameItemname, resultModnameItemname, amount)</code> | |<code>:craft(9x ingredientModnameItemname, resultModnameItemname, amount)</code> | ||
| | |number | ||
| | |If all required items are available, begins crafting and returns amount of seconds that this crafting operation will take. | ||
Otherwise throws an error describing the problem. | |||
|} | |} | ||
Revision as of 21:20, 23 August 2026
Description
Provided component
This block provides the autoCrafter component, offering the following properties:
| Name | Type | Read/Write | Description |
|---|---|---|---|
isBusy
|
boolean
|
READ | Whether the auto crafter is currently crafting something and thus not able to accept another :craft call. |
| Name | Type | Description |
|---|---|---|
:searchRecipesWithIngredient("modname:itemname")
|
recipe[]
|
|
:searchRecipesWithResult("modname:itemname")
|
recipe[]
|
|
:searchItemByName("partial name")
|
string
|
Returns the full name of the item |
:craft(9x ingredientModnameItemname, resultModnameItemname, amount)
|
number | If all required items are available, begins crafting and returns amount of seconds that this crafting operation will take.
Otherwise throws an error describing the problem. |