Jump to content

Digital Crafter: Difference between revisions

From Advanced Computers Wiki
m GHXX moved page Auto Crafter to Digital Crafter without leaving a redirect
No edit summary
Line 2: Line 2:


== Provided component ==
== Provided component ==
This block provides the <code>autoCrafter</code> component, offering the following properties:
This block provides the <code>digitalCrafter</code> component, offering the following properties:
{| class="wikitable"
{| class="wikitable"
|+AutoCrafterUD component properties
|+DigitalCrafterUD component properties
!Name
!Name
!Type
!Type
Line 16: Line 16:
|}
|}
{| class="wikitable"
{| class="wikitable"
|+AutoCrafterUD component methods
|+DigitalCrafterUD component methods
!Name
!Name
!Type
!Type

Revision as of 13:16, 25 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 digitalCrafter component, offering the following properties:

DigitalCrafterUD component properties
Name Type Read/Write Description
cooldownRemaining number READ How much more time needs to pass before :craft may be called again.
DigitalCrafterUD component methods
Name Type Description
:searchRecipesWithIngredient(string"modname:itemname") recipe[]
:searchRecipesWithResult(string"modname:itemname") recipe[]
:searchItemByName(string:partialName) string Returns the full name of the item
:craft(string"modname:itemname"[]:ingredients, string"modname:itemname":resultItem, int:amount, boolean:outputIntoOwnInventory) integer If all required items are available, crafts the result. If outputIntoOwnInventory is true the result is put into the own inventory. Otherwise it is pushed into the inventory that may be above, or it is ejected above in-world. Beware that there is no destination check to make sure that there is room in the inventory above, so items may spill if the destination is full.