ComputerCraft 1.73

Recipes
Stone Stone Stone
Stone Redstone Stone
Stone Glass Pane Stone
Computer
Computer
Gold Ingot in place of Stone to get Advanced Computer
Stone Stone Stone
Stone Redstone Stone
Stone Stone Stone
Wired Modem
Wired Modem
Stone
Stone Redstone Stone
Stone
Networking Cable 6
Networking Cable
Stone Stone Stone
Stone Ender Pearl Stone
Stone Stone Stone
Wireless Modem
Wireless Modem
Stone Stone Stone
Stone Redstone Stone
Stone Redstone Stone
Disk Drive
Disk Drive
Paper Redstone
Floppy Disk
Floppy Disk
Can be dyed
Iron Ingot Iron Ingot Iron Ingot
Iron Ingot Computer Iron Ingot
Iron Ingot Chest Iron Ingot
Turtle
Turtle
Gold Ingot and Advanced Computer in place of Iron Ingot and Computer to get Advanced Turtle
Combine Turtle / Advanced Turtle and up to two of:
Wireless Modem Workbench Diamond Pickaxe Diamond Sword Diamond Hoe Stone
Stone Stone Stone
Stone Glass Pane Stone
Stone Stone Stone
Monitor
Monitor
Gold Ingot in place of Stone to get 4xAdvanced Monitor
Stone Stone Stone
Stone Redstone Stone
Stone Ink Sac Stone
Printer
Printer
Combine Printed Page / Printed Pages with String to get Printed Pages
Combine Printed Page / Printed Pages with String and Leather to get Printed Book
Stone Stone Stone
Stone Golden Apple Stone
Stone Glass Pane Stone
Pocket Computer
Pocket Computer
Gold Ingot in place of Stone to get Advanced Pocket Computer
Combine Pocket computer / Advanced Pocket Computer and Wireless Modem
Built-in Programs
id
labelbreaking without a label loses all data and fuel
copy / cp / rename / move source destination
delete file
monitor side program arguments...
bg / fg program arguments...advanced / multishell
repeatwireless repeater
gps host [x y z]
gps locate
refuel [amount]
craft
go [direction]
equip / unequip side
dig [distance]
excavate [square size]
Shortcuts
Ctrl-S Shutdown computer
Ctrl-R Reboot computer
Ctrl-T Terminate running program
Boot sequence: disk/startup, startup
Turtle Api
forward / back / up / down()
turnLeft / turnRight()
select(slot) / getSelectedSlot()
craft([quantity])
getItemCount / getItemSpace()
getItemDetail() {name, count, damage}
equipLeft / equipRight()
attack / attackUp / attackDown()
dig / digUp / digDown() or till dirt
place / placeUp / placeDown([signText])or use bucket
detect / detectUp / detectDown()
inspect / inspectUp / inspectDown() success, {name, metadata}, error
compare / compareUp / compareDown()
compareTo()
drop / dropUp / dropDown()
suck / suckUp / suckDown([amount])
refuel([quantity])
getFuelLevel() / getFuelLimit()
transferTo(slot, [quantity])
Coroutine Api
create(function)
resume(resume)
running()
status(coroutine)One of: running, suspended, normal, dead
wrap(coroutine)
yield(...)
Defaults
Fuel limit (moves): 20,000 normal / 100,000 advanced
Modem distance, wired (blocks): 256
Modem distance, wireless (blocks): 64+ (16+ in thunderstorm)
Resolution (chars): 51x19 chars computer / 7x5 monitor
Disk Api
isPresent(side) / hasData(side) / hasAudio(side)
setLabel(side, label) / getLabel(side) / getID(side)
getAudioTitle(side)
playAudio(side) / stopAudio(side)
eject(side)
Etherpad.za3k.com Bootstrap
pastebin get LLia5Cd7 etherpad
etherpad get etherpad etherpad
etherpad get pull pull
pull push
File handles
close()
readLine() / readAll()"r"
write / writeLine(data)"w" or "a"
flush() "w" or "a"
read() / write(byte)"rb" or "wb"
Fs Api
open(path, mode)
Gps Api
locate(timeout)
Help Api
topics()
lookup(topic)
path() / setPath(path)
Http Api
get(url, [headers]) sync
post(url, postData, [headers]) sync
request(url, [postData, [headers]]) nil, http_success or http_failure event sent later
Multishell Api
getCurrent()
setTitle(tabID, title) / getTitle(tabID)
Os Api
version()
computerID() / computerLabel() / setComputerLabel(label)
clock() Monotone since boot
time() / day()
sleep(seconds)
setAlarm(time) / cancelAlarm(alarm)
setTimer(seconds) / cancelTimer(timer)
pullEvent([target-event])
queueEvent(event, params...)
Native Os Events
key: keycode
char: letter
timer / alarm: id
redstone Any redstone input changed
disk / disk_detach: side
rednet_message: senderID, message, protocol
modem_message: side, frequency, replyFrequency, message, distanceTravelled
peripheral / peripheral_detach: side
mouse_click: button, x, y
mouse_scroll: direction, x, y
mouse_drag: button, x, y
monitor_touch: side, x, y Right click on an advanced monitor
term_resize
terminateos.pullEventRaw only
turtle_inventory Inventory changes
Parallel Api
Peripheral Api
getType(side)
getMethods(side)
wrap(side) peripheral table
A wired modem can connect peripherals indirectly
Printer Peripheral
newPage() / endPage()
write(text)
getPageSize() / getCursorPos() / setCursorPos(x, y)
getPaperLevel() / getInkLevel()
setPageTitle()
Rednet Api
open / close / isOpen(side) for networking
send(receiverId, message, [protocol])
broadcast(message, [protocol])
receive([protocolFilter], [timeout])
host / unhost(protocol, hostname)
lookup(protocol, [hostname])
Redstone
getSides()
getInput(side)
setOutput(side) / getOutput(side)
getAnalogInput(side) / setAnalogOutput(side)
Shell Api
exit()
dir() / setDir(path)
path() / setPath(path)
resolve(localPath) / resolveProgram(name)
aliases() / setAlias(alias, program) / clearAlias(alias)
programs([showHidden])
getRunningProgram()
run(command, args...)
openTab(command, args...)
switchTab(tabID)
Term Api
write(text)
clear() / clearLine()
getCursorPos() / setCursorPos(x, y)
setCursorBlink(shouldBlink)
isColor()
getSize()
scroll(n)
redirect(target)
current() / native()
setTextColor(color) / setBackgroundColor(color)
setTextScale(scale) monitor only
window.setVisible(visible)
window.restoreCursor()
window.getPosition() (x,y) of top-left
window.reposition(x, y, [width, height])
Textutils Api
formatTime(time, [twentyFourHour])
serialize(data) / unserialize(serializedData)
serializeJSON(data)
urlEncode(urlUnsafeString)
Vector Api
new(x, y, z)
v1:dot(v2) / v1:cross(v2)
v1:normalize() / v1:length()
v1:round()
v1:tostring()
Window Api
create(parentTerm, x, y, width, height, [visible])
Lua Reference
if condition then block else block end
while condition do block end
repeat block until condition end
for i = begin, end, [step] do block end
for k,v in pairs(table) do block end
for i,v in ipairs(array) do block end
function name(args) block end
name = function(args) do block end
table.__index / table.__newindex
Example values: nil, True, False, {}, 3, "yes", {"yes", 3}, {a="a", b=3}
Special Thanks
To the ComputerCraft Wiki for the recipe graphics, as well as excellent documentation.