mirror of
https://github.com/SquidDev-CC/CC-Tweaked
synced 2024-12-27 10:30:30 +00:00
8a203e7454
- Several files where @MCJack123 is the exclusive contributor. He has signed over all contributions to "any OSI-approved license". Thank you! - Various the file handle classes: Looking at these again, I don't think they contain any of the original code.
18 lines
662 B
Lua
18 lines
662 B
Lua
-- SPDX-FileCopyrightText: 2020 The CC: Tweaked Developers
|
|
--
|
|
-- SPDX-License-Identifier: MPL-2.0
|
|
|
|
--[[- Craft a recipe based on the turtle's inventory.
|
|
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".
|
|
|
|
@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.
|
|
@since 1.4
|
|
]]
|
|
function craft(limit) end
|