Digital Crafter: Difference between revisions
Appearance
No edit summary |
No edit summary |
||
| Line 33: | Line 33: | ||
|Returns the full name of the item | |Returns the full name of the item | ||
|- | |- | ||
|<code>: | |<code>:craftAsync(9x ingredientModnameItemname, resultModnameItemname, amount)</code> | ||
|number | |number | ||
|If all required items are available, begins crafting and returns amount of seconds that this crafting operation will take. | |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. | 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 |
:craftAsync(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. |