2021-04-03 11:44:22 +00:00
|
|
|
--[[- Craft a recipe based on the turtle's inventory.
|
|
|
|
|
|
|
|
The turtle's inventory should set up like a crafting grid. For instance, to
|
2021-07-11 08:03:41 +00:00
|
|
|
craft sticks, slots 1 and 5 should contain planks. _All_ other slots should be
|
2021-04-03 11:44:22 +00:00
|
|
|
empty, including those outside the crafting "grid".
|
|
|
|
|
|
|
|
@tparam[opt=64] number limit The maximum number of crafting steps to run.
|
|
|
|
@throws When limit is less than 1 or greater than 64.
|
|
|
|
@treturn[1] true If crafting succeeds.
|
|
|
|
@treturn[2] false If crafting fails.
|
|
|
|
@treturn string A string describing why crafting failed.
|
2021-08-26 07:02:58 +00:00
|
|
|
@since 1.4
|
2021-04-03 11:44:22 +00:00
|
|
|
]]
|
2020-04-18 20:42:59 +00:00
|
|
|
function craft(limit) end
|