mirror of
https://github.com/SquidDev-CC/CC-Tweaked
synced 2026-04-18 04:51:23 +00:00
Mention turtle.craft(0) in the docs
Fix the range of the limit parameter, and mention that it can be used for checking whether a recipe is valid.
This commit is contained in:
@@ -7,8 +7,11 @@ The turtle's inventory should set up like a crafting grid. For instance, to
|
||||
craft sticks, slots 1 and 5 should contain planks. _All_ other slots should be
|
||||
empty, including those outside the crafting "grid".
|
||||
|
||||
`turtle.craft(0)` can be used to check whether the turtle contains a valid
|
||||
recipe, without actually crafting it.
|
||||
|
||||
@tparam[opt=64] number limit The maximum number of crafting steps to run.
|
||||
@throws When limit is less than 1 or greater than 64.
|
||||
@throws When limit is less than 0 or greater than 64.
|
||||
@treturn[1] true If crafting succeeds.
|
||||
@treturn[2] false If crafting fails.
|
||||
@treturn string A string describing why crafting failed.
|
||||
|
||||
Reference in New Issue
Block a user