Jump to content

Digital Crafter: Difference between revisions

From Advanced Computers Wiki
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>:craft(9x ingredientModnameItemname, resultModnameItemname, amount)</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

This page describes unreleased, experimental content that is still in development which might undergo significant changes or be removed entirely.

Description

Provided component

This block provides the autoCrafter component, offering the following properties:

AutoCrafterUD component 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.
AutoCrafterUD component methods
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.