Pocket API

From ComputerCraft
Jump to navigation Jump to search
Error creating thumbnail: Unable to save thumbnail to destination
Functionpocket.equipBack
Search the player’s inventory for another upgrade, replacing the existing one with that item if found. The inventory search starts from the currently selected slot, allowing one to prioritise upgrades. This will error if no such upgrade can be found.
Syntax pocket.equipBack()
Returns boolean success
Part of CC:Tweaked (source)
API pocket
Error creating thumbnail: Unable to save thumbnail to destination
ExampleEquip back
Equip back
Code
pocket.equipBack()


Error creating thumbnail: Unable to save thumbnail to destination
Functionpocket.unequipBack
This removes the pocket computer’s existing upgrade. It will error if the computer currently has no upgrade.
Syntax pocket.unequipBack()
Returns boolean success
Part of CC:Tweaked (source)
API pocket
Error creating thumbnail: Unable to save thumbnail to destination
ExampleUnequip back
Unequip back
Code
pocket.unequipBack()