http://www.computercraft.info/wiki/api.php?action=feedcontributions&user=MKlegoman357&feedformat=atomComputerCraft Wiki - User contributions [en]2024-03-28T21:11:44ZUser contributionsMediaWiki 1.24.1http://www.computercraft.info/wiki/index.php?title=Robust_Turtle_API&diff=7441Robust Turtle API2016-06-16T18:29:25Z<p>MKlegoman357: Editing of the .jar file is NOT the way to add/replace programs</p>
<hr />
<div>This is an <b>unofficial API</b>. This means that you have to install it manually.<br />
<br/> This API extends on the original turtle API and makes it more robust. It also strives to make coding a turtle easier.<br />
<br/> When traveling, for example, it will not get stopped by mobs, players, sand, or any other block.<br />
<br />
<br />
==Installation==<br />
<br />
Install globally on all Turtles:<br />
* Create and install a new [[Lua_Resource_Pack_Making_(Tutorial)|resource pack]] on the client (if playing singleplayer) or the server (if playing multiplayer).<br />
* [http://pastebin.com/0TnEBf2P Download the API] and save it in the 'assets/computercraft/lua/rom/apis/turtle' directory inside the resource pack.<br />
* The name of the file will determine the name of the API (If you save it as 't' you'd call the 'forward()' function like so: <var>t.forward()</var>).<br />
* The API will automatically be loaded for every Turtle.<br />
<br />
Install only on one specific Turtle:<br />
* Open the computer you want to download the API into and type: '<var>pastebin get 0TnEBf2P t</var>' (without the quotes) to download and save the API as 't'.<br />
* Before using the API you'll have to load it: <var>[[os.loadAPI]]("t")</var>.<br />
<br />
==Usage==<br />
<br />
A lot of the functions do the same as the default turtle API, except with additional checks. There are also some functions that combine default functions for ease of use. E.g. turnAround() turns right twice.<br />
<br/>Most of the function names are the same, but instead of writing "turtle." in front, you now write "t.".<br />
<br />
<br/>'''Digging'''<br />
<br/>These will dig as long as there is a block in the way. So if sand falls down, it will dig as long as necessary.<br />
* t.dig()<br />
* t.digUp()<br />
* t.digDown()<br />
<br />
<br/>'''Traveling'''<br />
<br/>These will not be stopped by blocks or mobs.<br />
<br/>''[amount]'' is optional, you can leave it out. It is the amount of blocks to travel. If left out these will travel 1 block.<br />
* t.forward(''[amount]'')<br />
* t.up(''[amount]'')<br />
* t.down(''[amount]'')<br />
* t.back(''[amount]'')<br />
<br />
<br/>'''Placing blocks'''<br />
<br/>Here, '<i>block</i>' is a number between 1 and 16. It combines selecting and placing. <br />
<br/>I highly recommend adding e.g. "stoneBrick = 1" at the beginning of the code. This way you can later easily see which block must go in which slot. Example: "t.place(stoneBrick)".<br />
<br/>If there is another block in the way, it will break it, unless it is the same type of block.<br />
* t.place(''block'')<br />
* t.placeUp(''block'')<br />
* t.placeDown(''block'')<br />
* t.placeRight(''block'')<br />
* t.placeLeft(''block'')<br />
* t.placeBack(''block'')<br />
<br />
<br/>The following function places a row of blocks: <br />
* t.placeRow(''placeDir'', ''block'', ''travelDir'', ''length'')<br />
**''travelDir'' is the most logical one. It is the direction the turtle travels to. Possible directions: "forward","up","down","right","left","back".<br />
**''placeDir'' is a bit more difficult to understand. ''placeDir'' is the direction to place the block in. The turtle travels in one direction, but it cannot place a block in that direction (it can, but it will get dug up again). This means that the place direction must be another direction as the travel direction. The possible directions are the same as ''travelDir''.<br />
**''length'' is the amount of blocks to travel.<br />
**Example: t.placeRow(up, marble, forward, 15)<br />
<br />
<br />
If any of these run out of their resource, the API will write a message and waits for any text input to continue. <br />
<br/>This way you can refill and write something (anything) to continue the program.<br />
<br />
<br/>'''Turning'''<br />
<br/>This function simply turns right twice. If you really want, you can change it to turn left twice ;).<br />
* t.turnAround()<br />
<br />
<br/>These are simply a shorter way to write turtle.turnLeft() and turtle.turnRight().<br />
* t.right()<br />
* t.left()<br />
<br />
<br/>These simply turn left or right, and move forward an amount.<br />
<br/>''[amount]'' is optional, and is the amount of blocks to travel forward. If left out these will travel 1 block.<br />
* t.goRight(''[amount]'')<br />
* t.goLeft(''[amount]'')<br />
<br />
<br/>These are the same as the previous functions, except at the end they turn back again.<br />
* t.strafeRight(''[amount]'')<br />
* t.strafeLeft(''[amount]'')<br />
<br />
==Code==<br />
<br />
Download: [http://pastebin.com/0TnEBf2P Robust Turtle API]<br />
<br/>Save it as 't', without ".txt".<br />
<br />
<pre><br />
--Robust Turtle API by SpeedR<br />
<br />
--Digging with gravel/sand detection<br />
function dig()<br />
local tries = 0<br />
while turtle.detect() do<br />
turtle.dig()<br />
sleep(0.4)<br />
tries = tries + 1<br />
if tries>500 then<br />
print("Error: dug for too long.")<br />
return false<br />
end<br />
end<br />
return true<br />
end<br />
<br />
function digUp()<br />
local tries = 0<br />
while turtle.detectUp() do<br />
turtle.digUp()<br />
sleep(0.4)<br />
tries = tries + 1<br />
if tries>500 then<br />
print("Error: dug up for too long.")<br />
return false<br />
end<br />
end<br />
return true<br />
end<br />
<br />
function digDown()<br />
local tries = 0<br />
while turtle.detectDown() do<br />
turtle.digDown()<br />
sleep(0.4)<br />
tries = tries + 1<br />
if tries>500 then<br />
print("Error: dug down for too long.")<br />
return false<br />
end<br />
end<br />
return true<br />
end<br />
<br />
<br />
--Traveling: Goes in the direction no matter what (almost)<br />
--Will not be stopped by blocks or mobs<br />
function forward(l)<br />
l=l or 1<br />
for i=1,l do<br />
local tries = 0<br />
while turtle.forward() ~= true do<br />
turtle.dig()<br />
turtle.attack()<br />
sleep(0.2)<br />
tries = tries + 1<br />
if tries>500 then<br />
print("Error: can't move forward.")<br />
return false<br />
end<br />
end<br />
end<br />
return true<br />
end<br />
<br />
function up(l)<br />
l=l or 1<br />
for i=1,l do<br />
local tries = 0<br />
while turtle.up() ~= true do<br />
turtle.digUp()<br />
turtle.attackUp()<br />
sleep(0.2)<br />
tries = tries + 1<br />
if tries>500 then<br />
print("Error: can't move up.")<br />
return false<br />
end<br />
end<br />
end<br />
return true<br />
end<br />
<br />
function down(l)<br />
l=l or 1<br />
for i=1,l do<br />
local tries = 0<br />
while turtle.down() ~= true do<br />
turtle.digDown()<br />
turtle.attackDown()<br />
sleep(0.2)<br />
tries = tries + 1<br />
if tries>500 then<br />
print("Error: can't move down.")<br />
return false<br />
end<br />
end<br />
end<br />
return true<br />
end<br />
<br />
function back(l)<br />
l=l or 1<br />
for i=1,l do<br />
if turtle.back() ~= true then<br />
turnAround()<br />
forward()<br />
turnAround()<br />
end<br />
end<br />
end<br />
<br />
<br />
--Place blocks<br />
--Does not place when there's already the right block.<br />
function place(block)<br />
turtle.select(block)<br />
if turtle.compare()==false then<br />
if turtle.getItemCount(block)==0 then<br />
outOfResource(block)<br />
end<br />
dig()<br />
turtle.place()<br />
end<br />
end<br />
<br />
function placeUp(block)<br />
turtle.select(block)<br />
if turtle.compareUp()==false then<br />
if turtle.getItemCount(block)==0 then<br />
outOfResource(block)<br />
end<br />
digUp()<br />
turtle.placeUp()<br />
end<br />
end<br />
<br />
function placeDown(block)<br />
turtle.select(block)<br />
if turtle.compareDown()==false then<br />
if turtle.getItemCount(block)==0 then<br />
outOfResource(block)<br />
end<br />
digDown()<br />
turtle.placeDown()<br />
end<br />
end<br />
<br />
local function outOfResource()<br />
print("Ran out of a resource. Block: ",block , ".")<br />
print("Refill, then say something to proceed.")<br />
read()<br />
end<br />
<br />
function placeRight(block)<br />
turtle.turnRight()<br />
place(block)<br />
turtle.turnLeft()<br />
end<br />
<br />
function placeLeft(block)<br />
turtle.turnLeft()<br />
place(block)<br />
turtle.turnRight()<br />
end<br />
<br />
function placeBack(block)<br />
turnAround()<br />
place(block)<br />
turnAround()<br />
end<br />
<br />
--place row e.g. placeRow(up, marble, forward, 15)<br />
function placeRow(placeDir, block, travelDir, l) <br />
l=l or 1<br />
for i=1,l do<br />
if placeDir == "forward" then<br />
place(block)<br />
elseif placeDir == "up" then<br />
placeUp(block)<br />
elseif placeDir == "down" then<br />
placeDown(block)<br />
elseif placeDir == "right" then<br />
placeRight(block)<br />
elseif placeDir == "left" then<br />
placeLeft(block)<br />
elseif placeDir == "back" then<br />
placeBack(block)<br />
else<br />
print('"', placeDir, '" is not a valid direction!')<br />
return false<br />
end<br />
if travelDir == "forward" then<br />
forward()<br />
elseif travelDir == "up" then<br />
up()<br />
elseif travelDir == "down" then<br />
down()<br />
elseif travelDir == "right" then<br />
strafeRight()<br />
elseif travelDir == "left" then<br />
strafeLeft()<br />
elseif travelDir == "back" then<br />
back()<br />
else<br />
print('"', travelDir, '" is not a valid direction!')<br />
return false<br />
end<br />
end<br />
return true<br />
end<br />
<br />
<br />
--Turning<br />
function turnAround()<br />
turtle.turnRight()<br />
turtle.turnRight()<br />
end<br />
<br />
function right()<br />
turtle.turnRight()<br />
end<br />
<br />
function left()<br />
turtle.turnLeft()<br />
end<br />
<br />
function goRight(l)<br />
l=l or 1<br />
turtle.turnRight()<br />
forward(l)<br />
end<br />
<br />
function goLeft(l)<br />
l=l or 1<br />
turtle.turnLeft()<br />
forward(l)<br />
end<br />
<br />
function strafeRight(l)<br />
l=l or 1<br />
goRight(l)<br />
turtle.turnLeft()<br />
end<br />
<br />
function strafeLeft(l)<br />
l=l or 1<br />
goLeft(l)<br />
turtle.turnRight()<br />
end<br />
</pre><br />
<br />
[[Category:Unofficial_APIs]]</div>MKlegoman357http://www.computercraft.info/wiki/index.php?title=Template:News&diff=7414Template:News2016-04-25T20:04:21Z<p>MKlegoman357: Added CC 1.79</p>
<hr />
<div>'''April 1, 2016'''<br />
* ComputerCraft 1.79 is released for Minecraft '''1.8.9'''.<br />
'''January 15, 2016'''<br />
* ComputerCraft 1.77 - 1.78 is released for Minecraft '''1.8.9'''.<br />
'''December 24, 2015'''<br />
* ComputerCraft 1.76 is released for Minecraft '''1.8'''.<br />
'''December 4, 2015'''<br />
* ComputerCraft 1.75 is released as a final bug fix update for Minecraft '''1.7.10'''.<br />
<noinclude><!-- Only display latest four events.--><br />
'''June 27, 2015'''<br />
* ComputerCraft 1.74 is released for Minecraft '''1.7.10'''.<br />
'''February 24-25, 2015'''<br />
* ComputerCraft 1.72 - 1.73 is released to fix multiplayer-only crashes.<br />
'''February 23, 2015'''<br />
* ComputerCraft 1.71 is released for Minecraft '''1.7.10'''.<br />
'''February 15, 2015'''<br />
* ComputerCraft 1.7 is released for Minecraft '''1.7.10'''.<br />
'''October 09, 2014'''<br />
* ComputerCraft 1.65 is released as a bug fix update for ComputerCraft 1.64.<br />
'''September 27, 2014'''<br />
* ComputerCraft 1.64 is released for Minecraft '''1.7.10'''.<br />
'''April 16, 2014'''<br />
* ComputerCraft 1.63 is released for Minecraft '''1.6.4'''.<br />
'''April 4, 2014'''<br />
* ComputerCraft 1.62 is released to fix game crashes.<br />
'''April 1, 2014'''<br />
* ComputerCraft 1.61 is released as a bug fix update for ComputerCraft 1.6.<br />
'''March 27, 2014'''<br />
* ComputerCraft 1.6 is released for Minecraft '''1.6.4'''.<br />
'''December 9, 2013'''<br />
* ComputerCraft 1.58 is released for Minecraft '''1.6.4'''.<br />
'''October 14, 2013'''<br />
* ComputerCraft 1.57 is released for Minecraft '''1.6.4'''.<br />
'''August 4, 2013'''<br />
* ComputerCraft 1.56 is released for Minecraft '''1.6.2'''.<br />
'''July 11, 2013'''<br />
* ComputerCraft 1.55 is released for Minecraft '''1.6.2'''.<br />
'''May 23, 2013'''<br />
* ComputerCraft 1.53 is released for Minecraft '''1.5.2'''.<br />
'''March 26, 2013'''<br />
* ComputerCraft 1.52 is released for Minecraft '''1.5.1'''.<br />
'''February 11, 2013'''<br />
* ComputerCraft 1.5 is released for Minecraft '''1.4.7'''.<br />
'''December 27, 2012'''<br />
* ComputerCraft 1.481 is released as a quick hotfix for MiscPeripherals.<br />
</noinclude></div>MKlegoman357http://www.computercraft.info/wiki/index.php?title=Template:Version&diff=7413Template:Version2016-04-25T20:03:06Z<p>MKlegoman357: It should start with white, and then gray. Looks a lot nicer.</p>
<hr />
<div><!-- ATTENTION WIKI-ENS. Please use the following template for this page:<br />
{{version/row|%VERSION%|%MCVERSION%|%DATE%|type=%TYPE%|link=%LINK%}}<br />
%TYPE% values:<br />
* beta<br />
* latest<br />
* gray (every other for alternating cell pattern)<br />
Only set %LINK% to the ending link if the generated one is incorrect (set to the part of the link after the domain)<br />
--><br />
<table style="width:100%"><br />
{{version/row|1.79|1.8.9 |2016/04/01|link=2016/04/01/computercraft-and-computercraftedu-1-79|type=latest}}<br />
{{version/row|1.78|1.8.9 |2016/01/15}}<br />
{{version/row|1.76|1.8 |2015/12/24|type=gray}}<br />
{{version/row|1.75|1.7.10|2015/12/04}}<br />
{{version/row|1.74|1.7.10|2015/06/27|type=gray}}<br />
{{version/row|1.73|1.7.10|2015/02/22}}<br />
<noinclude> <!-- 6 newest releases should be enough --><br />
{{version/row|1.7 |1.7.10|2015/02/15|type=gray}}<br />
{{version/row|1.65|1.7.10|2014/10/09}}<br />
{{version/row|1.64|1.7.10|2014/09/27|type=gray}}<br />
{{version/row|1.63|1.6.4|2014/04/16}}<br />
{{version/row|1.62|1.6.4|2014/04/04|type=gray}}<br />
{{version/row|1.61|1.6.4|link=2014/04/01/computercraft-1-61-bug-fix-update}}<br />
{{version/row|1.6 |1.6.4|link=2014/03/27/computercraft-1-6-is-here|type=gray}}<br />
{{version/row|1.58|1.6.4|2013/12/09}}<br />
{{version/row|1.57|1.6.4|link=2013/10/14/new-versions|type=gray}}<br />
{{version/row|1.56|1.6.2|2013/08/04}}<br />
{{version/row|1.55|1.6.2|2013/07/11|type=gray}}<br />
{{version/row|1.53|1.5.2|2013/05/23}}<br />
{{version/row|1.52|1.5.1|2013/03/26|type=gray}}<br />
{{version/row|1.51|1.5 |2013/03/15}}<br />
{{version/row|1.5 |1.4.7|2013/02/11|type=gray}}<br />
</noinclude><br />
</table><br />
<center>'''[[Changelog]]'''</center></div>MKlegoman357http://www.computercraft.info/wiki/index.php?title=Template:Changelog&diff=7412Template:Changelog2016-04-25T20:00:27Z<p>MKlegoman357: Fixed Changelog</p>
<hr />
<div>{| class="wikitable sortable" style="width: 100%"<br />
! style="width: 15%" | Version<br />
! class="unsortable" | New Features or Changes<br />
! style="width: 15%" | Minecraft Version<br />
|-<br />
|align=center|[http://www.computercraft.info/2016/04/01/computercraft-and-computercraftedu-1-79/ ComputerCraft 1.79]<br />
|<br />
*Ported ComputerCraftEdu to Minecraft 1.8.9.<br />
*Fixed a handful of bugs in ComputerCraft.<br />
*Removed MS-DOS support.<br />
|align=center|1.8.9<br />
|-<br />
|align=center|[http://www.computercraft.info/2016/01/15/computercraft-1-78/ ComputerCraft 1.77 - 1.78]<br />
|<br />
*Ported to Minecraft 1.8.9.<br />
*Added [[Settings_(API)|“settings” API]].<br />
*Added [[set|“set”]] and [[wget|“wget”]] programs.<br />
*Added [[Settings_(API)|settings]] to disable [[multishell]], startup scripts, and tab completion on a per-computer basis. The default values for these settings can be customised in [[ComputerCraft.cfg]].<br />
*All [[Computer]] and [[Turtle]] items except [[Command Computer]]s can now be mounted in [[Disk Drive]]s.<br />
|align=center|1.8.9<br />
|-<br />
|align=center|[http://www.computercraft.info/2015/12/24/computercraft-1-76/ ComputerCraft 1.76]<br />
|<br />
*Ported to Minecraft 1.8.<br />
*Added [[Ender Modem]]s for cross-dimensional communication.<br />
*Fixed handling of 8-bit characters. All the characters in the [https://en.wikipedia.org/wiki/ISO/IEC_8859-1 ISO 8859-1 codepage] can now be displayed.<br />
*Added some extra graphical characters in the unused character positions, including a suite of characters for [http://teletextart.tumblr.com/ Teletext-style drawing].<br />
*Added support for the new commands in Minecraft 1.8 to the [[Command Computer]].<br />
*The return values of [[turtle.inspect]]() and [[commands.getBlockInfo]]() now include blockstate information.<br />
*Added [[commands.getBlockInfos]]() function for Command Computers.<br />
*Added new "[[Peripherals (program)|peripherals]]" program.<br />
*Replaced the "_CC_VERSION" and "_MC_VERSION" constants with a new "_HOST" constant.<br />
*Shortened the length of time that "Ctrl+T", "Ctrl+S" and "Ctrl+R" must be held down to terminate, shutdown or reboot the computer.<br />
*[[textutils.serializeJSON]]() now takes an optional parameter allowing it to produce JSON text with unquoted object keys. This is used by all autogenerated methods in the [[commands (API)|commands API]] except for "title" and "tellraw".<br />
*Fixed many bugs.<br />
|align=center|1.8<br />
|-<br />
|align=center|[http://www.computercraft.info/2015/12/04/computercraft-1-75/ ComputerCraft 1.75]<br />
|<br />
*Fixed monitors sometimes rendering without part of their text.<br />
*Fixed a regression in the [[Bit_(API)|“bit” API]].<br />
|align=center|1.7.10<br />
|-<br />
|align=center|[http://www.computercraft.info/2015/06/27/computercraft-1-74/ ComputerCraft 1.74]<br />
|<br />
*Added tab completion to [[Edit|“edit”]], [[Lua|“lua”]] and the [[shell]].<br />
*Added [[textutils.complete]](), [[fs.complete]](), [[shell.complete]](), [[shell.completeProgram]](), [[shell.setCompletionFunction]](), [[shell.getCompletionInfo]](), and [[help.completeTopic]]().<br />
*Added tab completion options to [[read]]().<br />
*Added [[key_up_(event)|“key_up”]] and [[mouse_up_(event)|“mouse_up”]] events.<br />
*Non-advanced terminals now accept both grey [[Color_(API)|colour]]s.<br />
*Added [[term.getTextColor]](), [[term.getBackgroundColor]]() and [[term.blit]]().<br />
*Improved the performance of text rendering on [[Advanced Computer]]s.<br />
*Added a “Run” button to the [[edit|“edit”]] program on [[Advanced Computer]]s.<br />
*[[Turtle]]s can now push players and entities ([[ComputerCraft.cfg|configurable]]).<br />
*[[Turtle]]s now respect server spawn protection ([[ComputerCraft.cfg|configurable]]).<br />
*Added a turtle permissions API for mod authors.<br />
*Implemented a subset of the Lua 5.2 API so programs can be written against it now, ahead of a future Lua version upgrade.<br />
*Added a [[ComputerCraft.cfg|config option]] to disable parts of the Lua 5.1 API which will be removed when a future Lua version upgrade happens.<br />
*[[Command Computer]]s can no longer be broken by survival players.<br />
*Fixed the “pick block” key not working on ComputerCraft items in creative mode.<br />
*Fixed the [[edit|“edit”]] program being hard to use on certain European keyboards.<br />
*Added “_CC_VERSION” and “_MC_VERSION” constants.<br />
|align=center|1.7.10<br />
|-<br />
|align=center|[http://www.computercraft.info/2015/02/22/computercraft-1-73/ ComputerCraft 1.71 - 1.73]<br />
|<br />
*[CC 1.71] The [[exec|“exec”]] program, [[commands.exec]]() and all related [[Command Computer]] functions now return the console output of the command.<br />
*[CC 1.72 - 1.73] Fixed two multiplayer-only crash bugs when placing certain blocks.<br />
|align=center|1.7.10<br />
|-<br />
|align=center|[http://www.computercraft.info/2015/02/15/computercraft-1-7/ ComputerCraft 1.7]<br />
|<br />
*Added [[Command Computer]]s.<br />
*Added new API: [[commands_(API)|commands]].<br />
*Added new programs: [[commands]], [[exec]].<br />
*Added [[textutils.serializeJSON]]().<br />
*Added ILuaContext.executeMainThreadTask() for peripheral developers.<br />
*[[Disk Drive]]s and [[Printer]]s can now be renamed with Anvils.<br />
*Fixed problems with HD texture packs.<br />
*Fixed various bugs and crashes.<br />
*Documented all the new features in the in-game help system.<br />
|align=center|1.7.10<br />
|-<br />
|align=center|[http://www.computercraft.info/2014/10/09/computercraft-1-65/ ComputerCraft 1.65]<br />
|<br />
*Fixed a multiplayer-only crash with [[turtle.place]]().<br />
*Fixed some problems with [[http.post]]().<br />
*Fixed [[fs.getDrive]]() returning incorrect results on remote peripherals.<br />
|align=center|1.7.10<br />
|-<br />
|align=center|[http://www.computercraft.info/2014/09/27/computercraft-1-64/ ComputerCraft 1.64]<br />
|<br />
*Ported to Minecraft 1.7.10.<br />
*New [[turtle_(API)|turtle API]] functions: [[turtle.inspect]](), [[turtle.inspectUp]](), [[turtle.inspectDown]](), [[turtle.getItemDetail]]().<br />
*Lots of bug fixes and crash fixes, a huge stability improvement over previous versions.<br />
*New [[paintutils_(API)|paintutils API]] functions: [[paintutils.drawBox]]( startX, startY, endX, endY [, color] ), [[paintutils.drawFilledBox]]( startX, startY, endX, endY [, color] ).<br />
|align=center|1.7.10<br />
|-<br />
|align=center|[http://www.computercraft.info/2014/04/16/computercraft-1-63/ ComputerCraft 1.63]<br />
|<br />
*[[Turtle]]s can now be painted with dyes, and cleaned with water buckets.<br />
*Added a new game: [[Redirection]] – ComputerCraft Edition by [http://www.computercraft.info/forums2/index.php?/user/16414-ramilego4game/ RamiLego] (type “redirection” on an Advanced Computer to play).<br />
*[[Turtle]] label nameplates now only show when the [[Turtle]] is moused-over.<br />
*The HTTP API is now enabled by default, and can be configured with a whitelist of permitted domains.<br />
*[[http.get]]() and [[http.post]]() now accept parameters to control the request headers.<br />
*New [[Fs_(API)|fs API]] function: [[fs.getDir]]( path ).<br />
*Fixed some bugs.<br />
|align=center|1.6.4<br />
|-<br />
|align=center|[http://www.computercraft.info/2014/04/04/computercraft-1-62/ ComputerCraft 1.62]<br />
|<br />
*Fixed some bugs which were crashing the game.<br />
*[[Chat]] now supports IRC commands.<br />
|align=center|1.6.4<br />
|-<br />
|align=center|[http://www.computercraft.info/2014/04/01/computercraft-1-61-bug-fix-update/ ComputerCraft 1.61]<br />
|<br />
*Fixed a bug where newly placed [[Computer]]s would share their folder structure until game restart.<br />
*Fixed a bug where running [[Computer]]s might not automatically restart as the game did so.<br />
|align=center|1.6.4<br />
|-<br />
|align=center|[http://www.computercraft.info/2014/03/27/computercraft-1-6-is-here/ ComputerCraft 1.6]<br />
|<br />
*Added [[Pocket Computer]]s.<br />
*Added a [[Multishell|multi-tasking system]] for [[Advanced Computer]]s and [[Turtle]]s.<br />
*[[Turtle]]s can now [[Equip|swap out their tools and peripherals]] at runtime.<br />
*[[Turtle]]s can now carry two tools or peripherals at once in any combination.<br />
*[[Turtle]]s and [[Computer]]s can now be labelled using Name Tags and Anvils.<br />
*Added a [[ComputerCraft.cfg|configurable fuel limit]] for [[Turtle]]s.<br />
*Added hostnames, protocols and long distance routing to the [[Rednet (API)|rednet API]].<br />
*Added a peer-to-peer [[chat]] program to demonstrate new rednet capabilities.<br />
*Added a new game, only on [[Pocket Computer]]s: “[[falling]]” by [http://www.computercraft.info/forums2/index.php?/user/3545-gopheratl/ GopherATL].<br />
*File system commands in the shell now accept wildcard arguments.<br />
*The shell now accepts long arguments in quotes.<br />
*[[term.redirect|Terminal redirection]] now no longer uses a stack-based system. Instead: [[term.current]]() gets the current terminal object and [[term.redirect]]() replaces it. [[term.restore]]() has been removed.<br />
*Added a new [[Window (API)|Windowing API]] for addressing sub-areas of the terminal.<br />
*New programs: [[fg]], [[bg]], [[multishell]], [[chat]], [[repeat]], [[Redstone (program)|redstone]], [[equip]], [[unequip]].<br />
*Improved programs: [[copy]], [[move]], [[delete]], [[rename]], [[paint]], [[CraftOS|shell]].<br />
*Removed programs: redset, redprobe, redpulse.<br />
*New [[:Category:APIs|APIs]]: [[Window (API)|window]], [[Multishell (API)|multishell]].<br />
*New [[Turtle (API)|turtle API]] functions: [[turtle.equipLeft]](), [[turtle.equipRight]](), [[turtle.getFuelLimit]](), [[turtle.getSelectedSlot]]().<br />
*New [[Peripheral (API)|peripheral API]] functions: [[peripheral.find]]( [type] ).<br />
*New [[Rednet (API)|rednet API]] functions: [[rednet.host]]( protocol, hostname ), [[rednet.unhost]]( protocol ), [[rednet.lookup]]( protocol, [hostname] ).<br />
*Improved [[Rednet (API)|rednet API]] functions: [[rednet.send]](), [[rednet.broadcast]]() and [[rednet.receive]]() now take optional protocol parameters.<br />
*New [[fs (API)|fs API]] function: [[fs.find]]( wildcard ).<br />
*New [[Shell (API)|shell API]] functions: [[shell.openTab]]( command ), [[shell.switchTab]]( number ).<br />
*New event “[[Term_resize_(event)|term_resize]]” fired when the size of a terminal changes.<br />
*[[turtle.craft]](0) and [[turtle.refuel]](0) now return true if there is a valid recipe or fuel item, but do not craft or refuel anything.<br />
*[[turtle.suck]]( [limit] ) can now be used to limit the number of items picked up.<br />
*Users of [[turtle.dig]]() and [[turtle.attack]]() can now specify which side of the turtle to look for a tool to use (by default, both will be considered).<br />
*[[textutils.serialize]]() now produces human-readable output.<br />
*Refactored most of the codebase and fixed many old bugs and instabilities, [[Turtle]]s should never ever lose their content now.<br />
*Fixed the “[[turtle_inventory_(event)|turtle_inventory]]” event firing when it shouldn’t have.<br />
*Added error messages to many more [[Turtle_(API)|turtle API]] functions after they return false.<br />
*Documented all new programs and API changes in the “[[help]]” system.<br />
|align=center|1.6.4<br />
|-<br />
|align=center|[http://www.computercraft.info/2013/12/09/computercraft-1-58/ ComputerCraft 1.58]<br />
|<br />
*Fixed a long standing bug where [[Turtle]]s could lose their identity.<br />
*Fixed use of deprecated code, ensuring mod compatibility with the latest versions of Minecraft Forge and world compatibility with future versions of Minecraft.<br />
|align=center|1.6.4<br />
|-<br />
|align=center|[http://www.computercraft.info/2013/10/14/new-versions/ ComputerCraft 1.57]<br />
|<br />
*Ported to Minecraft 1.6.4.<br />
*Added two new [[Treasure Disks]]: Conway’s Game of Life by [http://www.computercraft.info/forums2/index.php?/user/1823-vilsol/ vilsol] and Protector by [http://www.computercraft.info/forums2/index.php?/user/6929-fredthead/ fredthead].<br />
*Fixed a very nasty item duplication bug.<br />
|align=center|1.6.4<br />
|-<br />
|align=center|[http://www.computercraft.info/2013/08/04/computercraft-1-56/ ComputerCraft 1.56]<br />
|<br />
*Added [[Treasure Disks]]: Rare [[Floppy Disk]]s found only in dungeons, which contain fun programs made by the community. Find them all!<br />
*All [[Turtle_(API)|turtle API]] functions now return additional error messages when they fail.<br />
*Resource Packs with Lua Programs can now be loaded when extracted to a folder, for easier editing.<br />
|align=center|1.6.2<br />
|-<br />
|align=center|[http://www.computercraft.info/2013/07/11/computercraft-1-55/ Computercraft 1.55]<br />
|<br />
*Ported to Minecraft 1.6.2.<br />
*Added [[Advanced Turtle]]s.<br />
*Added [[turtle_inventory_(event)|“turtle_inventory”]] event. Fires when any change is made to the inventory of a [[Turtle]].<br />
*Added missing [[IO_(API)|io API]] functions: io.close, io.flush, io.input, io.lines, io.output.<br />
*Tweaked the screen colours used by [[Advanced Computer]]s, [[Advanced Monitor]]s and [[Advanced Turtle]]s.<br />
*Added several new features for Peripheral authors.<br />
*Lua programs can now be included in Resource Packs.<br />
|align=center|1.6.2<br />
|-<br />
|align=center|[http://www.computercraft.info/2013/05/23/computercraft-1-53/ ComputerCraft 1.53]<br />
|<br />
*Ported to Minecraft 1.5.2.<br />
*[[redstone.setBundledOutput]]() and [[redstone.getBundledOutput]]() now work with cables from Minefactory Reloaded, as well as RedPower.<br />
*[[Monitor]]s and [[Advanced Monitor]]s can now be placed on floors and ceilings.<br />
|align=center|1.5.2<br />
|-<br />
|align=center|[http://www.computercraft.info/2013/03/26/computercraft-1-52/ Computercraft 1.52]<br />
|<br />
*Ported to Minecraft 1.5.1.<br />
|align=center|1.5.1<br />
|-<br />
|align=center|[http://www.computercraft.info/2013/03/15/computercraft-1-51/ Computercraft 1.51]<br />
|<br />
*Ported to Minecraft 1.5.<br />
*Added [[Wired Modem]]s.<br />
*Added [[Networking Cable]]s.<br />
*Made [[Wireless Modem]]s more expensive to craft.<br />
*New [[redstone_(API)|redstone API]] functions: [[redstone.getAnalogInput]](), [[redstone.setAnalogOutput]](), [[redstone.getAnalogOutput]]().<br />
*Peripherals can now be controlled remotely over wired networks.<br />
*New [[peripheral_(API)|peripheral API]] function: [[peripheral.getNames]]().<br />
*New event: [[monitor_resize_(event)|“monitor_resize”]]is fired when the size of a monitor changes.<br />
*Except for labelled [[Computer]]s and [[Turtle]]s, ComputerCraft blocks no longer drop items in creative mode.<br />
*The pick block function works in creative mode now works for all ComputerCraft blocks.<br />
*All blocks and items now use the IDs numbers assigned by FTB by default.<br />
*Fixed [[Turtle]]s sometimes placing blocks with incorrect orientations.<br />
*Fixed [[Wireless Modem]]s being able to send messages to themselves.<br />
*Fixed [[turtle.attack]]() having a very short range.<br />
*Various bugfixes.<br />
|align=center|1.5<br />
|-<br />
|align=center|[http://www.computercraft.info/2013/02/11/computercraft-1-5/ Computercraft 1.5]<br />
|<br />
*Redesigned [[Wireless Modem]]s; they can now send and receive on multiple channels, independent of the computer ID. To use these features, interface with modem peripherals [[Modem_(API)|directly]]. The [[Rednet_(API)|rednet API]] still functions as before.<br />
*[[Floppy Disk]]s can now be dyed with multiple dyes, just like armour.<br />
*The [[Excavate|“excavate”]] program now retains fuel in it’s inventory, so can run unattended.<br />
*[[turtle.place]]() now tries all possible block orientations before failing.<br />
*[[turtle.refuel]](0) returns true if a fuel item is selected.<br />
*[[turtle.craft]](0) returns true if the inventory is a valid recipe.<br />
*The in-game help system now has documentation for all the peripherals and their methods, including the new [[Modem]] functionality.<br />
*A romantic surprise.<br />
|align=center|1.4.7<br />
|-<br />
|align=center|[http://www.computercraft.info/2012/12/27/computercraft-1-481-miscperipherals-fix/ Computercraft 1.481]<br />
|<br />
*Fixed compatibility bug with MiscPeripherals.<br />
|align=center|1.4.6<br />
|-<br />
|align=center|[http://www.computercraft.info/2012/12/23/computercraft-1-48/ Computercraft 1.48]<br />
|<br />
*Ported to Minecraft 1.4.6.<br />
*[[Advanced Monitor]]s can now be used as touchscreens.<br />
*[[Advanced Monitor]]s are now easier to craft.<br />
*[[Turtle]]s now get slightly less movement from fuel.<br />
*[[Turtle]]s can now push items.<br />
*[[Computer]]s can now [[Command_Block_(API)|control Command Blocks]], if enabled in the [[ComputerCraft.cfg|config]].<br />
*New [[OS_(API)|os API]] function: [[os.day]]().<br />
*A Christmas surprise.<br />
|align=center|1.4.6<br />
|-<br />
|align=center|[http://www.computercraft.info/2012/11/15/computercraft-1-47-and-minecon-news/ ComputerCraft 1.47]<br />
|<br />
*Ported to Minecraft 1.4.4.<br />
*Fixed label tooltips not showing up in SMP.<br />
|align=center|1.4.4<br />
|-<br />
|align=center|[http://www.computercraft.info/2012/10/25/computercraft-1-46-minecraft-update/ ComputerCraft 1.46]<br />
|<br />
*Ported to Minecraft 1.4.2.<br />
*ComputerCraft items now have their own tab in Creative Mode.<br />
|align=center|1.4.2<br />
|-<br />
|align=center|[http://www.computercraft.info/2012/10/22/computercraft-1-45-now-with-colors/ ComputerCraft 1.45]<br />
|<br />
*Added [[Advanced Computer]]s.<br />
*Added [[Advanced Monitor]]s.<br />
*New program: [[paint]] (by [http://www.computercraft.info/forums2/index.php?/user/643-nitrogenfingers/ nitrogenfingers]).<br />
*New API: [[paintutils_(API)|paintutils]].<br />
*New term functions: [[term.setBackgroundColor]]( color ), [[term.setTextColor]]( color ), [[term.isColor]]().<br />
*New [[Turtle|Turtle API]] function: [[turtle.transferTo]]().<br />
|align=center|1.3.2<br />
|-<br />
|align=center|[http://www.computercraft.info/2012/10/04/computercraft-1-43-books/ ComputerCraft 1.43]<br />
|<br />
*Added [[Printed Page]]s (bind several [[Printed Page]] items into one with a string).<br />
*Added [[Printed_book|Printed Books]] (add a leather cover to the above).<br />
*Labelled [[Turtle]]s now keep their fuel when broken.<br />
*Fixed incompatibility with Forge 275 and above.<br />
|align=center|1.3.2<br />
|-<br />
|align=center|[http://www.computercraft.info/2012/09/22/computercraft-1-42-is-released/ ComputerCraft 1.42]<br />
|<br />
*Ported to Minecraft 1.3.2 and the Forge mod system.<br />
*Added [[Printer]]s.<br />
*[[Floppy Disk]]s can now be dyed different colours.<br />
*[[Turtle|Wireless Crafty Turtles]] can now be crafted.<br />
*All new textures.<br />
*New Forge [[ComputerCraft.cfg|config file]].<br />
*Various tweaks and bug fixes.<br />
|align=center|1.3.2<br />
|-<br />
|align=center|[http://www.computercraft.info/2012/07/29/computercraft-1-41-bugfix-update/ ComputerCraft 1.41]<br />
|<br />
*Fixed labelled [[Computer]]s not keeping their data when destroyed.<br />
*Fixed the [[Excavate|“excavate”]] program outputting lots of spam.<br />
*File system size limits now take into account empty files and directories.<br />
*Some small changes to the Turtle Upgrade API ahead of it’s impending release. (Update: The API has now been released).<br />
|align=center|1.2.5<br />
|-<br />
|align=center|[http://www.computercraft.info/2012/07/27/computercraft-1-4-is-released/ ComputerCraft 1.4]<br />
|<br />
*Ported to Forge Mod Loader: ComputerCraft can now be ran directly from the .zip without extraction.<br />
*Added Farming [[Turtle]]s, Felling [[Turtle]]s, Digging [[Turtle]]s, Melee [[Turtle]]s and Crafty [[Turtle]]s.<br />
*Added 14 new [[Turtle]] combinations accessible by combining the turtle upgrades above.<br />
*Labelled [[Computer]]s and [[Turtle]]s can now be crafted into [[Turtle]]s or other [[Turtle]] types without losing their ID, label and data.<br />
*Added a “[[Turtle]] Upgrade API” for mod developers to create their own tools and peripherals for [[Turtle]]s.<br />
*[[Turtle]]s can now attack entities with [[turtle.attack]]() and collect their dropped items.<br />
*[[Turtle]]s can now use [[turtle.place]]() with any item the player can and can interact with entities.<br />
*[[Turtle]]s can now craft items with [[turtle.craft]]().<br />
*[[Turtle]]s can now place items into inventories with [[turtle.drop]]().<br />
*Changed the behaviour of [[turtle.place]]() and [[turtle.drop]]() to only consider the currently selected slot.<br />
*[[Turtle]]s can now pick up items from the ground or from inventories with [[turtle.suck]]().<br />
*[[Turtle]]s can now compare items in their inventories.<br />
*[[Turtle]]s can place signs with text on them with [[turtle.place]]( [signText] ).<br />
*[[Turtle]]s now optionally require fuel items to move, and can [[turtle.refuel|refuel]] themselves.<br />
*The size of the the [[Turtle]] inventory has been increased to 16 slots.<br />
*The size of the [[Turtle]] screen has been increased.<br />
*New [[Turtle_(API)|turtle API]] functions: [[turtle.compareTo]]( [slotNum] ), [[turtle.craft]](), [[turtle.attack]](), [[turtle.attackUp]](), [[turtle.attackDown]](), [[turtle.dropUp]](), [[turtle.dropDown]](), [[turtle.getFuelLevel]](), [[turtle.refuel]]().<br />
*New [[Disk_(API)|disk API]] function: [[disk.getID]]().<br />
*New [[Turtle]] programs: [[craft]], [[refuel]].<br />
*[[Excavate|“excavate”]] program is now much smarter: will return items to a chest when full, attack mobs, and refuel itself automatically.<br />
*New API: [[Keys_(API)|keys]].<br />
*Added optional [[Floppy Disk]] and Hard Drive space limits for [[Computer]]s and [[Turtle]]s.<br />
*New [[Fs_(API)|fs API]] function: [[fs.getFreeSpace]]( path ). Also [[fs.getDrive]]() works again.<br />
*The send and receive range of wireless modems now increases with altitude, allowing long range networking from high-altitude [[Computer]]s (great for GPS networks).<br />
*[[http.request]]() now supports <code>https://</code> URLs.<br />
*Right clicking a [[Disk Drive]] with a [[Floppy Disk]] or a Record when sneaking will insert the item into the [[Disk Drive]] automatically.<br />
*The default size of the [[Computer]] screen has been increased.<br />
*Several stability and security fixes: LuaJ can now no longer leave dangling threads when a [[Computer]] is unloaded, [[Turtle]]s can no longer be destroyed by tree leaves or walking off the edge of the loaded map. [[Computer]]s no longer crash when used with RedPower frames.<br />
|align=center|1.2.5<br />
|-<br />
|align=center|[http://www.computercraft.info/2012/04/23/computercraft-updated-to-1-2-5/ ComputerCraft 1.33]<br />
|<br />
*Ported to Minecraft 1.2.5.<br />
|align=center|1.2.5<br />
|-<br />
|align=center|[http://www.computercraft.info/2012/03/30/computercraft-1-32-out-now/ ComputerCraft 1.32]<br />
|<br />
*Ported to Minecraft 1.2.4.<br />
*Fixed a big memory leak in LuaJ that caused extra threads to stay around forever when [[Computer]]s were shut down.<br />
|align=center|1.2.4<br />
|-<br />
|align=center|[http://www.computercraft.info/2012/03/13/computercraft-1-31-is-released/ ComputerCraft 1.31]<br />
|<br />
*Ported to Minecraft 1.2.3.<br />
*Added [[Monitor]]s (thanks to Cloudy). Build huge external displays for your [[Computer]]s!<br />
*New positioning capabilities for [[Computer]]s and [[Turtle]]s. Build GPS networks and triangulate the positions of your [[Turtle]]'s position so they never get lost!<br />
*New [[turtle.compare]]() function for [[Turtle]]s for more intelligent mining.<br />
*New programs and APIs: [[Gps_(program)|gps]], [[Monitor_(program)|monitor]], [[Vector_(API)|vector API]].<br />
*New program: [[Pastebin_(program)|pastebin]] (requires <code>enableAPI_HTTP=1</code> in [[ComputerCraft.cfg]]), upload and download programs made by other users ingame!<br />
*Added a new top secret program designed for use with [[Monitor]]s, see if you can find it.<br />
*Lots of additions to existing APIs and programs. Type "help whatsnew" in game for full details.<br />
|align=center|1.2.3<br />
|-<br />
|align=center|[http://www.computercraft.info/2012/02/23/computercraft-1-3-trailer/ ComputerCraft 1.3]<br />
|<br />
*Ported to Minecraft Forge.<br />
*Added [[Turtle]]s, Mining [[Turtle]]s, Wireless [[Turtle]]s and Wireless Mining [[Turtle]]s (Block ID 209).<br />
*Added a Peripheral API to allow mod developers to create custom peripherals for ComputerCraft. Details on this will be posted in the next few days.<br />
*Added [[Wireless Modem]]s. Use the [[Rednet_(API)|rednet API]] to send data wirelessly between [[Computer]]s and [[Turtle]]s!<br />
*[[Computer]]s and [[Disk Drive]]s no longer get destroyed by water.<br />
*[[Computer]]s and [[Turtle]]s can now be labelled, destroyed, and moved around, keeping their state.<br />
*[[Computer]]s and [[Turtle]]s can connect to adjacent devices and turn them on or off.<br />
*User programs now give line numbers in their error messages, for easier debugging.<br />
*New APIs and programs for [[Turtle]]s: [[Turtle_(API)|turtle]], [[excavate]], [[tunnel]], [[go]], [[turn]] and [[dance]].<br />
*Lots of additions to existing APIs and programs. Type "help whatsnew" in game for the full details.<br />
|align=center|1.1<br />
|-<br />
|align=center|ComputerCraft 1.21<br />
|<br />
*Added shortcut key to shutdown the computer (CTRL + S).<br />
*Added a [[Help_(API)|help API]] add-on pack.<br />
*Various bug fixes.<br />
|align=center|1.1<br />
|-<br />
|align=center|ComputerCraft 1.2<br />
|<br />
*Added [[Disk Drive]]s.<br />
*Added shortcut keys to terminate the current program (CTRL + T) and reboot the computer (CTRL + R).<br />
*Added [[os.loadAPI|a new system]] for user created APIs.<br />
*Added [[Rednet_(API)|RedNet]].<br />
*Added [[shell.setPath]]() and [[shell.setAlias]]().<br />
*Added a new ROM startup script.<br />
*Added [[os.clock]](), [[os.time]]() and [[os.setAlarm]]().<br />
*Added game: [[Worm|"Worm!"]].<br />
*Added programs: [[alias]], [[apis]], [[copy]], [[delete]], [[dj]], [[drive]], [[eject]], [[id]], [[label]], [[list]], [[move]], [[reboot]], [[redset]], [[rename]], [[time]].<br />
*Added APIs: [[Bit_(API)|bit]], [[Colours_(API)|colours]], [[Disk_(API)|disk]], [[Help_(API)|help]], [[Rednet_(API)|rednet]], [[Parallel_(API)|parallel]], [[Textutils_(API)|textutils]].<br />
*Text can be edited with left and right arrow keys.<br />
*Many bug fixes.<br />
|align=center|1.0<br />
|-<br />
|align=center|ComputerCraft 1.11<br />
|<br />
*Fixed bug where [[Computer]]s could not read input from RedPower cables which had a bend in the immediately adjacent square.<br />
|align=center|1.0<br />
|-<br />
|align=center|ComputerCraft 1.1<br />
|<br />
*Changed the default block ID for the [[Computer]] to 207.<br />
*Added multiplayer support.<br />
*Added connectivity with RedPower bundled cables.<br />
*Added [[HTTP_(API)|HTTP API]].<br />
*Fixed support for HD textures on the front of [[Computer]]s.<br />
*Added command history to the [[Computer]].<br />
*Added [[ComputerCraft.cfg|config]] options to change the size of the [[Computer]] GUI and the text color.<br />
*Programs with infinite loops that don't yield will no longer freeze Minecraft and will terminate after 10 seconds.<br />
*Extended Help and fixed typos/small errors in various programs.<br />
|align=center|1.0<br />
|-<br />
|align=center|ComputerCraft 1.02<br />
|<br />
*Fixed the MCPatcher HD textures incompatibility that was causing the computer texture to replace cobblestone blocks.<br />
|align=center|1.0<br />
|-<br />
|align=center|ComputerCraft 1.01<br />
|<br />
*Added a ModLoader configuration file, so the computers block ID can be changed.<br />
*Made the error message that displays when Lua files are not correctly installed much more clear, no more "Assertion failed."<br />
|align=center|1.0<br />
|-<br />
|align=center|ComputerCraft 1.0<br />
|<br />
*First Release.<br />
|align=center|1.0<br />
|}</div>MKlegoman357http://www.computercraft.info/wiki/index.php?title=Template:Changelog&diff=7384Template:Changelog2016-01-18T13:45:02Z<p>MKlegoman357: </p>
<hr />
<div>{| class="wikitable sortable" style="width: 100%"<br />
! style="width: 15%" | Version<br />
! class="unsortable" | New Features or Changes<br />
! style="width: 15%" | Minecraft Version<br />
|-<br />
|align=center|[http://www.computercraft.info/2016/01/15/computercraft-1-78/ ComputerCraft 1.77 - 1.78]<br />
|<br />
*Ported to Minecraft 1.8.9.<br />
*Added [[Settings_(API)|“settings” API]].<br />
*Added [[set|“set”]] and [[wget|“wget”]] programs.<br />
*Added [[Settings_(API)|settings]] to disable [[multishell]], startup scripts, and tab completion on a per-computer basis. The default values for these settings can be customised in [[ComputerCraft.cfg]].<br />
*All [[Computer]] and [[Turtle]] items except [[Command Computer]]s can now be mounted in [[Disk Drive]]s.<br />
|align=center|1.8.9<br />
|-<br />
|align=center|[http://www.computercraft.info/2015/12/24/computercraft-1-76/ ComputerCraft 1.76]<br />
|<br />
*Ported to Minecraft 1.8.<br />
*Added [[Ender Modem]]s for cross-dimensional communication.<br />
*Fixed handling of 8-bit characters. All the characters in the [https://en.wikipedia.org/wiki/ISO/IEC_8859-1 ISO 8859-1 codepage] can now be displayed.<br />
*Added some extra graphical characters in the unused character positions, including a suite of characters for [http://teletextart.tumblr.com/ Teletext-style drawing].<br />
*Added support for the new commands in Minecraft 1.8 to the [[Command Computer]].<br />
*The return values of [[turtle.inspect]]() and [[commands.getBlockInfo]]() now include blockstate information.<br />
*Added [[commands.getBlockInfos]]() function for Command Computers.<br />
*Added new "[[Peripherals (program)|peripherals]]" program.<br />
*Replaced the "_CC_VERSION" and "_MC_VERSION" constants with a new "_HOST" constant.<br />
*Shortened the length of time that "Ctrl+T", "Ctrl+S" and "Ctrl+R" must be held down to terminate, shutdown or reboot the computer.<br />
*[[textutils.serializeJSON]]() now takes an optional parameter allowing it to produce JSON text with unquoted object keys. This is used by all autogenerated methods in the [[commands (API)|commands API]] except for "title" and "tellraw".<br />
*Fixed many bugs.<br />
|align=center|1.8<br />
|-<br />
|align=center|[http://www.computercraft.info/2015/12/04/computercraft-1-75/ ComputerCraft 1.75]<br />
|<br />
*Fixed monitors sometimes rendering without part of their text.<br />
*Fixed a regression in the [[Bit_(API)|“bit” API]].<br />
|align=center|1.7.10<br />
|-<br />
|align=center|[http://www.computercraft.info/2015/06/27/computercraft-1-74/ ComputerCraft 1.74]<br />
|<br />
*Added tab completion to [[Edit|“edit”]], [[Lua|“lua”]] and the [[shell]].<br />
*Added [[textutils.complete]](), [[fs.complete]](), [[shell.complete]](), [[shell.completeProgram]](), [[shell.setCompletionFunction]](), [[shell.getCompletionInfo]](), and [[help.completeTopic]]().<br />
*Added tab completion options to [[read]]().<br />
*Added [[key_up_(event)|“key_up”]] and [[mouse_up_(event)|“mouse_up”]] events.<br />
*Non-advanced terminals now accept both grey [[Color_(API)|colour]]s.<br />
*Added [[term.getTextColor]](), [[term.getBackgroundColor]]() and [[term.blit]]().<br />
*Improved the performance of text rendering on [[Advanced Computer]]s.<br />
*Added a “Run” button to the [[edit|“edit”]] program on [[Advanced Computer]]s.<br />
*[[Turtle]]s can now push players and entities ([[ComputerCraft.cfg|configurable]]).<br />
*[[Turtle]]s now respect server spawn protection ([[ComputerCraft.cfg|configurable]]).<br />
*Added a turtle permissions API for mod authors.<br />
*Implemented a subset of the Lua 5.2 API so programs can be written against it now, ahead of a future Lua version upgrade.<br />
*Added a [[ComputerCraft.cfg|config option]] to disable parts of the Lua 5.1 API which will be removed when a future Lua version upgrade happens.<br />
*[[Command Computer]]s can no longer be broken by survival players.<br />
*Fixed the “pick block” key not working on ComputerCraft items in creative mode.<br />
*Fixed the [[edit|“edit”]] program being hard to use on certain European keyboards.<br />
*Added “_CC_VERSION” and “_MC_VERSION” constants.<br />
|align=center|1.7.10<br />
|-<br />
|align=center|[http://www.computercraft.info/2015/02/22/computercraft-1-73/ ComputerCraft 1.71 - 1.73]<br />
|<br />
*[CC 1.71] The [[exec|“exec”]] program, [[commands.exec]]() and all related [[Command Computer]] functions now return the console output of the command.<br />
*[CC 1.72 - 1.73] Fixed two multiplayer-only crash bugs when placing certain blocks.<br />
|align=center|1.7.10<br />
|-<br />
|align=center|[http://www.computercraft.info/2015/02/15/computercraft-1-7/ ComputerCraft 1.7]<br />
|<br />
*Added [[Command Computer]]s.<br />
*Added new API: [[commands_(API)|commands]].<br />
*Added new programs: [[commands]], [[exec]].<br />
*Added [[textutils.serializeJSON]]().<br />
*Added ILuaContext.executeMainThreadTask() for peripheral developers.<br />
*[[Disk Drive]]s and [[Printer]]s can now be renamed with Anvils.<br />
*Fixed problems with HD texture packs.<br />
*Fixed various bugs and crashes.<br />
*Documented all the new features in the in-game help system.<br />
|align=center|1.7.10<br />
|-<br />
|align=center|[http://www.computercraft.info/2014/10/09/computercraft-1-65/ ComputerCraft 1.65]<br />
|<br />
*Fixed a multiplayer-only crash with [[turtle.place]]().<br />
*Fixed some problems with [[http.post]]().<br />
*Fixed [[fs.getDrive]]() returning incorrect results on remote peripherals.<br />
|align=center|1.7.10<br />
|-<br />
|align=center|[http://www.computercraft.info/2014/09/27/computercraft-1-64/ ComputerCraft 1.64]<br />
|<br />
*Ported to Minecraft 1.7.10.<br />
*New [[turtle_(API)|turtle API]] functions: [[turtle.inspect]](), [[turtle.inspectUp]](), [[turtle.inspectDown]](), [[turtle.getItemDetail]]().<br />
*Lots of bug fixes and crash fixes, a huge stability improvement over previous versions.<br />
*New [[paintutils_(API)|paintutils API]] functions: [[paintutils.drawBox]]( startX, startY, endX, endY [, color] ), [[paintutils.drawFilledBox]]( startX, startY, endX, endY [, color] ).<br />
|align=center|1.7.10<br />
|-<br />
|align=center|[http://www.computercraft.info/2014/04/16/computercraft-1-63/ ComputerCraft 1.63]<br />
|<br />
*[[Turtle]]s can now be painted with dyes, and cleaned with water buckets.<br />
*Added a new game: [[Redirection]] – ComputerCraft Edition by [http://www.computercraft.info/forums2/index.php?/user/16414-ramilego4game/ RamiLego] (type “redirection” on an Advanced Computer to play).<br />
*[[Turtle]] label nameplates now only show when the [[Turtle]] is moused-over.<br />
*The HTTP API is now enabled by default, and can be configured with a whitelist of permitted domains.<br />
*[[http.get]]() and [[http.post]]() now accept parameters to control the request headers.<br />
*New [[Fs_(API)|fs API]] function: [[fs.getDir]]( path ).<br />
*Fixed some bugs.<br />
|align=center|1.6.4<br />
|-<br />
|align=center|[http://www.computercraft.info/2014/04/04/computercraft-1-62/ ComputerCraft 1.62]<br />
|<br />
*Fixed some bugs which were crashing the game.<br />
*[[Chat]] now supports IRC commands.<br />
|align=center|1.6.4<br />
|-<br />
|align=center|[http://www.computercraft.info/2014/04/01/computercraft-1-61-bug-fix-update/ ComputerCraft 1.61]<br />
|<br />
*Fixed a bug where newly placed [[Computer]]s would share their folder structure until game restart.<br />
*Fixed a bug where running [[Computer]]s might not automatically restart as the game did so.<br />
|align=center|1.6.4<br />
|-<br />
|align=center|[http://www.computercraft.info/2014/03/27/computercraft-1-6-is-here/ ComputerCraft 1.6]<br />
|<br />
*Added [[Pocket Computer]]s.<br />
*Added a [[Multishell|multi-tasking system]] for [[Advanced Computer]]s and [[Turtle]]s.<br />
*[[Turtle]]s can now [[Equip|swap out their tools and peripherals]] at runtime.<br />
*[[Turtle]]s can now carry two tools or peripherals at once in any combination.<br />
*[[Turtle]]s and [[Computer]]s can now be labelled using Name Tags and Anvils.<br />
*Added a [[ComputerCraft.cfg|configurable fuel limit]] for [[Turtle]]s.<br />
*Added hostnames, protocols and long distance routing to the [[Rednet (API)|rednet API]].<br />
*Added a peer-to-peer [[chat]] program to demonstrate new rednet capabilities.<br />
*Added a new game, only on [[Pocket Computer]]s: “[[falling]]” by [http://www.computercraft.info/forums2/index.php?/user/3545-gopheratl/ GopherATL].<br />
*File system commands in the shell now accept wildcard arguments.<br />
*The shell now accepts long arguments in quotes.<br />
*[[term.redirect|Terminal redirection]] now no longer uses a stack-based system. Instead: [[term.current]]() gets the current terminal object and [[term.redirect]]() replaces it. [[term.restore]]() has been removed.<br />
*Added a new [[Window (API)|Windowing API]] for addressing sub-areas of the terminal.<br />
*New programs: [[fg]], [[bg]], [[multishell]], [[chat]], [[repeat]], [[Redstone (program)|redstone]], [[equip]], [[unequip]].<br />
*Improved programs: [[copy]], [[move]], [[delete]], [[rename]], [[paint]], [[CraftOS|shell]].<br />
*Removed programs: redset, redprobe, redpulse.<br />
*New [[:Category:APIs|APIs]]: [[Window (API)|window]], [[Multishell (API)|multishell]].<br />
*New [[Turtle (API)|turtle API]] functions: [[turtle.equipLeft]](), [[turtle.equipRight]](), [[turtle.getFuelLimit]](), [[turtle.getSelectedSlot]]().<br />
*New [[Peripheral (API)|peripheral API]] functions: [[peripheral.find]]( [type] ).<br />
*New [[Rednet (API)|rednet API]] functions: [[rednet.host]]( protocol, hostname ), [[rednet.unhost]]( protocol ), [[rednet.lookup]]( protocol, [hostname] ).<br />
*Improved [[Rednet (API)|rednet API]] functions: [[rednet.send]](), [[rednet.broadcast]]() and [[rednet.receive]]() now take optional protocol parameters.<br />
*New [[fs (API)|fs API]] function: [[fs.find]]( wildcard ).<br />
*New [[Shell (API)|shell API]] functions: [[shell.openTab]]( command ), [[shell.switchTab]]( number ).<br />
*New event “[[Term_resize_(event)|term_resize]]” fired when the size of a terminal changes.<br />
*[[turtle.craft]](0) and [[turtle.refuel]](0) now return true if there is a valid recipe or fuel item, but do not craft or refuel anything.<br />
*[[turtle.suck]]( [limit] ) can now be used to limit the number of items picked up.<br />
*Users of [[turtle.dig]]() and [[turtle.attack]]() can now specify which side of the turtle to look for a tool to use (by default, both will be considered).<br />
*[[textutils.serialize]]() now produces human-readable output.<br />
*Refactored most of the codebase and fixed many old bugs and instabilities, [[Turtle]]s should never ever lose their content now.<br />
*Fixed the “[[turtle_inventory_(event)|turtle_inventory]]” event firing when it shouldn’t have.<br />
*Added error messages to many more [[Turtle_(API)|turtle API]] functions after they return false.<br />
*Documented all new programs and API changes in the “[[help]]” system.<br />
|align=center|1.6.4<br />
|-<br />
|align=center|[http://www.computercraft.info/2013/12/09/computercraft-1-58/ ComputerCraft 1.58]<br />
|<br />
*Fixed a long standing bug where [[Turtle]]s could lose their identity.<br />
*Fixed use of deprecated code, ensuring mod compatibility with the latest versions of Minecraft Forge and world compatibility with future versions of Minecraft.<br />
|align=center|1.6.4<br />
|-<br />
|align=center|[http://www.computercraft.info/2013/10/14/new-versions/ ComputerCraft 1.57]<br />
|<br />
*Ported to Minecraft 1.6.4.<br />
*Added two new [[Treasure Disks]]: Conway’s Game of Life by [http://www.computercraft.info/forums2/index.php?/user/1823-vilsol/ vilsol] and Protector by [http://www.computercraft.info/forums2/index.php?/user/6929-fredthead/ fredthead].<br />
*Fixed a very nasty item duplication bug.<br />
|align=center|1.6.4<br />
|-<br />
|align=center|[http://www.computercraft.info/2013/08/04/computercraft-1-56/ ComputerCraft 1.56]<br />
|<br />
*Added [[Treasure Disks]]: Rare [[Floppy Disk]]s found only in dungeons, which contain fun programs made by the community. Find them all!<br />
*All [[Turtle_(API)|turtle API]] functions now return additional error messages when they fail.<br />
*Resource Packs with Lua Programs can now be loaded when extracted to a folder, for easier editing.<br />
|align=center|1.6.2<br />
|-<br />
|align=center|[http://www.computercraft.info/2013/07/11/computercraft-1-55/ Computercraft 1.55]<br />
|<br />
*Ported to Minecraft 1.6.2.<br />
*Added [[Advanced Turtle]]s.<br />
*Added [[turtle_inventory_(event)|“turtle_inventory”]] event. Fires when any change is made to the inventory of a [[Turtle]].<br />
*Added missing [[IO_(API)|io API]] functions: io.close, io.flush, io.input, io.lines, io.output.<br />
*Tweaked the screen colours used by [[Advanced Computer]]s, [[Advanced Monitor]]s and [[Advanced Turtle]]s.<br />
*Added several new features for Peripheral authors.<br />
*Lua programs can now be included in Resource Packs.<br />
|align=center|1.6.2<br />
|-<br />
|align=center|[http://www.computercraft.info/2013/05/23/computercraft-1-53/ ComputerCraft 1.53]<br />
|<br />
*Ported to Minecraft 1.5.2.<br />
*[[redstone.setBundledOutput]]() and [[redstone.getBundledOutput]]() now work with cables from Minefactory Reloaded, as well as RedPower.<br />
*[[Monitor]]s and [[Advanced Monitor]]s can now be placed on floors and ceilings.<br />
|align=center|1.5.2<br />
|-<br />
|align=center|[http://www.computercraft.info/2013/03/26/computercraft-1-52/ Computercraft 1.52]<br />
|<br />
*Ported to Minecraft 1.5.1.<br />
|align=center|1.5.1<br />
|-<br />
|align=center|[http://www.computercraft.info/2013/03/15/computercraft-1-51/ Computercraft 1.51]<br />
|<br />
*Ported to Minecraft 1.5.<br />
*Added [[Wired Modem]]s.<br />
*Added [[Networking Cable]]s.<br />
*Made [[Wireless Modem]]s more expensive to craft.<br />
*New [[redstone_(API)|redstone API]] functions: [[redstone.getAnalogInput]](), [[redstone.setAnalogOutput]](), [[redstone.getAnalogOutput]]().<br />
*Peripherals can now be controlled remotely over wired networks.<br />
*New [[peripheral_(API)|peripheral API]] function: [[peripheral.getNames]]().<br />
*New event: [[monitor_resize_(event)|“monitor_resize”]]is fired when the size of a monitor changes.<br />
*Except for labelled [[Computer]]s and [[Turtle]]s, ComputerCraft blocks no longer drop items in creative mode.<br />
*The pick block function works in creative mode now works for all ComputerCraft blocks.<br />
*All blocks and items now use the IDs numbers assigned by FTB by default.<br />
*Fixed [[Turtle]]s sometimes placing blocks with incorrect orientations.<br />
*Fixed [[Wireless Modem]]s being able to send messages to themselves.<br />
*Fixed [[turtle.attack]]() having a very short range.<br />
*Various bugfixes.<br />
|align=center|1.5<br />
|-<br />
|align=center|[http://www.computercraft.info/2013/02/11/computercraft-1-5/ Computercraft 1.5]<br />
|<br />
*Redesigned [[Wireless Modem]]s; they can now send and receive on multiple channels, independent of the computer ID. To use these features, interface with modem peripherals [[Modem_(API)|directly]]. The [[Rednet_(API)|rednet API]] still functions as before.<br />
*[[Floppy Disk]]s can now be dyed with multiple dyes, just like armour.<br />
*The [[Excavate|“excavate”]] program now retains fuel in it’s inventory, so can run unattended.<br />
*[[turtle.place]]() now tries all possible block orientations before failing.<br />
*[[turtle.refuel]](0) returns true if a fuel item is selected.<br />
*[[turtle.craft]](0) returns true if the inventory is a valid recipe.<br />
*The in-game help system now has documentation for all the peripherals and their methods, including the new [[Modem]] functionality.<br />
*A romantic surprise.<br />
|align=center|1.4.7<br />
|-<br />
|align=center|[http://www.computercraft.info/2012/12/27/computercraft-1-481-miscperipherals-fix/ Computercraft 1.481]<br />
|<br />
*Fixed compatibility bug with MiscPeripherals.<br />
|align=center|1.4.6<br />
|-<br />
|align=center|[http://www.computercraft.info/2012/12/23/computercraft-1-48/ Computercraft 1.48]<br />
|<br />
*Ported to Minecraft 1.4.6.<br />
*[[Advanced Monitor]]s can now be used as touchscreens.<br />
*[[Advanced Monitor]]s are now easier to craft.<br />
*[[Turtle]]s now get slightly less movement from fuel.<br />
*[[Turtle]]s can now push items.<br />
*[[Computer]]s can now [[Command_Block_(API)|control Command Blocks]], if enabled in the [[ComputerCraft.cfg|config]].<br />
*New [[OS_(API)|os API]] function: [[os.day]]().<br />
*A Christmas surprise.<br />
|align=center|1.4.6<br />
|-<br />
|align=center|[http://www.computercraft.info/2012/11/15/computercraft-1-47-and-minecon-news/ ComputerCraft 1.47]<br />
|<br />
*Ported to Minecraft 1.4.4.<br />
*Fixed label tooltips not showing up in SMP.<br />
|align=center|1.4.4<br />
|-<br />
|align=center|[http://www.computercraft.info/2012/10/25/computercraft-1-46-minecraft-update/ ComputerCraft 1.46]<br />
|<br />
*Ported to Minecraft 1.4.2.<br />
*ComputerCraft items now have their own tab in Creative Mode.<br />
|align=center|1.4.2<br />
|-<br />
|align=center|[http://www.computercraft.info/2012/10/22/computercraft-1-45-now-with-colors/ ComputerCraft 1.45]<br />
|<br />
*Added [[Advanced Computer]]s.<br />
*Added [[Advanced Monitor]]s.<br />
*New program: [[paint]] (by [http://www.computercraft.info/forums2/index.php?/user/643-nitrogenfingers/ nitrogenfingers]).<br />
*New API: [[paintutils_(API)|paintutils]].<br />
*New term functions: [[term.setBackgroundColor]]( color ), [[term.setTextColor]]( color ), [[term.isColor]]().<br />
*New [[Turtle|Turtle API]] function: [[turtle.transferTo]]().<br />
|align=center|1.3.2<br />
|-<br />
|align=center|[http://www.computercraft.info/2012/10/04/computercraft-1-43-books/ ComputerCraft 1.43]<br />
|<br />
*Added [[Printed Page]]s (bind several [[Printed Page]] items into one with a string).<br />
*Added [[Printed_book|Printed Books]] (add a leather cover to the above).<br />
*Labelled [[Turtle]]s now keep their fuel when broken.<br />
*Fixed incompatibility with Forge 275 and above.<br />
|align=center|1.3.2<br />
|-<br />
|align=center|[http://www.computercraft.info/2012/09/22/computercraft-1-42-is-released/ ComputerCraft 1.42]<br />
|<br />
*Ported to Minecraft 1.3.2 and the Forge mod system.<br />
*Added [[Printer]]s.<br />
*[[Floppy Disk]]s can now be dyed different colours.<br />
*[[Turtle|Wireless Crafty Turtles]] can now be crafted.<br />
*All new textures.<br />
*New Forge [[ComputerCraft.cfg|config file]].<br />
*Various tweaks and bug fixes.<br />
|align=center|1.3.2<br />
|-<br />
|align=center|[http://www.computercraft.info/2012/07/29/computercraft-1-41-bugfix-update/ ComputerCraft 1.41]<br />
|<br />
*Fixed labelled [[Computer]]s not keeping their data when destroyed.<br />
*Fixed the [[Excavate|“excavate”]] program outputting lots of spam.<br />
*File system size limits now take into account empty files and directories.<br />
*Some small changes to the Turtle Upgrade API ahead of it’s impending release. (Update: The API has now been released).<br />
|align=center|1.2.5<br />
|-<br />
|align=center|[http://www.computercraft.info/2012/07/27/computercraft-1-4-is-released/ ComputerCraft 1.4]<br />
|<br />
*Ported to Forge Mod Loader: ComputerCraft can now be ran directly from the .zip without extraction.<br />
*Added Farming [[Turtle]]s, Felling [[Turtle]]s, Digging [[Turtle]]s, Melee [[Turtle]]s and Crafty [[Turtle]]s.<br />
*Added 14 new [[Turtle]] combinations accessible by combining the turtle upgrades above.<br />
*Labelled [[Computer]]s and [[Turtle]]s can now be crafted into [[Turtle]]s or other [[Turtle]] types without losing their ID, label and data.<br />
*Added a “[[Turtle]] Upgrade API” for mod developers to create their own tools and peripherals for [[Turtle]]s.<br />
*[[Turtle]]s can now attack entities with [[turtle.attack]]() and collect their dropped items.<br />
*[[Turtle]]s can now use [[turtle.place]]() with any item the player can and can interact with entities.<br />
*[[Turtle]]s can now craft items with [[turtle.craft]]().<br />
*[[Turtle]]s can now place items into inventories with [[turtle.drop]]().<br />
*Changed the behaviour of [[turtle.place]]() and [[turtle.drop]]() to only consider the currently selected slot.<br />
*[[Turtle]]s can now pick up items from the ground or from inventories with [[turtle.suck]]().<br />
*[[Turtle]]s can now compare items in their inventories.<br />
*[[Turtle]]s can place signs with text on them with [[turtle.place]]( [signText] ).<br />
*[[Turtle]]s now optionally require fuel items to move, and can [[turtle.refuel|refuel]] themselves.<br />
*The size of the the [[Turtle]] inventory has been increased to 16 slots.<br />
*The size of the [[Turtle]] screen has been increased.<br />
*New [[Turtle_(API)|turtle API]] functions: [[turtle.compareTo]]( [slotNum] ), [[turtle.craft]](), [[turtle.attack]](), [[turtle.attackUp]](), [[turtle.attackDown]](), [[turtle.dropUp]](), [[turtle.dropDown]](), [[turtle.getFuelLevel]](), [[turtle.refuel]]().<br />
*New [[Disk_(API)|disk API]] function: [[disk.getID]]().<br />
*New [[Turtle]] programs: [[craft]], [[refuel]].<br />
*[[Excavate|“excavate”]] program is now much smarter: will return items to a chest when full, attack mobs, and refuel itself automatically.<br />
*New API: [[Keys_(API)|keys]].<br />
*Added optional [[Floppy Disk]] and Hard Drive space limits for [[Computer]]s and [[Turtle]]s.<br />
*New [[Fs_(API)|fs API]] function: [[fs.getFreeSpace]]( path ). Also [[fs.getDrive]]() works again.<br />
*The send and receive range of wireless modems now increases with altitude, allowing long range networking from high-altitude [[Computer]]s (great for GPS networks).<br />
*[[http.request]]() now supports <code>https://</code> URLs.<br />
*Right clicking a [[Disk Drive]] with a [[Floppy Disk]] or a Record when sneaking will insert the item into the [[Disk Drive]] automatically.<br />
*The default size of the [[Computer]] screen has been increased.<br />
*Several stability and security fixes: LuaJ can now no longer leave dangling threads when a [[Computer]] is unloaded, [[Turtle]]s can no longer be destroyed by tree leaves or walking off the edge of the loaded map. [[Computer]]s no longer crash when used with RedPower frames.<br />
|align=center|1.2.5<br />
|-<br />
|align=center|[http://www.computercraft.info/2012/04/23/computercraft-updated-to-1-2-5/ ComputerCraft 1.33]<br />
|<br />
*Ported to Minecraft 1.2.5.<br />
|align=center|1.2.5<br />
|-<br />
|align=center|[http://www.computercraft.info/2012/03/30/computercraft-1-32-out-now/ ComputerCraft 1.32]<br />
|<br />
*Ported to Minecraft 1.2.4.<br />
*Fixed a big memory leak in LuaJ that caused extra threads to stay around forever when [[Computer]]s were shut down.<br />
|align=center|1.2.4<br />
|-<br />
|align=center|[http://www.computercraft.info/2012/03/13/computercraft-1-31-is-released/ ComputerCraft 1.31]<br />
|<br />
*Ported to Minecraft 1.2.3.<br />
*Added [[Monitor]]s (thanks to Cloudy). Build huge external displays for your [[Computer]]s!<br />
*New positioning capabilities for [[Computer]]s and [[Turtle]]s. Build GPS networks and triangulate the positions of your [[Turtle]]'s position so they never get lost!<br />
*New [[turtle.compare]]() function for [[Turtle]]s for more intelligent mining.<br />
*New programs and APIs: [[Gps_(program)|gps]], [[Monitor_(program)|monitor]], [[Vector_(API)|vector API]].<br />
*New program: [[Pastebin_(program)|pastebin]] (requires <code>enableAPI_HTTP=1</code> in [[ComputerCraft.cfg]]), upload and download programs made by other users ingame!<br />
*Added a new top secret program designed for use with [[Monitor]]s, see if you can find it.<br />
*Lots of additions to existing APIs and programs. Type "help whatsnew" in game for full details.<br />
|align=center|1.2.3<br />
|-<br />
|align=center|[http://www.computercraft.info/2012/02/23/computercraft-1-3-trailer/ ComputerCraft 1.3]<br />
|<br />
*Ported to Minecraft Forge.<br />
*Added [[Turtle]]s, Mining [[Turtle]]s, Wireless [[Turtle]]s and Wireless Mining [[Turtle]]s (Block ID 209).<br />
*Added a Peripheral API to allow mod developers to create custom peripherals for ComputerCraft. Details on this will be posted in the next few days.<br />
*Added [[Wireless Modem]]s. Use the [[Rednet_(API)|rednet API]] to send data wirelessly between [[Computer]]s and [[Turtle]]s!<br />
*[[Computer]]s and [[Disk Drive]]s no longer get destroyed by water.<br />
*[[Computer]]s and [[Turtle]]s can now be labelled, destroyed, and moved around, keeping their state.<br />
*[[Computer]]s and [[Turtle]]s can connect to adjacent devices and turn them on or off.<br />
*User programs now give line numbers in their error messages, for easier debugging.<br />
*New APIs and programs for [[Turtle]]s: [[Turtle_(API)|turtle]], [[excavate]], [[tunnel]], [[go]], [[turn]] and [[dance]].<br />
*Lots of additions to existing APIs and programs. Type "help whatsnew" in game for the full details.<br />
|align=center|1.1<br />
|-<br />
|align=center|ComputerCraft 1.21<br />
|<br />
*Added shortcut key to shutdown the computer (CTRL + S).<br />
*Added a [[Help_(API)|help API]] add-on pack.<br />
*Various bug fixes.<br />
|align=center|1.1<br />
|-<br />
|align=center|ComputerCraft 1.2<br />
|<br />
*Added [[Disk Drive]]s.<br />
*Added shortcut keys to terminate the current program (CTRL + T) and reboot the computer (CTRL + R).<br />
*Added [[os.loadAPI|a new system]] for user created APIs.<br />
*Added [[Rednet_(API)|RedNet]].<br />
*Added [[shell.setPath]]() and [[shell.setAlias]]().<br />
*Added a new ROM startup script.<br />
*Added [[os.clock]](), [[os.time]]() and [[os.setAlarm]]().<br />
*Added game: [[Worm|"Worm!"]].<br />
*Added programs: [[alias]], [[apis]], [[copy]], [[delete]], [[dj]], [[drive]], [[eject]], [[id]], [[label]], [[list]], [[move]], [[reboot]], [[redset]], [[rename]], [[time]].<br />
*Added APIs: [[Bit_(API)|bit]], [[Colours_(API)|colours]], [[Disk_(API)|disk]], [[Help_(API)|help]], [[Rednet_(API)|rednet]], [[Parallel_(API)|parallel]], [[Textutils_(API)|textutils]].<br />
*Text can be edited with left and right arrow keys.<br />
*Many bug fixes.<br />
|align=center|1.0<br />
|-<br />
|align=center|ComputerCraft 1.11<br />
|<br />
*Fixed bug where [[Computer]]s could not read input from RedPower cables which had a bend in the immediately adjacent square.<br />
|align=center|1.0<br />
|-<br />
|align=center|ComputerCraft 1.1<br />
|<br />
*Changed the default block ID for the [[Computer]] to 207.<br />
*Added multiplayer support.<br />
*Added connectivity with RedPower bundled cables.<br />
*Added [[HTTP_(API)|HTTP API]].<br />
*Fixed support for HD textures on the front of [[Computer]]s.<br />
*Added command history to the [[Computer]].<br />
*Added [[ComputerCraft.cfg|config]] options to change the size of the [[Computer]] GUI and the text color.<br />
*Programs with infinite loops that don't yield will no longer freeze Minecraft and will terminate after 10 seconds.<br />
*Extended Help and fixed typos/small errors in various programs.<br />
|align=center|1.0<br />
|-<br />
|align=center|ComputerCraft 1.02<br />
|<br />
*Fixed the MCPatcher HD textures incompatibility that was causing the computer texture to replace cobblestone blocks.<br />
|align=center|1.0<br />
|-<br />
|align=center|ComputerCraft 1.01<br />
|<br />
*Added a ModLoader configuration file, so the computers block ID can be changed.<br />
*Made the error message that displays when Lua files are not correctly installed much more clear, no more "Assertion failed."<br />
|align=center|1.0<br />
|-<br />
|align=center|ComputerCraft 1.0<br />
|<br />
*First Release.<br />
|align=center|1.0<br />
|}</div>MKlegoman357http://www.computercraft.info/wiki/index.php?title=Template:Version&diff=7383Template:Version2016-01-18T13:44:00Z<p>MKlegoman357: </p>
<hr />
<div><!-- ATTENTION WIKI-ENS. Please use the following template for this page:<br />
{{version/row|%VERSION%|%MCVERSION%|%DATE%|type=%TYPE%|link=%LINK%}}<br />
%TYPE% values:<br />
* beta<br />
* latest<br />
* gray (every other for alternating cell pattern)<br />
Only set %LINK% to the ending link if the generated one is incorrect (set to the part of the link after the domain)<br />
--><br />
<table style="width:100%"><br />
{{version/row|1.78|1.8.9 |2016/01/15|type=latest}}<br />
{{version/row|1.76|1.8 |2015/12/24}}<br />
{{version/row|1.75|1.7.10|2015/12/04|type=gray}}<br />
{{version/row|1.74|1.7.10|2015/06/27}}<br />
{{version/row|1.73|1.7.10|2015/02/22|type=gray}}<br />
<noinclude> <!-- 6 newest releases should be enough --><br />
{{version/row|1.7 |1.7.10|2015/02/15}}<br />
{{version/row|1.65|1.7.10|2014/10/09|type=gray}}<br />
{{version/row|1.64|1.7.10|2014/09/27}}<br />
{{version/row|1.63|1.6.4|2014/04/16|type=gray}}<br />
{{version/row|1.62|1.6.4|2014/04/04}}<br />
{{version/row|1.61|1.6.4|link=2014/04/01/computercraft-1-61-bug-fix-update|type=gray}}<br />
{{version/row|1.6 |1.6.4|link=2014/03/27/computercraft-1-6-is-here}}<br />
{{version/row|1.58|1.6.4|2013/12/09|type=gray}}<br />
{{version/row|1.57|1.6.4|link=2013/10/14/new-versions}}<br />
{{version/row|1.56|1.6.2|2013/08/04|type=gray}}<br />
{{version/row|1.55|1.6.2|2013/07/11}}<br />
{{version/row|1.53|1.5.2|2013/05/23|type=gray}}<br />
{{version/row|1.52|1.5.1|2013/03/26}}<br />
{{version/row|1.51|1.5 |2013/03/15|type=gray}}<br />
{{version/row|1.5 |1.4.7|2013/02/11}}<br />
</noinclude><br />
</table><br />
<center>'''[[Changelog]]'''</center></div>MKlegoman357http://www.computercraft.info/wiki/index.php?title=Template:News&diff=7382Template:News2016-01-18T13:43:27Z<p>MKlegoman357: </p>
<hr />
<div>'''January 15, 2016'''<br />
* ComputerCraft 1.77 - 1.78 is released for Minecraft '''1.8.9'''.<br />
'''December 24, 2015'''<br />
* ComputerCraft 1.76 is released for Minecraft '''1.8'''.<br />
'''December 4, 2015'''<br />
* ComputerCraft 1.75 is released as a final bug fix update for Minecraft '''1.7.10'''.<br />
'''June 27, 2015'''<br />
* ComputerCraft 1.74 is released for Minecraft '''1.7.10'''.<br />
<noinclude><!-- Only display latest four events.--><br />
'''February 24-25, 2015'''<br />
* ComputerCraft 1.72 - 1.73 is released to fix multiplayer-only crashes.<br />
'''February 23, 2015'''<br />
* ComputerCraft 1.71 is released for Minecraft '''1.7.10'''.<br />
'''February 15, 2015'''<br />
* ComputerCraft 1.7 is released for Minecraft '''1.7.10'''.<br />
'''October 09, 2014'''<br />
* ComputerCraft 1.65 is released as a bug fix update for ComputerCraft 1.64.<br />
'''September 27, 2014'''<br />
* ComputerCraft 1.64 is released for Minecraft '''1.7.10'''.<br />
'''April 16, 2014'''<br />
* ComputerCraft 1.63 is released for Minecraft '''1.6.4'''.<br />
'''April 4, 2014'''<br />
* ComputerCraft 1.62 is released to fix game crashes.<br />
'''April 1, 2014'''<br />
* ComputerCraft 1.61 is released as a bug fix update for ComputerCraft 1.6.<br />
'''March 27, 2014'''<br />
* ComputerCraft 1.6 is released for Minecraft '''1.6.4'''.<br />
'''December 9, 2013'''<br />
* ComputerCraft 1.58 is released for Minecraft '''1.6.4'''.<br />
'''October 14, 2013'''<br />
* ComputerCraft 1.57 is released for Minecraft '''1.6.4'''.<br />
'''August 4, 2013'''<br />
* ComputerCraft 1.56 is released for Minecraft '''1.6.2'''.<br />
'''July 11, 2013'''<br />
* ComputerCraft 1.55 is released for Minecraft '''1.6.2'''.<br />
'''May 23, 2013'''<br />
* ComputerCraft 1.53 is released for Minecraft '''1.5.2'''.<br />
'''March 26, 2013'''<br />
* ComputerCraft 1.52 is released for Minecraft '''1.5.1'''.<br />
'''February 11, 2013'''<br />
* ComputerCraft 1.5 is released for Minecraft '''1.4.7'''.<br />
'''December 27, 2012'''<br />
* ComputerCraft 1.481 is released as a quick hotfix for MiscPeripherals.<br />
</noinclude></div>MKlegoman357http://www.computercraft.info/wiki/index.php?title=Settings_(API)&diff=7378Settings (API)2016-01-15T22:12:56Z<p>MKlegoman357: Created page with "{{lowercase}} The '''settings API''' allows to store values and save them to a file for persistent configurations for your and CraftOS programs. The default file for saving se..."</p>
<hr />
<div>{{lowercase}}<br />
The '''settings API''' allows to store values and save them to a file for persistent configurations for your and CraftOS programs. The default file for saving settings is <var>.settings</var> sitting in the root of the computer. Settings can also be changed and added to all computers through [[ComputerCraft.cfg]]'s <var>S:default_computer_settings</var> value.<br />
<br />
{{API table|settings|image=Grid_disk.png|2=<br />
<br />
{{API table/row<br />
|[[settings.set]]({{type|string}} name, {{type|any}} value)<br />
|{{type|nil}}<br />
|Sets the setting <var>name</var> to <var>value</var>.<br />
|odd}}<br />
<br />
{{API table/row<br />
|[[settings.get]]({{type|string}} name [, {{type|any}} default])<br />
|{{type|any}} value<br />
|Returns the setting's <var>name</var> value, or <var>default</var> if the setting does not exist.}}<br />
<br />
{{API table/row<br />
|[[settings.unset]]({{type|string}} name)<br />
|{{type|nil}}<br />
|Removes the setting <var>name</var>.<br />
|odd}}<br />
<br />
{{API table/row<br />
|[[settings.clear]]()<br />
|{{type|nil}}<br />
|Removes all settings.}}<br />
<br />
{{API table/row<br />
|[[settings.getNames]]()<br />
|{{type|table}} settingNames<br />
|Returns a numerically-indexed table of all the setting's names.<br />
|odd}}<br />
<br />
{{API table/row<br />
|[[settings.load]]({{type|string}} path)<br />
|{{type|boolean}} loaded<br />
|Loads settings from a file.}}<br />
<br />
{{API table/row<br />
|[[settings.save]]({{type|string}} path)<br />
|{{type|boolean}} saved<br />
|Saves current settings to a file.<br />
|odd}}<br />
<br />
}}<br />
<br />
[[Category:APIs]]<br />
<br />
==Notes==<br />
* Settings are '''not''' automatically saved to a file, you have to do this [[settings.save|manually]].<br />
* Setting's names can only be of type {{type|string}}.<br />
* Setting's values can only be [[textutils.serialize|serializable]] types: {{type|string}}, {{type|number}}, {{type|boolean}} or {{type|table}}.<br />
<br />
==Default Settings==<br />
These are the default settings of a computer (as seen in CC 1.77)<br />
<br />
<pre><br />
{<br />
[ "bios.use_multishell" ] = true,<br />
[ "shell.autocomplete" ] = true,<br />
[ "shell.allow_disk_startup" ] = false,<br />
[ "shell.allow_startup" ] = true,<br />
[ "lua.autocomplete" ] = true,<br />
[ "list.show_hidden" ] = false,<br />
[ "edit.autocomplete" ] = true,<br />
}<br />
</pre><br />
<br />
*'''<var>shell.autocomplete</var>''' - enables auto-completion in the [[Shell]].<br />
*'''<var>lua.autocomplete</var>''' - enables auto-completion in the [[Lua]] program.<br />
*'''<var>edit.autocomplete</var>''' - enables auto-completion in the [[Edit]] program.<br />
*'''<var>bios.use_multishell</var>''' - enables [[Multishell]] on [[Advanced Computer]]s, [[Advanced Turtle|Turtles]], [[Advanced Pocket Computer|Pocket Computers]] and [[Command Computer]]s.<br />
*'''<var>shell.allow_disk_startup</var>''' - if a [[Disk Drive]] with a [[Disk]] inside that has a 'startup' script is attached to a computer, this setting allows to automatically run that script when the computer starts.<br />
*'''<var>shell.allow_startup</var>''' - if there is a 'startup' script in a computer's root, this setting allow to automatically run that script when the computer runs.<br />
*'''<var>list.show_hidden</var>''' - determines, whether the [[List]] program will list hidden files or not.<br />
<br />
==ComputerCraft.cfg==<br />
You can change or add default settings for all computers through [[ComputerCraft.cfg]]. The format is as follows:<br />
* each setting is separated by a comma (<var>,</var>)<br />
* setting's name and value is separated by an equals sign (<var>=</var>)<br />
<br />
This example will disable auto-completion features in the default programs.<br />
<pre><br />
S:default_computer_settings=shell.autocomplete=false,lua.autocomplete=false,edit.autocomplete=false<br />
</pre></div>MKlegoman357http://www.computercraft.info/wiki/index.php?title=ComputerCraft.cfg&diff=7377ComputerCraft.cfg2016-01-15T21:45:03Z<p>MKlegoman357: Updated to CC 1.77</p>
<hr />
<div>This is an example of the default ComputerCraft configuration file, as it's seen in version 1.77.<br />
<pre><br />
# Configuration file<br />
<br />
general {<br />
# The fuel limit for Advanced Turtles<br />
I:advancedTurtleFuelLimit=100000<br />
<br />
# The disk space limit for computers and turtles, in bytes<br />
I:computerSpaceLimit=1000000<br />
<br />
# A comma seperated list of default system settings to set on new computers. Example: "shell.autocomplete=false,lua.autocomplete=false,edit.autocomplete=false" will disable all autocompletion<br />
S:default_computer_settings=<br />
<br />
# Set this to true to disable Lua 5.1 functions that will be removed in a future update. Useful for ensuring forward compatibility of your programs now.<br />
B:disable_lua51_features=false<br />
<br />
# Enable Command Block peripheral support<br />
B:enableCommandBlock=false<br />
<br />
# The disk space limit for floppy disks, in bytes<br />
I:floppySpaceLimit=125000<br />
<br />
# Enable the "http" API on Computers (see "http_whitelist" for more fine grained control than this)<br />
B:http_enable=true<br />
<br />
# A semicolon limited list of wildcards for domains that can be accessed through the "http" API on Computers. Set this to "*" to access to the entire internet. Example: "*.pastebin.com;*.github.com;*.computercraft.info" will restrict access to just those 3 domains.<br />
S:http_whitelist=*<br />
<br />
# The range of Wireless Modems at maximum altitude in clear weather, in meters<br />
I:modem_highAltitudeRange=384<br />
<br />
# The range of Wireless Modems at maximum altitude in stormy weather, in meters<br />
I:modem_highAltitudeRangeDuringStorm=384<br />
<br />
# The range of Wireless Modems at low altitude in clear weather, in meters<br />
I:modem_range=64<br />
<br />
# The range of Wireless Modems at low altitude in stormy weather, in meters<br />
I:modem_rangeDuringStorm=64<br />
<br />
# The frequency that treasure disks will be found in dungeon chests, from 0 to 100. Increase this value if running a modpack with lots of mods that add dungeon loot, or you just want more treasure disks. Set to 0 to disable treasure disks.<br />
I:treasureDiskLootFrequency=1<br />
<br />
# The fuel limit for Turtles<br />
I:turtleFuelLimit=20000<br />
<br />
# If set to true, Turtles will push entities out of the way instead of stopping if there is space to do so<br />
B:turtlesCanPush=true<br />
<br />
# Set whether Turtles require fuel to move<br />
B:turtlesNeedFuel=true<br />
<br />
# If set to true, Turtles will be unable to build, dig, or enter protected areas (such as near the server spawn point)<br />
B:turtlesObeyBlockProtection=true<br />
}<br />
</pre></div>MKlegoman357http://www.computercraft.info/wiki/index.php?title=Template:Changelog&diff=7376Template:Changelog2016-01-15T21:14:26Z<p>MKlegoman357: Updated to CC 1.77</p>
<hr />
<div>{| class="wikitable sortable" style="width: 100%"<br />
! style="width: 15%" | Version<br />
! class="unsortable" | New Features or Changes<br />
! style="width: 15%" | Minecraft Version<br />
|-<br />
|align=center|[http://www.computercraft.info/2016/01/15/computercraft-1-77/ ComputerCraft 1.77]<br />
|<br />
*Ported to Minecraft 1.8.9.<br />
*Added [[Settings_(API)|“settings” API]].<br />
*Added [[set|“set”]] and [[wget|“wget”]] programs.<br />
*Added [[Settings_(API)|settings]] to disable [[multishell]], startup scripts, and tab completion on a per-computer basis. The default values for these settings can be customised in [[ComputerCraft.cfg]].<br />
*All [[Computer]] and [[Turtle]] items except [[Command Computer]]s can now be mounted in [[Disk Drive]]s.<br />
|align=center|1.8.9<br />
|-<br />
|align=center|[http://www.computercraft.info/2015/12/24/computercraft-1-76/ ComputerCraft 1.76]<br />
|<br />
*Ported to Minecraft 1.8.<br />
*Added [[Ender Modem]]s for cross-dimensional communication.<br />
*Fixed handling of 8-bit characters. All the characters in the [https://en.wikipedia.org/wiki/ISO/IEC_8859-1 ISO 8859-1 codepage] can now be displayed.<br />
*Added some extra graphical characters in the unused character positions, including a suite of characters for [http://teletextart.tumblr.com/ Teletext-style drawing].<br />
*Added support for the new commands in Minecraft 1.8 to the [[Command Computer]].<br />
*The return values of [[turtle.inspect]]() and [[commands.getBlockInfo]]() now include blockstate information.<br />
*Added [[commands.getBlockInfos]]() function for Command Computers.<br />
*Added new "[[Peripherals (program)|peripherals]]" program.<br />
*Replaced the "_CC_VERSION" and "_MC_VERSION" constants with a new "_HOST" constant.<br />
*Shortened the length of time that "Ctrl+T", "Ctrl+S" and "Ctrl+R" must be held down to terminate, shutdown or reboot the computer.<br />
*[[textutils.serializeJSON]]() now takes an optional parameter allowing it to produce JSON text with unquoted object keys. This is used by all autogenerated methods in the [[commands (API)|commands API]] except for "title" and "tellraw".<br />
*Fixed many bugs.<br />
|align=center|1.8<br />
|-<br />
|align=center|[http://www.computercraft.info/2015/12/04/computercraft-1-75/ ComputerCraft 1.75]<br />
|<br />
*Fixed monitors sometimes rendering without part of their text.<br />
*Fixed a regression in the [[Bit_(API)|“bit” API]].<br />
|align=center|1.7.10<br />
|-<br />
|align=center|[http://www.computercraft.info/2015/06/27/computercraft-1-74/ ComputerCraft 1.74]<br />
|<br />
*Added tab completion to [[Edit|“edit”]], [[Lua|“lua”]] and the [[shell]].<br />
*Added [[textutils.complete]](), [[fs.complete]](), [[shell.complete]](), [[shell.completeProgram]](), [[shell.setCompletionFunction]](), [[shell.getCompletionInfo]](), and [[help.completeTopic]]().<br />
*Added tab completion options to [[read]]().<br />
*Added [[key_up_(event)|“key_up”]] and [[mouse_up_(event)|“mouse_up”]] events.<br />
*Non-advanced terminals now accept both grey [[Color_(API)|colour]]s.<br />
*Added [[term.getTextColor]](), [[term.getBackgroundColor]]() and [[term.blit]]().<br />
*Improved the performance of text rendering on [[Advanced Computer]]s.<br />
*Added a “Run” button to the [[edit|“edit”]] program on [[Advanced Computer]]s.<br />
*[[Turtle]]s can now push players and entities ([[ComputerCraft.cfg|configurable]]).<br />
*[[Turtle]]s now respect server spawn protection ([[ComputerCraft.cfg|configurable]]).<br />
*Added a turtle permissions API for mod authors.<br />
*Implemented a subset of the Lua 5.2 API so programs can be written against it now, ahead of a future Lua version upgrade.<br />
*Added a [[ComputerCraft.cfg|config option]] to disable parts of the Lua 5.1 API which will be removed when a future Lua version upgrade happens.<br />
*[[Command Computer]]s can no longer be broken by survival players.<br />
*Fixed the “pick block” key not working on ComputerCraft items in creative mode.<br />
*Fixed the [[edit|“edit”]] program being hard to use on certain European keyboards.<br />
*Added “_CC_VERSION” and “_MC_VERSION” constants.<br />
|align=center|1.7.10<br />
|-<br />
|align=center|[http://www.computercraft.info/2015/02/22/computercraft-1-73/ ComputerCraft 1.71 - 1.73]<br />
|<br />
*[CC 1.71] The [[exec|“exec”]] program, [[commands.exec]]() and all related [[Command Computer]] functions now return the console output of the command.<br />
*[CC 1.72 - 1.73] Fixed two multiplayer-only crash bugs when placing certain blocks.<br />
|align=center|1.7.10<br />
|-<br />
|align=center|[http://www.computercraft.info/2015/02/15/computercraft-1-7/ ComputerCraft 1.7]<br />
|<br />
*Added [[Command Computer]]s.<br />
*Added new API: [[commands_(API)|commands]].<br />
*Added new programs: [[commands]], [[exec]].<br />
*Added [[textutils.serializeJSON]]().<br />
*Added ILuaContext.executeMainThreadTask() for peripheral developers.<br />
*[[Disk Drive]]s and [[Printer]]s can now be renamed with Anvils.<br />
*Fixed problems with HD texture packs.<br />
*Fixed various bugs and crashes.<br />
*Documented all the new features in the in-game help system.<br />
|align=center|1.7.10<br />
|-<br />
|align=center|[http://www.computercraft.info/2014/10/09/computercraft-1-65/ ComputerCraft 1.65]<br />
|<br />
*Fixed a multiplayer-only crash with [[turtle.place]]().<br />
*Fixed some problems with [[http.post]]().<br />
*Fixed [[fs.getDrive]]() returning incorrect results on remote peripherals.<br />
|align=center|1.7.10<br />
|-<br />
|align=center|[http://www.computercraft.info/2014/09/27/computercraft-1-64/ ComputerCraft 1.64]<br />
|<br />
*Ported to Minecraft 1.7.10.<br />
*New [[turtle_(API)|turtle API]] functions: [[turtle.inspect]](), [[turtle.inspectUp]](), [[turtle.inspectDown]](), [[turtle.getItemDetail]]().<br />
*Lots of bug fixes and crash fixes, a huge stability improvement over previous versions.<br />
*New [[paintutils_(API)|paintutils API]] functions: [[paintutils.drawBox]]( startX, startY, endX, endY [, color] ), [[paintutils.drawFilledBox]]( startX, startY, endX, endY [, color] ).<br />
|align=center|1.7.10<br />
|-<br />
|align=center|[http://www.computercraft.info/2014/04/16/computercraft-1-63/ ComputerCraft 1.63]<br />
|<br />
*[[Turtle]]s can now be painted with dyes, and cleaned with water buckets.<br />
*Added a new game: [[Redirection]] – ComputerCraft Edition by [http://www.computercraft.info/forums2/index.php?/user/16414-ramilego4game/ RamiLego] (type “redirection” on an Advanced Computer to play).<br />
*[[Turtle]] label nameplates now only show when the [[Turtle]] is moused-over.<br />
*The HTTP API is now enabled by default, and can be configured with a whitelist of permitted domains.<br />
*[[http.get]]() and [[http.post]]() now accept parameters to control the request headers.<br />
*New [[Fs_(API)|fs API]] function: [[fs.getDir]]( path ).<br />
*Fixed some bugs.<br />
|align=center|1.6.4<br />
|-<br />
|align=center|[http://www.computercraft.info/2014/04/04/computercraft-1-62/ ComputerCraft 1.62]<br />
|<br />
*Fixed some bugs which were crashing the game.<br />
*[[Chat]] now supports IRC commands.<br />
|align=center|1.6.4<br />
|-<br />
|align=center|[http://www.computercraft.info/2014/04/01/computercraft-1-61-bug-fix-update/ ComputerCraft 1.61]<br />
|<br />
*Fixed a bug where newly placed [[Computer]]s would share their folder structure until game restart.<br />
*Fixed a bug where running [[Computer]]s might not automatically restart as the game did so.<br />
|align=center|1.6.4<br />
|-<br />
|align=center|[http://www.computercraft.info/2014/03/27/computercraft-1-6-is-here/ ComputerCraft 1.6]<br />
|<br />
*Added [[Pocket Computer]]s.<br />
*Added a [[Multishell|multi-tasking system]] for [[Advanced Computer]]s and [[Turtle]]s.<br />
*[[Turtle]]s can now [[Equip|swap out their tools and peripherals]] at runtime.<br />
*[[Turtle]]s can now carry two tools or peripherals at once in any combination.<br />
*[[Turtle]]s and [[Computer]]s can now be labelled using Name Tags and Anvils.<br />
*Added a [[ComputerCraft.cfg|configurable fuel limit]] for [[Turtle]]s.<br />
*Added hostnames, protocols and long distance routing to the [[Rednet (API)|rednet API]].<br />
*Added a peer-to-peer [[chat]] program to demonstrate new rednet capabilities.<br />
*Added a new game, only on [[Pocket Computer]]s: “[[falling]]” by [http://www.computercraft.info/forums2/index.php?/user/3545-gopheratl/ GopherATL].<br />
*File system commands in the shell now accept wildcard arguments.<br />
*The shell now accepts long arguments in quotes.<br />
*[[term.redirect|Terminal redirection]] now no longer uses a stack-based system. Instead: [[term.current]]() gets the current terminal object and [[term.redirect]]() replaces it. [[term.restore]]() has been removed.<br />
*Added a new [[Window (API)|Windowing API]] for addressing sub-areas of the terminal.<br />
*New programs: [[fg]], [[bg]], [[multishell]], [[chat]], [[repeat]], [[Redstone (program)|redstone]], [[equip]], [[unequip]].<br />
*Improved programs: [[copy]], [[move]], [[delete]], [[rename]], [[paint]], [[CraftOS|shell]].<br />
*Removed programs: redset, redprobe, redpulse.<br />
*New [[:Category:APIs|APIs]]: [[Window (API)|window]], [[Multishell (API)|multishell]].<br />
*New [[Turtle (API)|turtle API]] functions: [[turtle.equipLeft]](), [[turtle.equipRight]](), [[turtle.getFuelLimit]](), [[turtle.getSelectedSlot]]().<br />
*New [[Peripheral (API)|peripheral API]] functions: [[peripheral.find]]( [type] ).<br />
*New [[Rednet (API)|rednet API]] functions: [[rednet.host]]( protocol, hostname ), [[rednet.unhost]]( protocol ), [[rednet.lookup]]( protocol, [hostname] ).<br />
*Improved [[Rednet (API)|rednet API]] functions: [[rednet.send]](), [[rednet.broadcast]]() and [[rednet.receive]]() now take optional protocol parameters.<br />
*New [[fs (API)|fs API]] function: [[fs.find]]( wildcard ).<br />
*New [[Shell (API)|shell API]] functions: [[shell.openTab]]( command ), [[shell.switchTab]]( number ).<br />
*New event “[[Term_resize_(event)|term_resize]]” fired when the size of a terminal changes.<br />
*[[turtle.craft]](0) and [[turtle.refuel]](0) now return true if there is a valid recipe or fuel item, but do not craft or refuel anything.<br />
*[[turtle.suck]]( [limit] ) can now be used to limit the number of items picked up.<br />
*Users of [[turtle.dig]]() and [[turtle.attack]]() can now specify which side of the turtle to look for a tool to use (by default, both will be considered).<br />
*[[textutils.serialize]]() now produces human-readable output.<br />
*Refactored most of the codebase and fixed many old bugs and instabilities, [[Turtle]]s should never ever lose their content now.<br />
*Fixed the “[[turtle_inventory_(event)|turtle_inventory]]” event firing when it shouldn’t have.<br />
*Added error messages to many more [[Turtle_(API)|turtle API]] functions after they return false.<br />
*Documented all new programs and API changes in the “[[help]]” system.<br />
|align=center|1.6.4<br />
|-<br />
|align=center|[http://www.computercraft.info/2013/12/09/computercraft-1-58/ ComputerCraft 1.58]<br />
|<br />
*Fixed a long standing bug where [[Turtle]]s could lose their identity.<br />
*Fixed use of deprecated code, ensuring mod compatibility with the latest versions of Minecraft Forge and world compatibility with future versions of Minecraft.<br />
|align=center|1.6.4<br />
|-<br />
|align=center|[http://www.computercraft.info/2013/10/14/new-versions/ ComputerCraft 1.57]<br />
|<br />
*Ported to Minecraft 1.6.4.<br />
*Added two new [[Treasure Disks]]: Conway’s Game of Life by [http://www.computercraft.info/forums2/index.php?/user/1823-vilsol/ vilsol] and Protector by [http://www.computercraft.info/forums2/index.php?/user/6929-fredthead/ fredthead].<br />
*Fixed a very nasty item duplication bug.<br />
|align=center|1.6.4<br />
|-<br />
|align=center|[http://www.computercraft.info/2013/08/04/computercraft-1-56/ ComputerCraft 1.56]<br />
|<br />
*Added [[Treasure Disks]]: Rare [[Floppy Disk]]s found only in dungeons, which contain fun programs made by the community. Find them all!<br />
*All [[Turtle_(API)|turtle API]] functions now return additional error messages when they fail.<br />
*Resource Packs with Lua Programs can now be loaded when extracted to a folder, for easier editing.<br />
|align=center|1.6.2<br />
|-<br />
|align=center|[http://www.computercraft.info/2013/07/11/computercraft-1-55/ Computercraft 1.55]<br />
|<br />
*Ported to Minecraft 1.6.2.<br />
*Added [[Advanced Turtle]]s.<br />
*Added [[turtle_inventory_(event)|“turtle_inventory”]] event. Fires when any change is made to the inventory of a [[Turtle]].<br />
*Added missing [[IO_(API)|io API]] functions: io.close, io.flush, io.input, io.lines, io.output.<br />
*Tweaked the screen colours used by [[Advanced Computer]]s, [[Advanced Monitor]]s and [[Advanced Turtle]]s.<br />
*Added several new features for Peripheral authors.<br />
*Lua programs can now be included in Resource Packs.<br />
|align=center|1.6.2<br />
|-<br />
|align=center|[http://www.computercraft.info/2013/05/23/computercraft-1-53/ ComputerCraft 1.53]<br />
|<br />
*Ported to Minecraft 1.5.2.<br />
*[[redstone.setBundledOutput]]() and [[redstone.getBundledOutput]]() now work with cables from Minefactory Reloaded, as well as RedPower.<br />
*[[Monitor]]s and [[Advanced Monitor]]s can now be placed on floors and ceilings.<br />
|align=center|1.5.2<br />
|-<br />
|align=center|[http://www.computercraft.info/2013/03/26/computercraft-1-52/ Computercraft 1.52]<br />
|<br />
*Ported to Minecraft 1.5.1.<br />
|align=center|1.5.1<br />
|-<br />
|align=center|[http://www.computercraft.info/2013/03/15/computercraft-1-51/ Computercraft 1.51]<br />
|<br />
*Ported to Minecraft 1.5.<br />
*Added [[Wired Modem]]s.<br />
*Added [[Networking Cable]]s.<br />
*Made [[Wireless Modem]]s more expensive to craft.<br />
*New [[redstone_(API)|redstone API]] functions: [[redstone.getAnalogInput]](), [[redstone.setAnalogOutput]](), [[redstone.getAnalogOutput]]().<br />
*Peripherals can now be controlled remotely over wired networks.<br />
*New [[peripheral_(API)|peripheral API]] function: [[peripheral.getNames]]().<br />
*New event: [[monitor_resize_(event)|“monitor_resize”]]is fired when the size of a monitor changes.<br />
*Except for labelled [[Computer]]s and [[Turtle]]s, ComputerCraft blocks no longer drop items in creative mode.<br />
*The pick block function works in creative mode now works for all ComputerCraft blocks.<br />
*All blocks and items now use the IDs numbers assigned by FTB by default.<br />
*Fixed [[Turtle]]s sometimes placing blocks with incorrect orientations.<br />
*Fixed [[Wireless Modem]]s being able to send messages to themselves.<br />
*Fixed [[turtle.attack]]() having a very short range.<br />
*Various bugfixes.<br />
|align=center|1.5<br />
|-<br />
|align=center|[http://www.computercraft.info/2013/02/11/computercraft-1-5/ Computercraft 1.5]<br />
|<br />
*Redesigned [[Wireless Modem]]s; they can now send and receive on multiple channels, independent of the computer ID. To use these features, interface with modem peripherals [[Modem_(API)|directly]]. The [[Rednet_(API)|rednet API]] still functions as before.<br />
*[[Floppy Disk]]s can now be dyed with multiple dyes, just like armour.<br />
*The [[Excavate|“excavate”]] program now retains fuel in it’s inventory, so can run unattended.<br />
*[[turtle.place]]() now tries all possible block orientations before failing.<br />
*[[turtle.refuel]](0) returns true if a fuel item is selected.<br />
*[[turtle.craft]](0) returns true if the inventory is a valid recipe.<br />
*The in-game help system now has documentation for all the peripherals and their methods, including the new [[Modem]] functionality.<br />
*A romantic surprise.<br />
|align=center|1.4.7<br />
|-<br />
|align=center|[http://www.computercraft.info/2012/12/27/computercraft-1-481-miscperipherals-fix/ Computercraft 1.481]<br />
|<br />
*Fixed compatibility bug with MiscPeripherals.<br />
|align=center|1.4.6<br />
|-<br />
|align=center|[http://www.computercraft.info/2012/12/23/computercraft-1-48/ Computercraft 1.48]<br />
|<br />
*Ported to Minecraft 1.4.6.<br />
*[[Advanced Monitor]]s can now be used as touchscreens.<br />
*[[Advanced Monitor]]s are now easier to craft.<br />
*[[Turtle]]s now get slightly less movement from fuel.<br />
*[[Turtle]]s can now push items.<br />
*[[Computer]]s can now [[Command_Block_(API)|control Command Blocks]], if enabled in the [[ComputerCraft.cfg|config]].<br />
*New [[OS_(API)|os API]] function: [[os.day]]().<br />
*A Christmas surprise.<br />
|align=center|1.4.6<br />
|-<br />
|align=center|[http://www.computercraft.info/2012/11/15/computercraft-1-47-and-minecon-news/ ComputerCraft 1.47]<br />
|<br />
*Ported to Minecraft 1.4.4.<br />
*Fixed label tooltips not showing up in SMP.<br />
|align=center|1.4.4<br />
|-<br />
|align=center|[http://www.computercraft.info/2012/10/25/computercraft-1-46-minecraft-update/ ComputerCraft 1.46]<br />
|<br />
*Ported to Minecraft 1.4.2.<br />
*ComputerCraft items now have their own tab in Creative Mode.<br />
|align=center|1.4.2<br />
|-<br />
|align=center|[http://www.computercraft.info/2012/10/22/computercraft-1-45-now-with-colors/ ComputerCraft 1.45]<br />
|<br />
*Added [[Advanced Computer]]s.<br />
*Added [[Advanced Monitor]]s.<br />
*New program: [[paint]] (by [http://www.computercraft.info/forums2/index.php?/user/643-nitrogenfingers/ nitrogenfingers]).<br />
*New API: [[paintutils_(API)|paintutils]].<br />
*New term functions: [[term.setBackgroundColor]]( color ), [[term.setTextColor]]( color ), [[term.isColor]]().<br />
*New [[Turtle|Turtle API]] function: [[turtle.transferTo]]().<br />
|align=center|1.3.2<br />
|-<br />
|align=center|[http://www.computercraft.info/2012/10/04/computercraft-1-43-books/ ComputerCraft 1.43]<br />
|<br />
*Added [[Printed Page]]s (bind several [[Printed Page]] items into one with a string).<br />
*Added [[Printed_book|Printed Books]] (add a leather cover to the above).<br />
*Labelled [[Turtle]]s now keep their fuel when broken.<br />
*Fixed incompatibility with Forge 275 and above.<br />
|align=center|1.3.2<br />
|-<br />
|align=center|[http://www.computercraft.info/2012/09/22/computercraft-1-42-is-released/ ComputerCraft 1.42]<br />
|<br />
*Ported to Minecraft 1.3.2 and the Forge mod system.<br />
*Added [[Printer]]s.<br />
*[[Floppy Disk]]s can now be dyed different colours.<br />
*[[Turtle|Wireless Crafty Turtles]] can now be crafted.<br />
*All new textures.<br />
*New Forge [[ComputerCraft.cfg|config file]].<br />
*Various tweaks and bug fixes.<br />
|align=center|1.3.2<br />
|-<br />
|align=center|[http://www.computercraft.info/2012/07/29/computercraft-1-41-bugfix-update/ ComputerCraft 1.41]<br />
|<br />
*Fixed labelled [[Computer]]s not keeping their data when destroyed.<br />
*Fixed the [[Excavate|“excavate”]] program outputting lots of spam.<br />
*File system size limits now take into account empty files and directories.<br />
*Some small changes to the Turtle Upgrade API ahead of it’s impending release. (Update: The API has now been released).<br />
|align=center|1.2.5<br />
|-<br />
|align=center|[http://www.computercraft.info/2012/07/27/computercraft-1-4-is-released/ ComputerCraft 1.4]<br />
|<br />
*Ported to Forge Mod Loader: ComputerCraft can now be ran directly from the .zip without extraction.<br />
*Added Farming [[Turtle]]s, Felling [[Turtle]]s, Digging [[Turtle]]s, Melee [[Turtle]]s and Crafty [[Turtle]]s.<br />
*Added 14 new [[Turtle]] combinations accessible by combining the turtle upgrades above.<br />
*Labelled [[Computer]]s and [[Turtle]]s can now be crafted into [[Turtle]]s or other [[Turtle]] types without losing their ID, label and data.<br />
*Added a “[[Turtle]] Upgrade API” for mod developers to create their own tools and peripherals for [[Turtle]]s.<br />
*[[Turtle]]s can now attack entities with [[turtle.attack]]() and collect their dropped items.<br />
*[[Turtle]]s can now use [[turtle.place]]() with any item the player can and can interact with entities.<br />
*[[Turtle]]s can now craft items with [[turtle.craft]]().<br />
*[[Turtle]]s can now place items into inventories with [[turtle.drop]]().<br />
*Changed the behaviour of [[turtle.place]]() and [[turtle.drop]]() to only consider the currently selected slot.<br />
*[[Turtle]]s can now pick up items from the ground or from inventories with [[turtle.suck]]().<br />
*[[Turtle]]s can now compare items in their inventories.<br />
*[[Turtle]]s can place signs with text on them with [[turtle.place]]( [signText] ).<br />
*[[Turtle]]s now optionally require fuel items to move, and can [[turtle.refuel|refuel]] themselves.<br />
*The size of the the [[Turtle]] inventory has been increased to 16 slots.<br />
*The size of the [[Turtle]] screen has been increased.<br />
*New [[Turtle_(API)|turtle API]] functions: [[turtle.compareTo]]( [slotNum] ), [[turtle.craft]](), [[turtle.attack]](), [[turtle.attackUp]](), [[turtle.attackDown]](), [[turtle.dropUp]](), [[turtle.dropDown]](), [[turtle.getFuelLevel]](), [[turtle.refuel]]().<br />
*New [[Disk_(API)|disk API]] function: [[disk.getID]]().<br />
*New [[Turtle]] programs: [[craft]], [[refuel]].<br />
*[[Excavate|“excavate”]] program is now much smarter: will return items to a chest when full, attack mobs, and refuel itself automatically.<br />
*New API: [[Keys_(API)|keys]].<br />
*Added optional [[Floppy Disk]] and Hard Drive space limits for [[Computer]]s and [[Turtle]]s.<br />
*New [[Fs_(API)|fs API]] function: [[fs.getFreeSpace]]( path ). Also [[fs.getDrive]]() works again.<br />
*The send and receive range of wireless modems now increases with altitude, allowing long range networking from high-altitude [[Computer]]s (great for GPS networks).<br />
*[[http.request]]() now supports <code>https://</code> URLs.<br />
*Right clicking a [[Disk Drive]] with a [[Floppy Disk]] or a Record when sneaking will insert the item into the [[Disk Drive]] automatically.<br />
*The default size of the [[Computer]] screen has been increased.<br />
*Several stability and security fixes: LuaJ can now no longer leave dangling threads when a [[Computer]] is unloaded, [[Turtle]]s can no longer be destroyed by tree leaves or walking off the edge of the loaded map. [[Computer]]s no longer crash when used with RedPower frames.<br />
|align=center|1.2.5<br />
|-<br />
|align=center|[http://www.computercraft.info/2012/04/23/computercraft-updated-to-1-2-5/ ComputerCraft 1.33]<br />
|<br />
*Ported to Minecraft 1.2.5.<br />
|align=center|1.2.5<br />
|-<br />
|align=center|[http://www.computercraft.info/2012/03/30/computercraft-1-32-out-now/ ComputerCraft 1.32]<br />
|<br />
*Ported to Minecraft 1.2.4.<br />
*Fixed a big memory leak in LuaJ that caused extra threads to stay around forever when [[Computer]]s were shut down.<br />
|align=center|1.2.4<br />
|-<br />
|align=center|[http://www.computercraft.info/2012/03/13/computercraft-1-31-is-released/ ComputerCraft 1.31]<br />
|<br />
*Ported to Minecraft 1.2.3.<br />
*Added [[Monitor]]s (thanks to Cloudy). Build huge external displays for your [[Computer]]s!<br />
*New positioning capabilities for [[Computer]]s and [[Turtle]]s. Build GPS networks and triangulate the positions of your [[Turtle]]'s position so they never get lost!<br />
*New [[turtle.compare]]() function for [[Turtle]]s for more intelligent mining.<br />
*New programs and APIs: [[Gps_(program)|gps]], [[Monitor_(program)|monitor]], [[Vector_(API)|vector API]].<br />
*New program: [[Pastebin_(program)|pastebin]] (requires <code>enableAPI_HTTP=1</code> in [[ComputerCraft.cfg]]), upload and download programs made by other users ingame!<br />
*Added a new top secret program designed for use with [[Monitor]]s, see if you can find it.<br />
*Lots of additions to existing APIs and programs. Type "help whatsnew" in game for full details.<br />
|align=center|1.2.3<br />
|-<br />
|align=center|[http://www.computercraft.info/2012/02/23/computercraft-1-3-trailer/ ComputerCraft 1.3]<br />
|<br />
*Ported to Minecraft Forge.<br />
*Added [[Turtle]]s, Mining [[Turtle]]s, Wireless [[Turtle]]s and Wireless Mining [[Turtle]]s (Block ID 209).<br />
*Added a Peripheral API to allow mod developers to create custom peripherals for ComputerCraft. Details on this will be posted in the next few days.<br />
*Added [[Wireless Modem]]s. Use the [[Rednet_(API)|rednet API]] to send data wirelessly between [[Computer]]s and [[Turtle]]s!<br />
*[[Computer]]s and [[Disk Drive]]s no longer get destroyed by water.<br />
*[[Computer]]s and [[Turtle]]s can now be labelled, destroyed, and moved around, keeping their state.<br />
*[[Computer]]s and [[Turtle]]s can connect to adjacent devices and turn them on or off.<br />
*User programs now give line numbers in their error messages, for easier debugging.<br />
*New APIs and programs for [[Turtle]]s: [[Turtle_(API)|turtle]], [[excavate]], [[tunnel]], [[go]], [[turn]] and [[dance]].<br />
*Lots of additions to existing APIs and programs. Type "help whatsnew" in game for the full details.<br />
|align=center|1.1<br />
|-<br />
|align=center|ComputerCraft 1.21<br />
|<br />
*Added shortcut key to shutdown the computer (CTRL + S).<br />
*Added a [[Help_(API)|help API]] add-on pack.<br />
*Various bug fixes.<br />
|align=center|1.1<br />
|-<br />
|align=center|ComputerCraft 1.2<br />
|<br />
*Added [[Disk Drive]]s.<br />
*Added shortcut keys to terminate the current program (CTRL + T) and reboot the computer (CTRL + R).<br />
*Added [[os.loadAPI|a new system]] for user created APIs.<br />
*Added [[Rednet_(API)|RedNet]].<br />
*Added [[shell.setPath]]() and [[shell.setAlias]]().<br />
*Added a new ROM startup script.<br />
*Added [[os.clock]](), [[os.time]]() and [[os.setAlarm]]().<br />
*Added game: [[Worm|"Worm!"]].<br />
*Added programs: [[alias]], [[apis]], [[copy]], [[delete]], [[dj]], [[drive]], [[eject]], [[id]], [[label]], [[list]], [[move]], [[reboot]], [[redset]], [[rename]], [[time]].<br />
*Added APIs: [[Bit_(API)|bit]], [[Colours_(API)|colours]], [[Disk_(API)|disk]], [[Help_(API)|help]], [[Rednet_(API)|rednet]], [[Parallel_(API)|parallel]], [[Textutils_(API)|textutils]].<br />
*Text can be edited with left and right arrow keys.<br />
*Many bug fixes.<br />
|align=center|1.0<br />
|-<br />
|align=center|ComputerCraft 1.11<br />
|<br />
*Fixed bug where [[Computer]]s could not read input from RedPower cables which had a bend in the immediately adjacent square.<br />
|align=center|1.0<br />
|-<br />
|align=center|ComputerCraft 1.1<br />
|<br />
*Changed the default block ID for the [[Computer]] to 207.<br />
*Added multiplayer support.<br />
*Added connectivity with RedPower bundled cables.<br />
*Added [[HTTP_(API)|HTTP API]].<br />
*Fixed support for HD textures on the front of [[Computer]]s.<br />
*Added command history to the [[Computer]].<br />
*Added [[ComputerCraft.cfg|config]] options to change the size of the [[Computer]] GUI and the text color.<br />
*Programs with infinite loops that don't yield will no longer freeze Minecraft and will terminate after 10 seconds.<br />
*Extended Help and fixed typos/small errors in various programs.<br />
|align=center|1.0<br />
|-<br />
|align=center|ComputerCraft 1.02<br />
|<br />
*Fixed the MCPatcher HD textures incompatibility that was causing the computer texture to replace cobblestone blocks.<br />
|align=center|1.0<br />
|-<br />
|align=center|ComputerCraft 1.01<br />
|<br />
*Added a ModLoader configuration file, so the computers block ID can be changed.<br />
*Made the error message that displays when Lua files are not correctly installed much more clear, no more "Assertion failed."<br />
|align=center|1.0<br />
|-<br />
|align=center|ComputerCraft 1.0<br />
|<br />
*First Release.<br />
|align=center|1.0<br />
|}</div>MKlegoman357http://www.computercraft.info/wiki/index.php?title=Template:News&diff=7375Template:News2016-01-15T21:11:07Z<p>MKlegoman357: Updated to CC 1.77</p>
<hr />
<div>'''January 15, 2016'''<br />
* ComputerCraft 1.77 is released for Minecraft '''1.8.9'''.<br />
'''December 24, 2015'''<br />
* ComputerCraft 1.76 is released for Minecraft '''1.8'''.<br />
'''December 4, 2015'''<br />
* ComputerCraft 1.75 is released as a final bug fix update for Minecraft '''1.7.10'''.<br />
'''June 27, 2015'''<br />
* ComputerCraft 1.74 is released for Minecraft '''1.7.10'''.<br />
<noinclude><!-- Only display latest four events.--><br />
'''February 24-25, 2015'''<br />
* ComputerCraft 1.72 - 1.73 is released to fix multiplayer-only crashes.<br />
'''February 23, 2015'''<br />
* ComputerCraft 1.71 is released for Minecraft '''1.7.10'''.<br />
'''February 15, 2015'''<br />
* ComputerCraft 1.7 is released for Minecraft '''1.7.10'''.<br />
'''October 09, 2014'''<br />
* ComputerCraft 1.65 is released as a bug fix update for ComputerCraft 1.64.<br />
'''September 27, 2014'''<br />
* ComputerCraft 1.64 is released for Minecraft '''1.7.10'''.<br />
'''April 16, 2014'''<br />
* ComputerCraft 1.63 is released for Minecraft '''1.6.4'''.<br />
'''April 4, 2014'''<br />
* ComputerCraft 1.62 is released to fix game crashes.<br />
'''April 1, 2014'''<br />
* ComputerCraft 1.61 is released as a bug fix update for ComputerCraft 1.6.<br />
'''March 27, 2014'''<br />
* ComputerCraft 1.6 is released for Minecraft '''1.6.4'''.<br />
'''December 9, 2013'''<br />
* ComputerCraft 1.58 is released for Minecraft '''1.6.4'''.<br />
'''October 14, 2013'''<br />
* ComputerCraft 1.57 is released for Minecraft '''1.6.4'''.<br />
'''August 4, 2013'''<br />
* ComputerCraft 1.56 is released for Minecraft '''1.6.2'''.<br />
'''July 11, 2013'''<br />
* ComputerCraft 1.55 is released for Minecraft '''1.6.2'''.<br />
'''May 23, 2013'''<br />
* ComputerCraft 1.53 is released for Minecraft '''1.5.2'''.<br />
'''March 26, 2013'''<br />
* ComputerCraft 1.52 is released for Minecraft '''1.5.1'''.<br />
'''February 11, 2013'''<br />
* ComputerCraft 1.5 is released for Minecraft '''1.4.7'''.<br />
'''December 27, 2012'''<br />
* ComputerCraft 1.481 is released as a quick hotfix for MiscPeripherals.<br />
</noinclude></div>MKlegoman357http://www.computercraft.info/wiki/index.php?title=Template:Version&diff=7374Template:Version2016-01-15T21:09:36Z<p>MKlegoman357: Fixed to 6 releases only</p>
<hr />
<div><!-- ATTENTION WIKI-ENS. Please use the following template for this page:<br />
{{version/row|%VERSION%|%MCVERSION%|%DATE%|type=%TYPE%|link=%LINK%}}<br />
%TYPE% values:<br />
* beta<br />
* latest<br />
* gray (every other for alternating cell pattern)<br />
Only set %LINK% to the ending link if the generated one is incorrect (set to the part of the link after the domain)<br />
--><br />
<table style="width:100%"><br />
{{version/row|1.77|1.8.9 |2016/01/15|type=latest}}<br />
{{version/row|1.76|1.8 |2015/12/24}}<br />
{{version/row|1.75|1.7.10|2015/12/04|type=gray}}<br />
{{version/row|1.74|1.7.10|2015/06/27}}<br />
{{version/row|1.73|1.7.10|2015/02/22|type=gray}}<br />
{{version/row|1.7 |1.7.10|2015/02/15}}<br />
<noinclude> <!-- 6 newest releases should be enough --><br />
{{version/row|1.65|1.7.10|2014/10/09|type=gray}}<br />
{{version/row|1.64|1.7.10|2014/09/27}}<br />
{{version/row|1.63|1.6.4|2014/04/16|type=gray}}<br />
{{version/row|1.62|1.6.4|2014/04/04}}<br />
{{version/row|1.61|1.6.4|link=2014/04/01/computercraft-1-61-bug-fix-update|type=gray}}<br />
{{version/row|1.6 |1.6.4|link=2014/03/27/computercraft-1-6-is-here}}<br />
{{version/row|1.58|1.6.4|2013/12/09|type=gray}}<br />
{{version/row|1.57|1.6.4|link=2013/10/14/new-versions}}<br />
{{version/row|1.56|1.6.2|2013/08/04|type=gray}}<br />
{{version/row|1.55|1.6.2|2013/07/11}}<br />
{{version/row|1.53|1.5.2|2013/05/23|type=gray}}<br />
{{version/row|1.52|1.5.1|2013/03/26}}<br />
{{version/row|1.51|1.5 |2013/03/15|type=gray}}<br />
{{version/row|1.5 |1.4.7|2013/02/11}}<br />
</noinclude><br />
</table><br />
<center>'''[[Changelog]]'''</center></div>MKlegoman357http://www.computercraft.info/wiki/index.php?title=Template:News&diff=7302Template:News2015-12-05T14:00:44Z<p>MKlegoman357: Updated to CC 1.75</p>
<hr />
<div>'''December 4, 2015'''<br />
* ComputerCraft 1.75 is released as a bug fix update for ComputerCraft 1.74.<br />
'''June 27, 2015'''<br />
* ComputerCraft 1.74 is released for Minecraft '''1.7.10'''.<br />
'''February 24-25, 2015'''<br />
* ComputerCraft 1.72 - 1.73 is released to fix multiplayer-only crashes.<br />
'''February 23, 2015'''<br />
* ComputerCraft 1.71 is released for Minecraft '''1.7.10'''.<br />
<noinclude><!-- Only display latest four events.--><br />
'''February 15, 2015'''<br />
* ComputerCraft 1.7 is released for Minecraft '''1.7.10'''.<br />
'''October 09, 2014'''<br />
* ComputerCraft 1.65 is released as a bug fix update for ComputerCraft 1.64.<br />
'''September 27, 2014'''<br />
* ComputerCraft 1.64 is released for Minecraft '''1.7.10'''.<br />
'''April 16, 2014'''<br />
* ComputerCraft 1.63 is released for Minecraft '''1.6.4'''.<br />
'''April 4, 2014'''<br />
* ComputerCraft 1.62 is released to fix game crashes.<br />
'''April 1, 2014'''<br />
* ComputerCraft 1.61 is released as a bug fix update for ComputerCraft 1.6.<br />
'''March 27, 2014'''<br />
* ComputerCraft 1.6 is released for Minecraft '''1.6.4'''.<br />
'''December 9, 2013'''<br />
* ComputerCraft 1.58 is released for Minecraft '''1.6.4'''.<br />
'''October 14, 2013'''<br />
* ComputerCraft 1.57 is released for Minecraft '''1.6.4'''.<br />
'''August 4, 2013'''<br />
* ComputerCraft 1.56 is released for Minecraft '''1.6.2'''.<br />
'''July 11, 2013'''<br />
* ComputerCraft 1.55 is released for Minecraft '''1.6.2'''.<br />
'''May 23, 2013'''<br />
* ComputerCraft 1.53 is released for Minecraft '''1.5.2'''.<br />
'''March 26, 2013'''<br />
* ComputerCraft 1.52 is released for Minecraft '''1.5.1'''.<br />
'''February 11, 2013'''<br />
* ComputerCraft 1.5 is released for Minecraft '''1.4.7'''.<br />
'''December 27, 2012'''<br />
* ComputerCraft 1.481 is released as a quick hotfix for MiscPeripherals.<br />
</noinclude></div>MKlegoman357http://www.computercraft.info/wiki/index.php?title=Template:Version&diff=7301Template:Version2015-12-05T13:57:58Z<p>MKlegoman357: Update to CC 1.75</p>
<hr />
<div><!-- ATTENTION WIKI-ENS. Please do not alter the markup on this page,<br />
only change the values inside the table-cells (<td>). Thanks and<br />
love, AfterLifeLochie.<br />
Templates for this page:<br />
** BETA **:<br />
<tr><td style="background-color:#FFE8A8; text-align:center;">ComputerCraft '''%VERSION%''' ''Beta'' for '''Minecraft %MCVERSION%'''</td></tr><br />
** LATEST **:<br />
<tr><td style="background-color:#E5F9FF; text-align:center;">'''Latest:'''<br />ComputerCraft '''%VERSION%''' for '''Minecraft %MCVERSION%'''<br />Latest</td></tr><br />
** OLD **: (alternating cell pattern)<br />
<tr><td style="background-color:#D4D4D4; text-align:center;">ComputerCraft '''%VERSION%''' for '''Minecraft %MCVERSION%'''</td></tr><br />
<tr><td style="background-color:#FFFFFF; text-align:center;">ComputerCraft '''%VERSION%''' for '''Minecraft %MCVERSION%'''</td></tr><br />
--><br />
<table style="width:100%"><br />
<tr><td style="background-color:#E5F9FF; text-align:center;">'''Latest:'''<br />ComputerCraft '''1.75''' for '''Minecraft 1.7.10''' ([http://www.computercraft.info/2015/12/04/computercraft-1-75/ download])</td></tr><br />
<tr><td style="background-color:#FFFFFF; text-align:center;">ComputerCraft '''1.74''' for '''Minecraft 1.7.10''' ([http://www.computercraft.info/2015/06/27/computercraft-1-74/ download])</td></tr><br />
<tr><td style="background-color:#D4D4D4; text-align:center;">ComputerCraft '''1.73''' for '''Minecraft 1.7.10''' ([http://www.computercraft.info/2015/02/22/computercraft-1-73/ download])</td></tr><br />
<tr><td style="background-color:#FFFFFF; text-align:center;">ComputerCraft '''1.7''' for '''Minecraft 1.7.10''' ([http://www.computercraft.info/2015/02/15/computercraft-1-7/ download])</td></tr><br />
<tr><td style="background-color:#D4D4D4; text-align:center;">ComputerCraft '''1.65''' for '''Minecraft 1.7.10''' ([http://www.computercraft.info/2014/10/09/computercraft-1-65/ download])</td></tr><br />
<tr><td style="background-color:#FFFFFF; text-align:center;">ComputerCraft '''1.64''' for '''Minecraft 1.7.10''' ([http://www.computercraft.info/2014/09/27/computercraft-1-64/ download])</td></tr><br />
<noinclude> <!-- 6 newest releases should be enaugh --><br />
<tr><td style="background-color:#D4D4D4; text-align:center;">ComputerCraft '''1.63''' for '''Minecraft 1.6.4''' ([http://www.computercraft.info/2014/04/16/computercraft-1-63/ download])</td></tr><br />
<tr><td style="background-color:#FFFFFF; text-align:center;">ComputerCraft '''1.62''' for '''Minecraft 1.6.4'''<br />
([http://www.computercraft.info/2014/04/04/computercraft-1-62/ download])</td></tr><br />
<tr><td style="background-color:#D4D4D4; text-align:center;">ComputerCraft '''1.61''' for '''Minecraft 1.6.4'''<br />
([http://www.computercraft.info/2014/04/01/computercraft-1-61-bug-fix-update/ download])</td></tr><br />
<tr><td style="background-color:#FFFFFF; text-align:center;">ComputerCraft '''1.6''' for '''Minecraft 1.6.4''' ([http://www.computercraft.info/2014/03/27/computercraft-1-6-is-here/ download])</td></tr><br />
<tr><td style="background-color:#D4D4D4; text-align:center;">ComputerCraft '''1.58''' for '''Minecraft 1.6.4''' ([http://www.computercraft.info/2013/12/09/computercraft-1-58/ download])</td></tr><br />
<tr><td style="background-color:#FFFFFF; text-align:center;">ComputerCraft '''1.57''' for '''Minecraft 1.6.4''' ([http://www.computercraft.info/2013/10/14/new-versions/ download])</td></tr><br />
<tr><td style="background-color:#D4D4D4; text-align:center;">ComputerCraft '''1.56''' for '''Minecraft 1.6.2''' ([http://www.computercraft.info/2013/08/04/computercraft-1-56/ download])</td></tr><br />
<tr><td style="background-color:#FFFFFF; text-align:center;">ComputerCraft '''1.55''' for '''Minecraft 1.6.2''' ([http://www.computercraft.info/2013/07/11/computercraft-1-55/ download])</td></tr><br />
<tr><td style="background-color:#D4D4D4; text-align:center;">ComputerCraft '''1.53''' for '''Minecraft 1.5.2''' ([http://www.computercraft.info/2013/05/23/computercraft-1-53/ download])</td></tr><br />
<tr><td style="background-color:#FFFFFF; text-align:center;">ComputerCraft '''1.52''' for '''Minecraft 1.5.1''' ([http://www.computercraft.info/2013/03/26/computercraft-1-52/ download])</td></tr><br />
<tr><td style="background-color:#D4D4D4; text-align:center;">ComputerCraft '''1.51''' for '''Minecraft 1.5''' ([http://www.computercraft.info/2013/03/15/computercraft-1-51/ download])</td></tr><br />
<tr><td style="background-color:#FFFFFF; text-align:center;">ComputerCraft '''1.5''' for '''Minecraft 1.4.7''' ([http://www.computercraft.info/2013/02/11/computercraft-1-5/ download])</td></tr><br />
</noinclude><br />
</table><br />
<center>'''[[Changelog]]'''</center></div>MKlegoman357http://www.computercraft.info/wiki/index.php?title=Template:Changelog&diff=7300Template:Changelog2015-12-05T13:55:21Z<p>MKlegoman357: Updated to CC 1.75</p>
<hr />
<div>{| class="wikitable sortable" style="width: 100%"<br />
! style="width: 15%" | Version<br />
! class="unsortable" | New Features or Changes<br />
! style="width: 15%" | Minecraft Version<br />
|-<br />
|align=center|[http://www.computercraft.info/2015/12/04/computercraft-1-75/ ComputerCraft 1.75]<br />
|<br />
*Fixed monitors sometimes rendering without part of their text.<br />
*Fixed a regression in the [[Bit_(API)|“bit” API]].<br />
|align=center|1.7.10<br />
|-<br />
|align=center|[http://www.computercraft.info/2015/06/27/computercraft-1-74/ ComputerCraft 1.74]<br />
|<br />
*Added tab completion to [[Edit|“edit”]], [[Lua|“lua”]] and the [[shell]].<br />
*Added [[textutils.complete]](), [[fs.complete]](), [[shell.complete]](), [[shell.completeProgram]](), [[shell.setCompletionFunction]](), [[shell.getCompletionInfo]](), and [[help.completeTopic]]().<br />
*Added tab completion options to [[read]]().<br />
*Added [[key_up_(event)|“key_up”]] and [[mouse_up_(event)|“mouse_up”]] events.<br />
*Non-advanced terminals now accept both grey [[Color_(API)|colour]]s.<br />
*Added [[term.getTextColor]](), [[term.getBackgroundColor]]() and [[term.blit]]().<br />
*Improved the performance of text rendering on [[Advanced Computer]]s.<br />
*Added a “Run” button to the [[edit|“edit”]] program on [[Advanced Computer]]s.<br />
*[[Turtle]]s can now push players and entities ([[ComputerCraft.cfg|configurable]]).<br />
*[[Turtle]]s now respect server spawn protection ([[ComputerCraft.cfg|configurable]]).<br />
*Added a turtle permissions API for mod authors.<br />
*Implemented a subset of the Lua 5.2 API so programs can be written against it now, ahead of a future Lua version upgrade.<br />
*Added a [[ComputerCraft.cfg|config option]] to disable parts of the Lua 5.1 API which will be removed when a future Lua version upgrade happens.<br />
*[[Command Computer]]s can no longer be broken by survival players.<br />
*Fixed the “pick block” key not working on ComputerCraft items in creative mode.<br />
*Fixed the [[edit|“edit”]] program being hard to use on certain European keyboards.<br />
*Added “_CC_VERSION” and “_MC_VERSION” constants.<br />
|align=center|1.7.10<br />
|-<br />
|align=center|[http://www.computercraft.info/2015/02/22/computercraft-1-73/ ComputerCraft 1.71 - 1.73]<br />
|<br />
*[CC 1.71] The [[exec|“exec”]] program, [[commands.exec]]() and all related [[Command Computer]] functions now return the console output of the command.<br />
*[CC 1.72 - 1.73] Fixed two multiplayer-only crash bugs when placing certain blocks.<br />
|align=center|1.7.10<br />
|-<br />
|align=center|[http://www.computercraft.info/2015/02/15/computercraft-1-7/ ComputerCraft 1.7]<br />
|<br />
*Added [[Command Computer]]s.<br />
*Added new API: [[commands_(API)|commands]].<br />
*Added new programs: [[commands]], [[exec]].<br />
*Added [[textutils.serializeJSON]]().<br />
*Added ILuaContext.executeMainThreadTask() for peripheral developers.<br />
*[[Disk Drive]]s and [[Printer]]s can now be renamed with Anvils.<br />
*Fixed problems with HD texture packs.<br />
*Fixed various bugs and crashes.<br />
*Documented all the new features in the in-game help system.<br />
|align=center|1.7.10<br />
|-<br />
|align=center|[http://www.computercraft.info/2014/10/09/computercraft-1-65/ ComputerCraft 1.65]<br />
|<br />
*Fixed a multiplayer-only crash with [[turtle.place]]().<br />
*Fixed some problems with [[http.post]]().<br />
*Fixed [[fs.getDrive]]() returning incorrect results on remote peripherals.<br />
|align=center|1.7.10<br />
|-<br />
|align=center|[http://www.computercraft.info/2014/09/27/computercraft-1-64/ ComputerCraft 1.64]<br />
|<br />
*Ported to Minecraft 1.7.10.<br />
*New [[turtle_(API)|turtle API]] functions: [[turtle.inspect]](), [[turtle.inspectUp]](), [[turtle.inspectDown]](), [[turtle.getItemDetail]]().<br />
*Lots of bug fixes and crash fixes, a huge stability improvement over previous versions.<br />
*New [[paintutils_(API)|paintutils API]] functions: [[paintutils.drawBox]]( startX, startY, endX, endY [, color] ), [[paintutils.drawFilledBox]]( startX, startY, endX, endY [, color] ).<br />
|align=center|1.7.10<br />
|-<br />
|align=center|[http://www.computercraft.info/2014/04/16/computercraft-1-63/ ComputerCraft 1.63]<br />
|<br />
*[[Turtle]]s can now be painted with dyes, and cleaned with water buckets.<br />
*Added a new game: [[Redirection]] – ComputerCraft Edition by [http://www.computercraft.info/forums2/index.php?/user/16414-ramilego4game/ RamiLego] (type “redirection” on an Advanced Computer to play).<br />
*[[Turtle]] label nameplates now only show when the [[Turtle]] is moused-over.<br />
*The HTTP API is now enabled by default, and can be configured with a whitelist of permitted domains.<br />
*[[http.get]]() and [[http.post]]() now accept parameters to control the request headers.<br />
*New [[Fs_(API)|fs API]] function: [[fs.getDir]]( path ).<br />
*Fixed some bugs.<br />
|align=center|1.6.4<br />
|-<br />
|align=center|[http://www.computercraft.info/2014/04/04/computercraft-1-62/ ComputerCraft 1.62]<br />
|<br />
*Fixed some bugs which were crashing the game.<br />
*[[Chat]] now supports IRC commands.<br />
|align=center|1.6.4<br />
|-<br />
|align=center|[http://www.computercraft.info/2014/04/01/computercraft-1-61-bug-fix-update/ ComputerCraft 1.61]<br />
|<br />
*Fixed a bug where newly placed [[Computer]]s would share their folder structure until game restart.<br />
*Fixed a bug where running [[Computer]]s might not automatically restart as the game did so.<br />
|align=center|1.6.4<br />
|-<br />
|align=center|[http://www.computercraft.info/2014/03/27/computercraft-1-6-is-here/ ComputerCraft 1.6]<br />
|<br />
*Added [[Pocket Computer]]s.<br />
*Added a [[Multishell|multi-tasking system]] for [[Advanced Computer]]s and [[Turtle]]s.<br />
*[[Turtle]]s can now [[Equip|swap out their tools and peripherals]] at runtime.<br />
*[[Turtle]]s can now carry two tools or peripherals at once in any combination.<br />
*[[Turtle]]s and [[Computer]]s can now be labelled using Name Tags and Anvils.<br />
*Added a [[ComputerCraft.cfg|configurable fuel limit]] for [[Turtle]]s.<br />
*Added hostnames, protocols and long distance routing to the [[Rednet (API)|rednet API]].<br />
*Added a peer-to-peer [[chat]] program to demonstrate new rednet capabilities.<br />
*Added a new game, only on [[Pocket Computer]]s: “[[falling]]” by [http://www.computercraft.info/forums2/index.php?/user/3545-gopheratl/ GopherATL].<br />
*File system commands in the shell now accept wildcard arguments.<br />
*The shell now accepts long arguments in quotes.<br />
*[[term.redirect|Terminal redirection]] now no longer uses a stack-based system. Instead: [[term.current]]() gets the current terminal object and [[term.redirect]]() replaces it. [[term.restore]]() has been removed.<br />
*Added a new [[Window (API)|Windowing API]] for addressing sub-areas of the terminal.<br />
*New programs: [[fg]], [[bg]], [[multishell]], [[chat]], [[repeat]], [[Redstone (program)|redstone]], [[equip]], [[unequip]].<br />
*Improved programs: [[copy]], [[move]], [[delete]], [[rename]], [[paint]], [[CraftOS|shell]].<br />
*Removed programs: redset, redprobe, redpulse.<br />
*New [[:Category:APIs|APIs]]: [[Window (API)|window]], [[Multishell (API)|multishell]].<br />
*New [[Turtle (API)|turtle API]] functions: [[turtle.equipLeft]](), [[turtle.equipRight]](), [[turtle.getFuelLimit]](), [[turtle.getSelectedSlot]]().<br />
*New [[Peripheral (API)|peripheral API]] functions: [[peripheral.find]]( [type] ).<br />
*New [[Rednet (API)|rednet API]] functions: [[rednet.host]]( protocol, hostname ), [[rednet.unhost]]( protocol ), [[rednet.lookup]]( protocol, [hostname] ).<br />
*Improved [[Rednet (API)|rednet API]] functions: [[rednet.send]](), [[rednet.broadcast]]() and [[rednet.receive]]() now take optional protocol parameters.<br />
*New [[fs (API)|fs API]] function: [[fs.find]]( wildcard ).<br />
*New [[Shell (API)|shell API]] functions: [[shell.openTab]]( command ), [[shell.switchTab]]( number ).<br />
*New event “[[Term_resize_(event)|term_resize]]” fired when the size of a terminal changes.<br />
*[[turtle.craft]](0) and [[turtle.refuel]](0) now return true if there is a valid recipe or fuel item, but do not craft or refuel anything.<br />
*[[turtle.suck]]( [limit] ) can now be used to limit the number of items picked up.<br />
*Users of [[turtle.dig]]() and [[turtle.attack]]() can now specify which side of the turtle to look for a tool to use (by default, both will be considered).<br />
*[[textutils.serialize]]() now produces human-readable output.<br />
*Refactored most of the codebase and fixed many old bugs and instabilities, [[Turtle]]s should never ever lose their content now.<br />
*Fixed the “[[turtle_inventory_(event)|turtle_inventory]]” event firing when it shouldn’t have.<br />
*Added error messages to many more [[Turtle_(API)|turtle API]] functions after they return false.<br />
*Documented all new programs and API changes in the “[[help]]” system.<br />
|align=center|1.6.4<br />
|-<br />
|align=center|[http://www.computercraft.info/2013/12/09/computercraft-1-58/ ComputerCraft 1.58]<br />
|<br />
*Fixed a long standing bug where [[Turtle]]s could lose their identity.<br />
*Fixed use of deprecated code, ensuring mod compatibility with the latest versions of Minecraft Forge and world compatibility with future versions of Minecraft.<br />
|align=center|1.6.4<br />
|-<br />
|align=center|[http://www.computercraft.info/2013/10/14/new-versions/ ComputerCraft 1.57]<br />
|<br />
*Ported to Minecraft 1.6.4.<br />
*Added two new [[Treasure Disks]]: Conway’s Game of Life by [http://www.computercraft.info/forums2/index.php?/user/1823-vilsol/ vilsol] and Protector by [http://www.computercraft.info/forums2/index.php?/user/6929-fredthead/ fredthead].<br />
*Fixed a very nasty item duplication bug.<br />
|align=center|1.6.4<br />
|-<br />
|align=center|[http://www.computercraft.info/2013/08/04/computercraft-1-56/ ComputerCraft 1.56]<br />
|<br />
*Added [[Treasure Disks]]: Rare [[Floppy Disk]]s found only in dungeons, which contain fun programs made by the community. Find them all!<br />
*All [[Turtle_(API)|turtle API]] functions now return additional error messages when they fail.<br />
*Resource Packs with Lua Programs can now be loaded when extracted to a folder, for easier editing.<br />
|align=center|1.6.2<br />
|-<br />
|align=center|[http://www.computercraft.info/2013/07/11/computercraft-1-55/ Computercraft 1.55]<br />
|<br />
*Ported to Minecraft 1.6.2.<br />
*Added [[Advanced Turtle]]s.<br />
*Added [[turtle_inventory_(event)|“turtle_inventory”]] event. Fires when any change is made to the inventory of a [[Turtle]].<br />
*Added missing [[IO_(API)|io API]] functions: io.close, io.flush, io.input, io.lines, io.output.<br />
*Tweaked the screen colours used by [[Advanced Computer]]s, [[Advanced Monitor]]s and [[Advanced Turtle]]s.<br />
*Added several new features for Peripheral authors.<br />
*Lua programs can now be included in Resource Packs.<br />
|align=center|1.6.2<br />
|-<br />
|align=center|[http://www.computercraft.info/2013/05/23/computercraft-1-53/ ComputerCraft 1.53]<br />
|<br />
*Ported to Minecraft 1.5.2.<br />
*[[redstone.setBundledOutput]]() and [[redstone.getBundledOutput]]() now work with cables from Minefactory Reloaded, as well as RedPower.<br />
*[[Monitor]]s and [[Advanced Monitor]]s can now be placed on floors and ceilings.<br />
|align=center|1.5.2<br />
|-<br />
|align=center|[http://www.computercraft.info/2013/03/26/computercraft-1-52/ Computercraft 1.52]<br />
|<br />
*Ported to Minecraft 1.5.1.<br />
|align=center|1.5.1<br />
|-<br />
|align=center|[http://www.computercraft.info/2013/03/15/computercraft-1-51/ Computercraft 1.51]<br />
|<br />
*Ported to Minecraft 1.5.<br />
*Added [[Wired Modem]]s.<br />
*Added [[Networking Cable]]s.<br />
*Made [[Wireless Modem]]s more expensive to craft.<br />
*New [[redstone_(API)|redstone API]] functions: [[redstone.getAnalogInput]](), [[redstone.setAnalogOutput]](), [[redstone.getAnalogOutput]]().<br />
*Peripherals can now be controlled remotely over wired networks.<br />
*New [[peripheral_(API)|peripheral API]] function: [[peripheral.getNames]]().<br />
*New event: [[monitor_resize_(event)|“monitor_resize”]]is fired when the size of a monitor changes.<br />
*Except for labelled [[Computer]]s and [[Turtle]]s, ComputerCraft blocks no longer drop items in creative mode.<br />
*The pick block function works in creative mode now works for all ComputerCraft blocks.<br />
*All blocks and items now use the IDs numbers assigned by FTB by default.<br />
*Fixed [[Turtle]]s sometimes placing blocks with incorrect orientations.<br />
*Fixed [[Wireless Modem]]s being able to send messages to themselves.<br />
*Fixed [[turtle.attack]]() having a very short range.<br />
*Various bugfixes.<br />
|align=center|1.5<br />
|-<br />
|align=center|[http://www.computercraft.info/2013/02/11/computercraft-1-5/ Computercraft 1.5]<br />
|<br />
*Redesigned [[Wireless Modem]]s; they can now send and receive on multiple channels, independent of the computer ID. To use these features, interface with modem peripherals [[Modem_(API)|directly]]. The [[Rednet_(API)|rednet API]] still functions as before.<br />
*[[Floppy Disk]]s can now be dyed with multiple dyes, just like armour.<br />
*The [[Excavate|“excavate”]] program now retains fuel in it’s inventory, so can run unattended.<br />
*[[turtle.place]]() now tries all possible block orientations before failing.<br />
*[[turtle.refuel]](0) returns true if a fuel item is selected.<br />
*[[turtle.craft]](0) returns true if the inventory is a valid recipe.<br />
*The in-game help system now has documentation for all the peripherals and their methods, including the new [[Modem]] functionality.<br />
*A romantic surprise.<br />
|align=center|1.4.7<br />
|-<br />
|align=center|[http://www.computercraft.info/2012/12/27/computercraft-1-481-miscperipherals-fix/ Computercraft 1.481]<br />
|<br />
*Fixed compatibility bug with MiscPeripherals.<br />
|align=center|1.4.6<br />
|-<br />
|align=center|[http://www.computercraft.info/2012/12/23/computercraft-1-48/ Computercraft 1.48]<br />
|<br />
*Ported to Minecraft 1.4.6.<br />
*[[Advanced Monitor]]s can now be used as touchscreens.<br />
*[[Advanced Monitor]]s are now easier to craft.<br />
*[[Turtle]]s now get slightly less movement from fuel.<br />
*[[Turtle]]s can now push items.<br />
*[[Computer]]s can now [[Command_Block_(API)|control Command Blocks]], if enabled in the [[ComputerCraft.cfg|config]].<br />
*New [[OS_(API)|os API]] function: [[os.day]]().<br />
*A Christmas surprise.<br />
|align=center|1.4.6<br />
|-<br />
|align=center|[http://www.computercraft.info/2012/11/15/computercraft-1-47-and-minecon-news/ ComputerCraft 1.47]<br />
|<br />
*Ported to Minecraft 1.4.4.<br />
*Fixed label tooltips not showing up in SMP.<br />
|align=center|1.4.4<br />
|-<br />
|align=center|[http://www.computercraft.info/2012/10/25/computercraft-1-46-minecraft-update/ ComputerCraft 1.46]<br />
|<br />
*Ported to Minecraft 1.4.2.<br />
*ComputerCraft items now have their own tab in Creative Mode.<br />
|align=center|1.4.2<br />
|-<br />
|align=center|[http://www.computercraft.info/2012/10/22/computercraft-1-45-now-with-colors/ ComputerCraft 1.45]<br />
|<br />
*Added [[Advanced Computer]]s.<br />
*Added [[Advanced Monitor]]s.<br />
*New program: [[paint]] (by [http://www.computercraft.info/forums2/index.php?/user/643-nitrogenfingers/ nitrogenfingers]).<br />
*New API: [[paintutils_(API)|paintutils]].<br />
*New term functions: [[term.setBackgroundColor]]( color ), [[term.setTextColor]]( color ), [[term.isColor]]().<br />
*New [[Turtle|Turtle API]] function: [[turtle.transferTo]]().<br />
|align=center|1.3.2<br />
|-<br />
|align=center|[http://www.computercraft.info/2012/10/04/computercraft-1-43-books/ ComputerCraft 1.43]<br />
|<br />
*Added [[Printed Page]]s (bind several [[Printed Page]] items into one with a string).<br />
*Added [[Printed_book|Printed Books]] (add a leather cover to the above).<br />
*Labelled [[Turtle]]s now keep their fuel when broken.<br />
*Fixed incompatibility with Forge 275 and above.<br />
|align=center|1.3.2<br />
|-<br />
|align=center|[http://www.computercraft.info/2012/09/22/computercraft-1-42-is-released/ ComputerCraft 1.42]<br />
|<br />
*Ported to Minecraft 1.3.2 and the Forge mod system.<br />
*Added [[Printer]]s.<br />
*[[Floppy Disk]]s can now be dyed different colours.<br />
*[[Turtle|Wireless Crafty Turtles]] can now be crafted.<br />
*All new textures.<br />
*New Forge [[ComputerCraft.cfg|config file]].<br />
*Various tweaks and bug fixes.<br />
|align=center|1.3.2<br />
|-<br />
|align=center|[http://www.computercraft.info/2012/07/29/computercraft-1-41-bugfix-update/ ComputerCraft 1.41]<br />
|<br />
*Fixed labelled [[Computer]]s not keeping their data when destroyed.<br />
*Fixed the [[Excavate|“excavate”]] program outputting lots of spam.<br />
*File system size limits now take into account empty files and directories.<br />
*Some small changes to the Turtle Upgrade API ahead of it’s impending release. (Update: The API has now been released).<br />
|align=center|1.2.5<br />
|-<br />
|align=center|[http://www.computercraft.info/2012/07/27/computercraft-1-4-is-released/ ComputerCraft 1.4]<br />
|<br />
*Ported to Forge Mod Loader: ComputerCraft can now be ran directly from the .zip without extraction.<br />
*Added Farming [[Turtle]]s, Felling [[Turtle]]s, Digging [[Turtle]]s, Melee [[Turtle]]s and Crafty [[Turtle]]s.<br />
*Added 14 new [[Turtle]] combinations accessible by combining the turtle upgrades above.<br />
*Labelled [[Computer]]s and [[Turtle]]s can now be crafted into [[Turtle]]s or other [[Turtle]] types without losing their ID, label and data.<br />
*Added a “[[Turtle]] Upgrade API” for mod developers to create their own tools and peripherals for [[Turtle]]s.<br />
*[[Turtle]]s can now attack entities with [[turtle.attack]]() and collect their dropped items.<br />
*[[Turtle]]s can now use [[turtle.place]]() with any item the player can and can interact with entities.<br />
*[[Turtle]]s can now craft items with [[turtle.craft]]().<br />
*[[Turtle]]s can now place items into inventories with [[turtle.drop]]().<br />
*Changed the behaviour of [[turtle.place]]() and [[turtle.drop]]() to only consider the currently selected slot.<br />
*[[Turtle]]s can now pick up items from the ground or from inventories with [[turtle.suck]]().<br />
*[[Turtle]]s can now compare items in their inventories.<br />
*[[Turtle]]s can place signs with text on them with [[turtle.place]]( [signText] ).<br />
*[[Turtle]]s now optionally require fuel items to move, and can [[turtle.refuel|refuel]] themselves.<br />
*The size of the the [[Turtle]] inventory has been increased to 16 slots.<br />
*The size of the [[Turtle]] screen has been increased.<br />
*New [[Turtle_(API)|turtle API]] functions: [[turtle.compareTo]]( [slotNum] ), [[turtle.craft]](), [[turtle.attack]](), [[turtle.attackUp]](), [[turtle.attackDown]](), [[turtle.dropUp]](), [[turtle.dropDown]](), [[turtle.getFuelLevel]](), [[turtle.refuel]]().<br />
*New [[Disk_(API)|disk API]] function: [[disk.getID]]().<br />
*New [[Turtle]] programs: [[craft]], [[refuel]].<br />
*[[Excavate|“excavate”]] program is now much smarter: will return items to a chest when full, attack mobs, and refuel itself automatically.<br />
*New API: [[Keys_(API)|keys]].<br />
*Added optional [[Floppy Disk]] and Hard Drive space limits for [[Computer]]s and [[Turtle]]s.<br />
*New [[Fs_(API)|fs API]] function: [[fs.getFreeSpace]]( path ). Also [[fs.getDrive]]() works again.<br />
*The send and receive range of wireless modems now increases with altitude, allowing long range networking from high-altitude [[Computer]]s (great for GPS networks).<br />
*[[http.request]]() now supports <code>https://</code> URLs.<br />
*Right clicking a [[Disk Drive]] with a [[Floppy Disk]] or a Record when sneaking will insert the item into the [[Disk Drive]] automatically.<br />
*The default size of the [[Computer]] screen has been increased.<br />
*Several stability and security fixes: LuaJ can now no longer leave dangling threads when a [[Computer]] is unloaded, [[Turtle]]s can no longer be destroyed by tree leaves or walking off the edge of the loaded map. [[Computer]]s no longer crash when used with RedPower frames.<br />
|align=center|1.2.5<br />
|-<br />
|align=center|[http://www.computercraft.info/2012/04/23/computercraft-updated-to-1-2-5/ ComputerCraft 1.33]<br />
|<br />
*Ported to Minecraft 1.2.5.<br />
|align=center|1.2.5<br />
|-<br />
|align=center|[http://www.computercraft.info/2012/03/30/computercraft-1-32-out-now/ ComputerCraft 1.32]<br />
|<br />
*Ported to Minecraft 1.2.4.<br />
*Fixed a big memory leak in LuaJ that caused extra threads to stay around forever when [[Computer]]s were shut down.<br />
|align=center|1.2.4<br />
|-<br />
|align=center|[http://www.computercraft.info/2012/03/13/computercraft-1-31-is-released/ ComputerCraft 1.31]<br />
|<br />
*Ported to Minecraft 1.2.3.<br />
*Added [[Monitor]]s (thanks to Cloudy). Build huge external displays for your [[Computer]]s!<br />
*New positioning capabilities for [[Computer]]s and [[Turtle]]s. Build GPS networks and triangulate the positions of your [[Turtle]]'s position so they never get lost!<br />
*New [[turtle.compare]]() function for [[Turtle]]s for more intelligent mining.<br />
*New programs and APIs: [[Gps_(program)|gps]], [[Monitor_(program)|monitor]], [[Vector_(API)|vector API]].<br />
*New program: [[Pastebin_(program)|pastebin]] (requires <code>enableAPI_HTTP=1</code> in [[ComputerCraft.cfg]]), upload and download programs made by other users ingame!<br />
*Added a new top secret program designed for use with [[Monitor]]s, see if you can find it.<br />
*Lots of additions to existing APIs and programs. Type "help whatsnew" in game for full details.<br />
|align=center|1.2.3<br />
|-<br />
|align=center|[http://www.computercraft.info/2012/02/23/computercraft-1-3-trailer/ ComputerCraft 1.3]<br />
|<br />
*Ported to Minecraft Forge.<br />
*Added [[Turtle]]s, Mining [[Turtle]]s, Wireless [[Turtle]]s and Wireless Mining [[Turtle]]s (Block ID 209).<br />
*Added a Peripheral API to allow mod developers to create custom peripherals for ComputerCraft. Details on this will be posted in the next few days.<br />
*Added [[Wireless Modem]]s. Use the [[Rednet_(API)|rednet API]] to send data wirelessly between [[Computer]]s and [[Turtle]]s!<br />
*[[Computer]]s and [[Disk Drive]]s no longer get destroyed by water.<br />
*[[Computer]]s and [[Turtle]]s can now be labelled, destroyed, and moved around, keeping their state.<br />
*[[Computer]]s and [[Turtle]]s can connect to adjacent devices and turn them on or off.<br />
*User programs now give line numbers in their error messages, for easier debugging.<br />
*New APIs and programs for [[Turtle]]s: [[Turtle_(API)|turtle]], [[excavate]], [[tunnel]], [[go]], [[turn]] and [[dance]].<br />
*Lots of additions to existing APIs and programs. Type "help whatsnew" in game for the full details.<br />
|align=center|1.1<br />
|-<br />
|align=center|ComputerCraft 1.21<br />
|<br />
*Added shortcut key to shutdown the computer (CTRL + S).<br />
*Added a [[Help_(API)|help API]] add-on pack.<br />
*Various bug fixes.<br />
|align=center|1.1<br />
|-<br />
|align=center|ComputerCraft 1.2<br />
|<br />
*Added [[Disk Drive]]s.<br />
*Added shortcut keys to terminate the current program (CTRL + T) and reboot the computer (CTRL + R).<br />
*Added [[os.loadAPI|a new system]] for user created APIs.<br />
*Added [[Rednet_(API)|RedNet]].<br />
*Added [[shell.setPath]]() and [[shell.setAlias]]().<br />
*Added a new ROM startup script.<br />
*Added [[os.clock]](), [[os.time]]() and [[os.setAlarm]]().<br />
*Added game: [[Worm|"Worm!"]].<br />
*Added programs: [[alias]], [[apis]], [[copy]], [[delete]], [[dj]], [[drive]], [[eject]], [[id]], [[label]], [[list]], [[move]], [[reboot]], [[redset]], [[rename]], [[time]].<br />
*Added APIs: [[Bit_(API)|bit]], [[Colours_(API)|colours]], [[Disk_(API)|disk]], [[Help_(API)|help]], [[Rednet_(API)|rednet]], [[Parallel_(API)|parallel]], [[Textutils_(API)|textutils]].<br />
*Text can be edited with left and right arrow keys.<br />
*Many bug fixes.<br />
|align=center|1.0<br />
|-<br />
|align=center|ComputerCraft 1.11<br />
|<br />
*Fixed bug where [[Computer]]s could not read input from RedPower cables which had a bend in the immediately adjacent square.<br />
|align=center|1.0<br />
|-<br />
|align=center|ComputerCraft 1.1<br />
|<br />
*Changed the default block ID for the [[Computer]] to 207.<br />
*Added multiplayer support.<br />
*Added connectivity with RedPower bundled cables.<br />
*Added [[HTTP_(API)|HTTP API]].<br />
*Fixed support for HD textures on the front of [[Computer]]s.<br />
*Added command history to the [[Computer]].<br />
*Added [[ComputerCraft.cfg|config]] options to change the size of the [[Computer]] GUI and the text color.<br />
*Programs with infinite loops that don't yield will no longer freeze Minecraft and will terminate after 10 seconds.<br />
*Extended Help and fixed typos/small errors in various programs.<br />
|align=center|1.0<br />
|-<br />
|align=center|ComputerCraft 1.02<br />
|<br />
*Fixed the MCPatcher HD textures incompatibility that was causing the computer texture to replace cobblestone blocks.<br />
|align=center|1.0<br />
|-<br />
|align=center|ComputerCraft 1.01<br />
|<br />
*Added a ModLoader configuration file, so the computers block ID can be changed.<br />
*Made the error message that displays when Lua files are not correctly installed much more clear, no more "Assertion failed."<br />
|align=center|1.0<br />
|-<br />
|align=center|ComputerCraft 1.0<br />
|<br />
*First Release.<br />
|align=center|1.0<br />
|}</div>MKlegoman357http://www.computercraft.info/wiki/index.php?title=Http.checkURL&diff=7179Http.checkURL2015-08-01T20:38:35Z<p>MKlegoman357: reformatted</p>
<hr />
<div>{{lowercase}}<br />
{{Function<br />
|name=http.checkURL<br />
|args={{type|string}} url<br />
|returns={{type|boolean}} success [, {{type|string}} message]<br />
|api=HTTP<br />
|addon=ComputerCraft<br />
|desc=Validates a URL, checking it is in the correct format and the website is on the HTTP whitelist. If the URL is not valid then the second return value will be an appropriate error message.<br />
|examples=<br />
{{Example<br />
|desc=Validates a URL and errors if it is invalid.<br />
|code=local success, message = '''http.checkURL( "http://example.com" )'''<br />
<br />
if not success then<br />
[[error]]( "Invalid URL: " .. message )<br />
end<br />
}}<br />
{{Example<br />
|desc=Various outputs of http.checkURL.<br />
|code='''http.checkURL( "http://example.com" )''' ''-- true''<br />
'''http.checkURL( "example.com" )''' ''-- false, URL malformed''<br />
'''http.checkURL( "ftp://example.com" )''' ''-- false, URL not http''<br />
}}<br />
}}<br />
<br />
[[Category:Lua_Core_Functions]]</div>MKlegoman357http://www.computercraft.info/wiki/index.php?title=HTTP_(API)&diff=7178HTTP (API)2015-08-01T20:35:58Z<p>MKlegoman357: fixed formatting</p>
<hr />
<div>:{|class="wikitable"<br />
| '''The HTTP API must be enabled in ComputerCraft.cfg before being used. To enable it see [http://www.computercraft.info/forums2/index.php?/topic/17533-how-to-enable-the-http-api/ this tutorial].'''<br />
|}<br />
<br />
The HTTP API allows interfacing with websites and downloading from them.<br />
<br />
{{API table|HTTP|image=Grid disk.png|2=<br />
<br />
{{API table/row<br />
|[[http.request]]({{type|string}} url [, {{type|string}} postData [, {{type|table}} headers]])<br />
|{{type|nil}}<br />
|Sends a HTTP request to a website, asynchronously.<br />
|odd}}<br />
<br />
{{API table/row<br />
|[[http.get]]({{type|string}} url [, {{type|table}} headers])<br />
|{{type|table}} handle<br />
|Sends a HTTP GET request to a website, synchronously.<br />
|}}<br />
<br />
{{API table/row<br />
|[[http.post]]({{type|string}} url, {{type|string}} postData [, {{type|table}} headers])<br />
|{{type|table}} handle<br />
|Sends a HTTP POST request to a website, synchronously.<br />
|odd}}<br />
<br />
{{API table/row<br />
|[[http.checkURL]]({{type|string}} url)<br />
|{{type|boolean}} success [<nowiki />, {{type|string}} error]<br />
|Checks if a URL is valid and is included in the HTTP whitelist.<br />
|}}<br />
<br />
}}<br />
<br />
[[http.request]] is used to send a HTTP request that completes asynchronously and generates an event (one of [[Http success (event)|http_success]] or [[Http failure (event)|http_failure]]). [[http.get]] and [[http.post]] execute [[http.request]] and block until the operation completes.<br />
<br />
== Handles ==<br />
All three operations make use of ''handles'', tables that contain functions to read data returned from the HTTP server. These handles act the same as the I/O handles returned by [[fs.open]] in read-only text mode, implementing the [[fs.open#Closing_a_file_handle|close]], [[fs.open#Files_opened_in_text_read_mode|readLine]], and [[fs.open#Files_opened_in_text_read_mode|readAll]] methods. These handles also implement the following function:<br />
<br />
{{Function<br />
|name=<var>h</var>.getResponseCode<br />
|returns={{type|number}} HTTP response code<br />
|api=HTTP<br />
|desc=Returns the numerical [https://en.wikipedia.org/wiki/List_of_HTTP_status_codes HTTP response code] sent by the server<br />
}}<br />
<br />
== Headers ==<br />
As of '''ComputerCraft 1.63''', you can optionally set custom headers. This also means that you can override default headers such as the User-Agent.<br />
{{Example<br />
|desc=Sends a request to http://example.com/ with the custom headers.<br />
|code=local headers = {<br />
[ "User-Agent" ] = "A custom user-agent!", ''-- Overrides the default User-Agent.''<br />
[ "Hi" ] = "Hello" ''-- A non-standard custom header field.''<br />
}<br />
<br />
[[http.get]]( "http:<nowiki/>//example.com/", headers )<br />
}}<br />
<br />
[[Category:APIs]]</div>MKlegoman357http://www.computercraft.info/wiki/index.php?title=Peripheral.find&diff=7173Peripheral.find2015-08-01T16:18:50Z<p>MKlegoman357: Undo revision 7172 by Wyvern67 (talk) | kinda unnecessary</p>
<hr />
<div>{{lowercase}}<br />
{{Function<br />
|name=peripheral.find<br />
|args={{type|string}} type [, {{type|function}} fnFilter( name, object )]<br />
|returns={{Type|table}} handle1, {{Type|table}} handle2, ... handles to peripherals of the given type<br />
|api=peripheral<br />
|addon=ComputerCraft<br />
|desc=Introduced by ComputerCraft 1.6, returns a list of handles for connected peripherals that match the supplied type (essentially performing as a filtered version of [[peripheral.wrap|peripheral.wrap()]]). If multiple peripherals are found, they are all returned as separate values, in the same order [[peripheral.getNames]]() returns. A custom function may additionally be passed as a parameter - if it's supplied, each matching peripheral's name and handle will be passed to it during the search, and they'll only be included in the final results if it returns <var>true</var>.<br />
|examples=<br />
{{Example<br />
|desc=Finds a monitor and writes 'Hello' on it.<br />
|code= local monitor = '''peripheral.find("monitor")'''<br />
<br />
if monitor then<br />
monitor.[[term.write|write]]("Hello")<br />
end<br />
|output=If there is a monitor connected 'Hello' will be written on it.<br />
}}<br />
{{Example<br />
|desc=Finds 2 '''advanced''' monitors and writes 'Hello' on the first and 'World' on the second.<br />
|code= local mon1, mon2 = '''peripheral.find("monitor", function(name, object) return object.[[term.isColor|isColour]]() end)'''<br />
<br />
if mon1 then<br />
mon1.[[term.setTextColor|setTextColour]]([[colors|colours]].blue)<br />
mon1.[[term.write|write]]("Hello")<br />
end<br />
if mon2 then<br />
mon2.[[term.setTextColor|setTextColour]]([[colors|colours]].red)<br />
mon2.[[term.write|write]]("World")<br />
end<br />
|output=If it finds 1 advanced monitor, 'Hello' will be written on it. If it finds 2 advanced monitors, 'Hello' will be written on the first and 'World' on the second.<br />
}}<br />
}}<br />
<br />
[[Category:Lua_Core_Functions]]</div>MKlegoman357http://www.computercraft.info/wiki/index.php?title=Term_(API)&diff=7080Term (API)2015-06-28T12:27:46Z<p>MKlegoman357: </p>
<hr />
<div>The Terminal API provides functions for writing text to the terminal and monitors, and drawing ASCII graphics.<br />
<br />
Functions in ''italics'' are only available to [[Monitor|Monitors]]. Functions in '''bold''' are available only to [[Window (API)|Windows]].<br />
<br />
{{API table|Term|image=Grid disk.png|2=<br />
<br />
{{API table/row|[[term.write]]({{type|string}} text)|{{type|nil}}<br />
|Writes ''text'' to the screen, using the current [[term.setTextColor|text]] and [[term.setBackgroundColor|background colors]].|odd}}<br />
<br />
{{API table/row|[[term.blit]]({{type|string}} text, {{type|string}} text colors, {{type|string}} background colors)|{{type|nil}}<br />
|Writes ''text'' to the screen using the specified text and background colors. ''Requires version 1.74 or newer.''}}<br />
<br />
{{API table/row|[[term.clear]]()|{{type|nil}}<br />
|Clears the entire screen.|odd}}<br />
<br />
{{API table/row|[[term.clearLine]]()|{{type|nil}}<br />
|Clears the line the cursor is on.}}<br />
<br />
{{API table/row|[[term.getCursorPos]]()|{{type|number}} x, {{type|number}} y<br />
|Returns two arguments containing the x and the y position of the cursor.|odd}}<br />
<br />
{{API table/row|[[term.setCursorPos]]({{type|number}} x, {{type|number}} y)|{{type|nil}}<br />
|Sets the cursor's position.}}<br />
<br />
{{API table/row|[[term.setCursorBlink]]({{type|boolean}} bool)|{{type|nil}}<br />
|Disables the blinking or turns it on.|odd}}<br />
<br />
{{API table/row|[[term.isColor]]()|{{type|boolean}}<br />
|Returns whether the terminal supports color.}}<br />
<br />
{{API table/row|[[term.getSize]]()|{{type|number}} x, {{type|number}} y<br />
|Returns two arguments containing the x and the y values stating the size of the screen. (Good for if you're making something to be compatible with both [[Turtle]]s and [[Computer]]s.)|odd}}<br />
<br />
{{API table/row|[[term.scroll]]({{type|number}} n)|{{type|nil}}<br />
|Scrolls the terminal ''n'' lines.}}<br />
<br />
{{API table/row|[[term.redirect]](target)|{{type|table}} previous terminal object<br />
|Redirects terminal output to another terminal object (such as a [[Window (API)|window]] or [[peripheral.wrap|wrapped]] [[monitor]]). ''Available only to the base term object.''|odd}}<br />
<br />
{{API table/row|[[term.current]]()|{{type|table}} terminal object<br />
|Returns the current terminal object. ''Requires version 1.6 or newer, available only to the base term object.''}}<br />
<br />
{{API table/row|[[term.native]]()|{{type|table}} terminal object<br />
|Returns the original terminal object. ''Requires version 1.6 or newer, available only to the base term object.''|odd}}<br />
<br />
{{API table/row|[[term.setTextColor]]({{type|number}} [[Colors (API)|color]])|{{type|nil}}<br />
|Sets the text color of the terminal. ''Limited functionality without an Advanced [[Advanced Computer|Computer]] / [[Advanced Turtle|Turtle]] / [[Advanced Monitor|Monitor]].''}}<br />
<br />
{{API table/row|[[term.getTextColor]]()|{{type|number}} color<br />
|Returns the current text color of the terminal. ''Requires version 1.74 or newer.''|odd}}<br />
<br />
{{API table/row|[[term.setBackgroundColor]]({{type|number}} [[Colors (API)#Colors|color]])|{{type|nil}}<br />
|Sets the background color of the terminal. ''Limited functionality without an Advanced [[Advanced Computer|Computer]] / [[Advanced Turtle|Turtle]] / [[Advanced Monitor|Monitor]].''}}<br />
<br />
{{API table/row|[[term.getBackgroundColor]]()|{{type|number}} color<br />
|Returns the current background color of the terminal. ''Requires version 1.74 or newer.''|odd}}<br />
<br />
{{API table/row|''[[monitor.setTextScale]]({{type|number}} scale)''|{{type|nil}}<br />
|Sets the text scale. ''Available only to [[Monitor#Monitor as a Peripheral|monitor]] objects.''}}<br />
<br />
{{API table/row|'''[[window.setVisible]]({{type|boolean}} visibility)'''|{{type|nil}}<br />
|Determines whether subsequent renders to the window will be visible. ''Available only to [[Window (API)|window]] objects.''|odd}}<br />
<br />
{{API table/row|'''[[window.redraw]]()'''|{{type|nil}}<br />
|Redraws the contents of the window. ''Available only to [[Window (API)|window]] objects.''}}<br />
<br />
{{API table/row|'''[[window.restoreCursor]]()'''|{{type|nil}}<br />
|Returns the cursor back to its position / state within the window. ''Available only to [[Window (API)|window]] objects.''|odd}}<br />
<br />
{{API table/row|'''[[window.getPosition]]()'''|{{type|number}} x, {{type|number}} y<br />
|Returns the top left co-ordinate of the window. ''Available only to [[Window (API)|window]] objects.''}}<br />
<br />
{{API table/row|'''[[window.reposition]]({{type|number}} x, {{type|number}} y [<nowiki/>, {{type|number}} width, {{type|number}} height])'''|{{type|nil}}<br />
|Moves and / or resizes the window. ''Available only to [[Window (API)|window]] objects.''|odd}}<br />
<br />
}}<br />
{{Event<br />
|name=[[term_resize (event)|term_resize]]<br />
|desc=Fired when the screen changes size (through opening a new tab with ''bg'', etc). ''Requires version 1.6 or higher.''<br />
}}<br />
<br />
= Deprecated Functions =<br />
{{Deprecated<br />
|plural=yes<br />
|type=These functions<br />
}}<br />
<br />
{{API table|Term|image=Grid disk.png|2=<br />
<br />
{{API table/row|[[term.restore]]()|{{type|nil}}<br />
|Restores terminal output to the previous target. Removed by ComputerCraft 1.6.|odd}}<br />
<br />
}}<br />
[[Category:APIs]]</div>MKlegoman357http://www.computercraft.info/wiki/index.php?title=Term.setBackgroundColor&diff=7079Term.setBackgroundColor2015-06-28T12:26:39Z<p>MKlegoman357: Updated/Improved</p>
<hr />
<div>{{lowercase}}<br />
{{Function<br />
|name=term.setBackgroundColor<br />
|args={{type|number}} color code<br />
|returns={{type|nil}}<br />
|api=term<br />
|addon=ComputerCraft<br />
|desc=Changes the background color of the terminal. For ease of use, it is best to use the color codes provided in the [[colors (API)|colors API]]. Note that non-advanced systems only have black and white displays, though the background color may still be set to either of these four colors: black, white, gray and light gray. Also available as '''term.setBackgroundColour''' for British spelling.<br />
<br><br />
See also: [[term.getBackgroundColor]]()<br />
|examples=<br />
{{Example<br />
|desc=Writes text with a gray background.<br />
|code= '''term.setBackgroundColor( [[Colors_(API)|colors.gray]] )'''<br />
[[print]]( "I have a gray background" )<br />
}}<br />
}}<br />
<br />
[[Category:API_Functions]]</div>MKlegoman357http://www.computercraft.info/wiki/index.php?title=Term.getBackgroundColor&diff=7078Term.getBackgroundColor2015-06-28T12:18:36Z<p>MKlegoman357: Created page with "{{Lowercase}} {{Function |name=term.getBackgroundColor |args= |returns={{type|number}} color code |api=term |addon=ComputerCraft |desc=Gets the current background color of the..."</p>
<hr />
<div>{{Lowercase}}<br />
{{Function<br />
|name=term.getBackgroundColor<br />
|args=<br />
|returns={{type|number}} color code<br />
|api=term<br />
|addon=ComputerCraft<br />
|desc=Gets the current background color of the terminal. Returns the same decimal color codes as seen in [[Colors_(API)#Colors|this page]]. Also available as '''term.getBackgroundColour''' for British spelling.<br />
<br><br />
See also: [[term.setBackgroundColor]]()<br />
|examples=<br />
{{Example<br />
|desc=Prints the current background color of the terminal.<br />
|code=local currentBackgroundColor = '''term.getBackgroundColor()'''<br />
<br />
[[print]]( "The current background color is: ", currentBackgroundColor )<br />
}}<br />
{{Example<br />
|desc=Prints the current background color name (rather than the number) of the terminal.<br />
|code=local currentBackgroundColor = '''term.getBackgroundColor()'''<br />
local colorName = "Unknown"<br />
<br />
for key, value in pairs( colors ) do ''-- find the name of the color''<br />
if value == currentBackgroundColor then<br />
colorName = key<br />
break<br />
end<br />
end<br />
<br />
[[print]]( "The current background color is: ", colorName )<br />
}}<br />
}}<br />
<br />
[[Category:API_Functions]]</div>MKlegoman357http://www.computercraft.info/wiki/index.php?title=Term.setTextColor&diff=7077Term.setTextColor2015-06-28T12:13:08Z<p>MKlegoman357: Updated/Improved</p>
<hr />
<div>{{lowercase}}<br />
{{Function<br />
|name=term.setTextColor<br />
|args= {{type|number}} color code<br />
|returns={{type|nil}}<br />
|api=term<br />
|addon=ComputerCraft<br />
|desc=Changes the text color of the terminal. For ease of use, it is best to use the color codes provided in the [[colors (API)|colors API]]. Note that non-advanced systems only have black and white displays, though the text color may still be set to either of these four colors: black, white, gray and light gray. Also available as '''term.setTextColour''' for British spelling.<br />
<br><br />
See also: [[term.getTextColor]]()<br />
|examples=<br />
{{Example<br />
|desc=Outputs the words "Hello World!" in color green:<br />
|code= '''term.setTextColor( [[Colors_(API)|colors.green]] )'''<br />
[[print]]( "Hello World! ")<br />
}}<br />
}}<br />
<br />
[[Category:API_Functions]]</div>MKlegoman357http://www.computercraft.info/wiki/index.php?title=Term.getTextColor&diff=7076Term.getTextColor2015-06-28T12:08:51Z<p>MKlegoman357: </p>
<hr />
<div>{{Lowercase}}<br />
{{Function<br />
|name=term.getTextColor<br />
|args=<br />
|returns={{type|number}} color code<br />
|api=term<br />
|addon=ComputerCraft<br />
|desc=Gets the current text color of the terminal. Returns the same decimal color codes as seen in [[Colors_(API)#Colors|this page]]. Also available as '''term.getTextColour''' for British spelling.<br />
<br><br />
See also: [[term.setTextColor]]()<br />
|examples=<br />
{{Example<br />
|desc=Prints the current text color of the terminal.<br />
|code=local currentTextColor = '''term.getTextColor()'''<br />
<br />
[[print]]( "The current text color is: ", currentTextColor )<br />
}}<br />
{{Example<br />
|desc=Prints the current text color name (rather than the number) of the terminal.<br />
|code=local currentTextColor = '''term.getTextColor()'''<br />
local colorName = "Unknown"<br />
<br />
for key, value in pairs( colors ) do ''-- find the name of the color''<br />
if value == currentTextColor then<br />
colorName = key<br />
break<br />
end<br />
end<br />
<br />
[[print]]( "The current text color is: ", colorName )<br />
}}<br />
}}<br />
<br />
[[Category:API_Functions]]</div>MKlegoman357http://www.computercraft.info/wiki/index.php?title=Term.getTextColor&diff=7075Term.getTextColor2015-06-28T12:08:02Z<p>MKlegoman357: Created page with "{{Lowercase}} {{Function |name=term.getTextColor |args= |returns={{type|number}} color code |api=term |addon=ComputerCraft |desc=Gets the current foreground color of the termi..."</p>
<hr />
<div>{{Lowercase}}<br />
{{Function<br />
|name=term.getTextColor<br />
|args=<br />
|returns={{type|number}} color code<br />
|api=term<br />
|addon=ComputerCraft<br />
|desc=Gets the current foreground color of the terminal. Returns the same decimal color codes as seen in [[Colors_(API)#Colors|this page]]. Also available as '''term.getTextColour''' for British spelling.<br />
<br><br />
See also: [[term.setTextColor]]()<br />
|examples=<br />
{{Example<br />
|desc=Prints the current text color of the terminal.<br />
|code=local currentTextColor = '''term.getTextColor()'''<br />
<br />
[[print]]( "The current text color is: ", currentTextColor )<br />
}}<br />
{{Example<br />
|desc=Prints the current text color name (rather than the number) of the terminal.<br />
|code=local currentTextColor = '''term.getTextColor()'''<br />
local colorName = "Unknown"<br />
<br />
for key, value in pairs( colors ) do ''-- find the name of the color''<br />
if value == currentTextColor then<br />
colorName = key<br />
break<br />
end<br />
end<br />
<br />
[[print]]( "The current text color is: ", colorName )<br />
}}<br />
}}<br />
<br />
[[Category:API_Functions]]</div>MKlegoman357http://www.computercraft.info/wiki/index.php?title=Template:Changelog&diff=7074Template:Changelog2015-06-28T11:57:24Z<p>MKlegoman357: </p>
<hr />
<div>{| class="wikitable sortable" style="width: 100%"<br />
! style="width: 15%" | Version<br />
! class="unsortable" | New Features or Changes<br />
! style="width: 15%" | Minecraft Version<br />
|-<br />
|align=center|[http://www.computercraft.info/2015/06/27/computercraft-1-74/ ComputerCraft 1.74]<br />
|<br />
*Added tab completion to [[Edit|“edit”]], [[Lua|“lua”]] and the [[shell]].<br />
*Added [[textutils.complete]](), [[fs.complete]](), [[shell.complete]](), [[shell.setCompletionFunction]]() and [[help.complete]]().<br />
*Added tab completion options to [[read]]().<br />
*Added [[key_up_(event)|“key_up”]] and [[mouse_up_(event)|“mouse_up”]] events.<br />
*Non-advanced terminals now accept both grey [[Color_(API)|colour]]s.<br />
*Added [[term.getTextColor]](), [[term.getBackgroundColor]]() and [[term.blit]]().<br />
*Improved the performance of text rendering on [[Advanced Computer]]s.<br />
*Added a “Run” button to the [[edit|“edit”]] program on [[Advanced Computer]]s.<br />
*[[Turtle]]s can now push players and entities ([[ComputerCraft.cfg|configurable]]).<br />
*[[Turtle]]s now respect server spawn protection ([[ComputerCraft.cfg|configurable]]).<br />
*Added a turtle permissions API for mod authors.<br />
*Implemented a subset of the Lua 5.2 API so programs can be written against it now, ahead of a future Lua version upgrade.<br />
*Added a [[ComputerCraft.cfg|config option]] to disable parts of the Lua 5.1 API which will be removed when a future Lua version upgrade happens.<br />
*[[Command Computer]]s can no longer be broken by survival players.<br />
*Fixed the “pick block” key not working on ComputerCraft items in creative mode.<br />
*Fixed the [[edit|“edit”]] program being hard to use on certain European keyboards.<br />
*Added “_CC_VERSION” and “_MC_VERSION” constants.<br />
|align=center|1.7.10<br />
|-<br />
|align=center|[http://www.computercraft.info/2015/02/22/computercraft-1-73/ ComputerCraft 1.71 - 1.73]<br />
|<br />
*[CC 1.71] The [[exec|“exec”]] program, [[commands.exec]]() and all related [[Command Computer]] functions now return the console output of the command.<br />
*[CC 1.72 - 1.73] Fixed two multiplayer-only crash bugs when placing certain blocks.<br />
|align=center|1.7.10<br />
|-<br />
|align=center|[http://www.computercraft.info/2015/02/15/computercraft-1-7/ ComputerCraft 1.7]<br />
|<br />
*Added [[Command Computer]]s.<br />
*Added new API: [[commands_(API)|commands]].<br />
*Added new programs: [[commands]], [[exec]].<br />
*Added [[textutils.serializeJSON]]().<br />
*Added ILuaContext.executeMainThreadTask() for peripheral developers.<br />
*[[Disk Drive]]s and [[Printer]]s can now be renamed with Anvils.<br />
*Fixed problems with HD texture packs.<br />
*Fixed various bugs and crashes.<br />
*Documented all the new features in the in-game help system.<br />
|align=center|1.7.10<br />
|-<br />
|align=center|[http://www.computercraft.info/2014/10/09/computercraft-1-65/ ComputerCraft 1.65]<br />
|<br />
*Fixed a multiplayer-only crash with [[turtle.place]]().<br />
*Fixed some problems with [[http.post]]().<br />
*Fixed [[fs.getDrive]]() returning incorrect results on remote peripherals.<br />
|align=center|1.7.10<br />
|-<br />
|align=center|[http://www.computercraft.info/2014/09/27/computercraft-1-64/ ComputerCraft 1.64]<br />
|<br />
*Ported to Minecraft 1.7.10.<br />
*New [[turtle_(API)|turtle API]] functions: [[turtle.inspect]](), [[turtle.inspectUp]](), [[turtle.inspectDown]](), [[turtle.getItemDetail]]().<br />
*Lots of bug fixes and crash fixes, a huge stability improvement over previous versions.<br />
*New [[paintutils_(API)|paintutils API]] functions: [[paintutils.drawBox]]( startX, startY, endX, endY [, color] ), [[paintutils.drawFilledBox]]( startX, startY, endX, endY [, color] ).<br />
|align=center|1.7.10<br />
|-<br />
|align=center|[http://www.computercraft.info/2014/04/16/computercraft-1-63/ ComputerCraft 1.63]<br />
|<br />
*[[Turtle]]s can now be painted with dyes, and cleaned with water buckets.<br />
*Added a new game: [[Redirection]] – ComputerCraft Edition by [http://www.computercraft.info/forums2/index.php?/user/16414-ramilego4game/ RamiLego] (type “redirection” on an Advanced Computer to play).<br />
*[[Turtle]] label nameplates now only show when the [[Turtle]] is moused-over.<br />
*The HTTP API is now enabled by default, and can be configured with a whitelist of permitted domains.<br />
*[[http.get]]() and [[http.post]]() now accept parameters to control the request headers.<br />
*New [[Fs_(API)|fs API]] function: [[fs.getDir]]( path ).<br />
*Fixed some bugs.<br />
|align=center|1.6.4<br />
|-<br />
|align=center|[http://www.computercraft.info/2014/04/04/computercraft-1-62/ ComputerCraft 1.62]<br />
|<br />
*Fixed some bugs which were crashing the game.<br />
*[[Chat]] now supports IRC commands.<br />
|align=center|1.6.4<br />
|-<br />
|align=center|[http://www.computercraft.info/2014/04/01/computercraft-1-61-bug-fix-update/ ComputerCraft 1.61]<br />
|<br />
*Fixed a bug where newly placed [[Computer]]s would share their folder structure until game restart.<br />
*Fixed a bug where running [[Computer]]s might not automatically restart as the game did so.<br />
|align=center|1.6.4<br />
|-<br />
|align=center|[http://www.computercraft.info/2014/03/27/computercraft-1-6-is-here/ ComputerCraft 1.6]<br />
|<br />
*Added [[Pocket Computer]]s.<br />
*Added a [[Multishell|multi-tasking system]] for [[Advanced Computer]]s and [[Turtle]]s.<br />
*[[Turtle]]s can now [[Equip|swap out their tools and peripherals]] at runtime.<br />
*[[Turtle]]s can now carry two tools or peripherals at once in any combination.<br />
*[[Turtle]]s and [[Computer]]s can now be labelled using Name Tags and Anvils.<br />
*Added a [[ComputerCraft.cfg|configurable fuel limit]] for [[Turtle]]s.<br />
*Added hostnames, protocols and long distance routing to the [[Rednet (API)|rednet API]].<br />
*Added a peer-to-peer [[chat]] program to demonstrate new rednet capabilities.<br />
*Added a new game, only on [[Pocket Computer]]s: “[[falling]]” by [http://www.computercraft.info/forums2/index.php?/user/3545-gopheratl/ GopherATL].<br />
*File system commands in the shell now accept wildcard arguments.<br />
*The shell now accepts long arguments in quotes.<br />
*[[term.redirect|Terminal redirection]] now no longer uses a stack-based system. Instead: [[term.current]]() gets the current terminal object and [[term.redirect]]() replaces it. [[term.restore]]() has been removed.<br />
*Added a new [[Window (API)|Windowing API]] for addressing sub-areas of the terminal.<br />
*New programs: [[fg]], [[bg]], [[multishell]], [[chat]], [[repeat]], [[Redstone (program)|redstone]], [[equip]], [[unequip]].<br />
*Improved programs: [[copy]], [[move]], [[delete]], [[rename]], [[paint]], [[CraftOS|shell]].<br />
*Removed programs: redset, redprobe, redpulse.<br />
*New [[:Category:APIs|APIs]]: [[Window (API)|window]], [[Multishell (API)|multishell]].<br />
*New [[Turtle (API)|turtle API]] functions: [[turtle.equipLeft]](), [[turtle.equipRight]](), [[turtle.getFuelLimit]](), [[turtle.getSelectedSlot]]().<br />
*New [[Peripheral (API)|peripheral API]] functions: [[peripheral.find]]( [type] ).<br />
*New [[Rednet (API)|rednet API]] functions: [[rednet.host]]( protocol, hostname ), [[rednet.unhost]]( protocol ), [[rednet.lookup]]( protocol, [hostname] ).<br />
*Improved [[Rednet (API)|rednet API]] functions: [[rednet.send]](), [[rednet.broadcast]]() and [[rednet.receive]]() now take optional protocol parameters.<br />
*New [[fs (API)|fs API]] function: [[fs.find]]( wildcard ).<br />
*New [[Shell (API)|shell API]] functions: [[shell.openTab]]( command ), [[shell.switchTab]]( number ).<br />
*New event “[[Term_resize_(event)|term_resize]]” fired when the size of a terminal changes.<br />
*[[turtle.craft]](0) and [[turtle.refuel]](0) now return true if there is a valid recipe or fuel item, but do not craft or refuel anything.<br />
*[[turtle.suck]]( [limit] ) can now be used to limit the number of items picked up.<br />
*Users of [[turtle.dig]]() and [[turtle.attack]]() can now specify which side of the turtle to look for a tool to use (by default, both will be considered).<br />
*[[textutils.serialize]]() now produces human-readable output.<br />
*Refactored most of the codebase and fixed many old bugs and instabilities, [[Turtle]]s should never ever lose their content now.<br />
*Fixed the “[[turtle_inventory_(event)|turtle_inventory]]” event firing when it shouldn’t have.<br />
*Added error messages to many more [[Turtle_(API)|turtle API]] functions after they return false.<br />
*Documented all new programs and API changes in the “[[help]]” system.<br />
|align=center|1.6.4<br />
|-<br />
|align=center|[http://www.computercraft.info/2013/12/09/computercraft-1-58/ ComputerCraft 1.58]<br />
|<br />
*Fixed a long standing bug where [[Turtle]]s could lose their identity.<br />
*Fixed use of deprecated code, ensuring mod compatibility with the latest versions of Minecraft Forge and world compatibility with future versions of Minecraft.<br />
|align=center|1.6.4<br />
|-<br />
|align=center|[http://www.computercraft.info/2013/10/14/new-versions/ ComputerCraft 1.57]<br />
|<br />
*Ported to Minecraft 1.6.4.<br />
*Added two new [[Treasure Disks]]: Conway’s Game of Life by [http://www.computercraft.info/forums2/index.php?/user/1823-vilsol/ vilsol] and Protector by [http://www.computercraft.info/forums2/index.php?/user/6929-fredthead/ fredthead].<br />
*Fixed a very nasty item duplication bug.<br />
|align=center|1.6.4<br />
|-<br />
|align=center|[http://www.computercraft.info/2013/08/04/computercraft-1-56/ ComputerCraft 1.56]<br />
|<br />
*Added [[Treasure Disks]]: Rare [[Floppy Disk]]s found only in dungeons, which contain fun programs made by the community. Find them all!<br />
*All [[Turtle_(API)|turtle API]] functions now return additional error messages when they fail.<br />
*Resource Packs with Lua Programs can now be loaded when extracted to a folder, for easier editing.<br />
|align=center|1.6.2<br />
|-<br />
|align=center|[http://www.computercraft.info/2013/07/11/computercraft-1-55/ Computercraft 1.55]<br />
|<br />
*Ported to Minecraft 1.6.2.<br />
*Added [[Advanced Turtle]]s.<br />
*Added [[turtle_inventory_(event)|“turtle_inventory”]] event. Fires when any change is made to the inventory of a [[Turtle]].<br />
*Added missing [[IO_(API)|io API]] functions: io.close, io.flush, io.input, io.lines, io.output.<br />
*Tweaked the screen colours used by [[Advanced Computer]]s, [[Advanced Monitor]]s and [[Advanced Turtle]]s.<br />
*Added several new features for Peripheral authors.<br />
*Lua programs can now be included in Resource Packs.<br />
|align=center|1.6.2<br />
|-<br />
|align=center|[http://www.computercraft.info/2013/05/23/computercraft-1-53/ ComputerCraft 1.53]<br />
|<br />
*Ported to Minecraft 1.5.2.<br />
*[[redstone.setBundledOutput]]() and [[redstone.getBundledOutput]]() now work with cables from Minefactory Reloaded, as well as RedPower.<br />
*[[Monitor]]s and [[Advanced Monitor]]s can now be placed on floors and ceilings.<br />
|align=center|1.5.2<br />
|-<br />
|align=center|[http://www.computercraft.info/2013/03/26/computercraft-1-52/ Computercraft 1.52]<br />
|<br />
*Ported to Minecraft 1.5.1.<br />
|align=center|1.5.1<br />
|-<br />
|align=center|[http://www.computercraft.info/2013/03/15/computercraft-1-51/ Computercraft 1.51]<br />
|<br />
*Ported to Minecraft 1.5.<br />
*Added [[Wired Modem]]s.<br />
*Added [[Networking Cable]]s.<br />
*Made [[Wireless Modem]]s more expensive to craft.<br />
*New [[redstone_(API)|redstone API]] functions: [[redstone.getAnalogInput]](), [[redstone.setAnalogOutput]](), [[redstone.getAnalogOutput]]().<br />
*Peripherals can now be controlled remotely over wired networks.<br />
*New [[peripheral_(API)|peripheral API]] function: [[peripheral.getNames]]().<br />
*New event: [[monitor_resize_(event)|“monitor_resize”]]is fired when the size of a monitor changes.<br />
*Except for labelled [[Computer]]s and [[Turtle]]s, ComputerCraft blocks no longer drop items in creative mode.<br />
*The pick block function works in creative mode now works for all ComputerCraft blocks.<br />
*All blocks and items now use the IDs numbers assigned by FTB by default.<br />
*Fixed [[Turtle]]s sometimes placing blocks with incorrect orientations.<br />
*Fixed [[Wireless Modem]]s being able to send messages to themselves.<br />
*Fixed [[turtle.attack]]() having a very short range.<br />
*Various bugfixes.<br />
|align=center|1.5<br />
|-<br />
|align=center|[http://www.computercraft.info/2013/02/11/computercraft-1-5/ Computercraft 1.5]<br />
|<br />
*Redesigned [[Wireless Modem]]s; they can now send and receive on multiple channels, independent of the computer ID. To use these features, interface with modem peripherals [[Modem_(API)|directly]]. The [[Rednet_(API)|rednet API]] still functions as before.<br />
*[[Floppy Disk]]s can now be dyed with multiple dyes, just like armour.<br />
*The [[Excavate|“excavate”]] program now retains fuel in it’s inventory, so can run unattended.<br />
*[[turtle.place]]() now tries all possible block orientations before failing.<br />
*[[turtle.refuel]](0) returns true if a fuel item is selected.<br />
*[[turtle.craft]](0) returns true if the inventory is a valid recipe.<br />
*The in-game help system now has documentation for all the peripherals and their methods, including the new [[Modem]] functionality.<br />
*A romantic surprise.<br />
|align=center|1.4.7<br />
|-<br />
|align=center|[http://www.computercraft.info/2012/12/27/computercraft-1-481-miscperipherals-fix/ Computercraft 1.481]<br />
|<br />
*Fixed compatibility bug with MiscPeripherals.<br />
|align=center|1.4.6<br />
|-<br />
|align=center|[http://www.computercraft.info/2012/12/23/computercraft-1-48/ Computercraft 1.48]<br />
|<br />
*Ported to Minecraft 1.4.6.<br />
*[[Advanced Monitor]]s can now be used as touchscreens.<br />
*[[Advanced Monitor]]s are now easier to craft.<br />
*[[Turtle]]s now get slightly less movement from fuel.<br />
*[[Turtle]]s can now push items.<br />
*[[Computer]]s can now [[Command_Block_(API)|control Command Blocks]], if enabled in the [[ComputerCraft.cfg|config]].<br />
*New [[OS_(API)|os API]] function: [[os.day]]().<br />
*A Christmas surprise.<br />
|align=center|1.4.6<br />
|-<br />
|align=center|[http://www.computercraft.info/2012/11/15/computercraft-1-47-and-minecon-news/ ComputerCraft 1.47]<br />
|<br />
*Ported to Minecraft 1.4.4.<br />
*Fixed label tooltips not showing up in SMP.<br />
|align=center|1.4.4<br />
|-<br />
|align=center|[http://www.computercraft.info/2012/10/25/computercraft-1-46-minecraft-update/ ComputerCraft 1.46]<br />
|<br />
*Ported to Minecraft 1.4.2.<br />
*ComputerCraft items now have their own tab in Creative Mode.<br />
|align=center|1.4.2<br />
|-<br />
|align=center|[http://www.computercraft.info/2012/10/22/computercraft-1-45-now-with-colors/ ComputerCraft 1.45]<br />
|<br />
*Added [[Advanced Computer]]s.<br />
*Added [[Advanced Monitor]]s.<br />
*New program: [[paint]] (by [http://www.computercraft.info/forums2/index.php?/user/643-nitrogenfingers/ nitrogenfingers]).<br />
*New API: [[paintutils_(API)|paintutils]].<br />
*New term functions: [[term.setBackgroundColor]]( color ), [[term.setTextColor]]( color ), [[term.isColor]]().<br />
*New [[Turtle|Turtle API]] function: [[turtle.transferTo]]().<br />
|align=center|1.3.2<br />
|-<br />
|align=center|[http://www.computercraft.info/2012/10/04/computercraft-1-43-books/ ComputerCraft 1.43]<br />
|<br />
*Added [[Printed Page]]s (bind several [[Printed Page]] items into one with a string).<br />
*Added [[Printed_book|Printed Books]] (add a leather cover to the above).<br />
*Labelled [[Turtle]]s now keep their fuel when broken.<br />
*Fixed incompatibility with Forge 275 and above.<br />
|align=center|1.3.2<br />
|-<br />
|align=center|[http://www.computercraft.info/2012/09/22/computercraft-1-42-is-released/ ComputerCraft 1.42]<br />
|<br />
*Ported to Minecraft 1.3.2 and the Forge mod system.<br />
*Added [[Printer]]s.<br />
*[[Floppy Disk]]s can now be dyed different colours.<br />
*[[Turtle|Wireless Crafty Turtles]] can now be crafted.<br />
*All new textures.<br />
*New Forge [[ComputerCraft.cfg|config file]].<br />
*Various tweaks and bug fixes.<br />
|align=center|1.3.2<br />
|-<br />
|align=center|[http://www.computercraft.info/2012/07/29/computercraft-1-41-bugfix-update/ ComputerCraft 1.41]<br />
|<br />
*Fixed labelled [[Computer]]s not keeping their data when destroyed.<br />
*Fixed the [[Excavate|“excavate”]] program outputting lots of spam.<br />
*File system size limits now take into account empty files and directories.<br />
*Some small changes to the Turtle Upgrade API ahead of it’s impending release. (Update: The API has now been released).<br />
|align=center|1.2.5<br />
|-<br />
|align=center|[http://www.computercraft.info/2012/07/27/computercraft-1-4-is-released/ ComputerCraft 1.4]<br />
|<br />
*Ported to Forge Mod Loader: ComputerCraft can now be ran directly from the .zip without extraction.<br />
*Added Farming [[Turtle]]s, Felling [[Turtle]]s, Digging [[Turtle]]s, Melee [[Turtle]]s and Crafty [[Turtle]]s.<br />
*Added 14 new [[Turtle]] combinations accessible by combining the turtle upgrades above.<br />
*Labelled [[Computer]]s and [[Turtle]]s can now be crafted into [[Turtle]]s or other [[Turtle]] types without losing their ID, label and data.<br />
*Added a “[[Turtle]] Upgrade API” for mod developers to create their own tools and peripherals for [[Turtle]]s.<br />
*[[Turtle]]s can now attack entities with [[turtle.attack]]() and collect their dropped items.<br />
*[[Turtle]]s can now use [[turtle.place]]() with any item the player can and can interact with entities.<br />
*[[Turtle]]s can now craft items with [[turtle.craft]]().<br />
*[[Turtle]]s can now place items into inventories with [[turtle.drop]]().<br />
*Changed the behaviour of [[turtle.place]]() and [[turtle.drop]]() to only consider the currently selected slot.<br />
*[[Turtle]]s can now pick up items from the ground or from inventories with [[turtle.suck]]().<br />
*[[Turtle]]s can now compare items in their inventories.<br />
*[[Turtle]]s can place signs with text on them with [[turtle.place]]( [signText] ).<br />
*[[Turtle]]s now optionally require fuel items to move, and can [[turtle.refuel|refuel]] themselves.<br />
*The size of the the [[Turtle]] inventory has been increased to 16 slots.<br />
*The size of the [[Turtle]] screen has been increased.<br />
*New [[Turtle_(API)|turtle API]] functions: [[turtle.compareTo]]( [slotNum] ), [[turtle.craft]](), [[turtle.attack]](), [[turtle.attackUp]](), [[turtle.attackDown]](), [[turtle.dropUp]](), [[turtle.dropDown]](), [[turtle.getFuelLevel]](), [[turtle.refuel]]().<br />
*New [[Disk_(API)|disk API]] function: [[disk.getID]]().<br />
*New [[Turtle]] programs: [[craft]], [[refuel]].<br />
*[[Excavate|“excavate”]] program is now much smarter: will return items to a chest when full, attack mobs, and refuel itself automatically.<br />
*New API: [[Keys_(API)|keys]].<br />
*Added optional [[Floppy Disk]] and Hard Drive space limits for [[Computer]]s and [[Turtle]]s.<br />
*New [[Fs_(API)|fs API]] function: [[fs.getFreeSpace]]( path ). Also [[fs.getDrive]]() works again.<br />
*The send and receive range of wireless modems now increases with altitude, allowing long range networking from high-altitude [[Computer]]s (great for GPS networks).<br />
*[[http.request]]() now supports <code>https://</code> URLs.<br />
*Right clicking a [[Disk Drive]] with a [[Floppy Disk]] or a Record when sneaking will insert the item into the [[Disk Drive]] automatically.<br />
*The default size of the [[Computer]] screen has been increased.<br />
*Several stability and security fixes: LuaJ can now no longer leave dangling threads when a [[Computer]] is unloaded, [[Turtle]]s can no longer be destroyed by tree leaves or walking off the edge of the loaded map. [[Computer]]s no longer crash when used with RedPower frames.<br />
|align=center|1.2.5<br />
|-<br />
|align=center|[http://www.computercraft.info/2012/04/23/computercraft-updated-to-1-2-5/ ComputerCraft 1.33]<br />
|<br />
*Ported to Minecraft 1.2.5.<br />
|align=center|1.2.5<br />
|-<br />
|align=center|[http://www.computercraft.info/2012/03/30/computercraft-1-32-out-now/ ComputerCraft 1.32]<br />
|<br />
*Ported to Minecraft 1.2.4.<br />
*Fixed a big memory leak in LuaJ that caused extra threads to stay around forever when [[Computer]]s were shut down.<br />
|align=center|1.2.4<br />
|-<br />
|align=center|[http://www.computercraft.info/2012/03/13/computercraft-1-31-is-released/ ComputerCraft 1.31]<br />
|<br />
*Ported to Minecraft 1.2.3.<br />
*Added [[Monitor]]s (thanks to Cloudy). Build huge external displays for your [[Computer]]s!<br />
*New positioning capabilities for [[Computer]]s and [[Turtle]]s. Build GPS networks and triangulate the positions of your [[Turtle]]'s position so they never get lost!<br />
*New [[turtle.compare]]() function for [[Turtle]]s for more intelligent mining.<br />
*New programs and APIs: [[Gps_(program)|gps]], [[Monitor_(program)|monitor]], [[Vector_(API)|vector API]].<br />
*New program: [[Pastebin_(program)|pastebin]] (requires <code>enableAPI_HTTP=1</code> in [[ComputerCraft.cfg]]), upload and download programs made by other users ingame!<br />
*Added a new top secret program designed for use with [[Monitor]]s, see if you can find it.<br />
*Lots of additions to existing APIs and programs. Type "help whatsnew" in game for full details.<br />
|align=center|1.2.3<br />
|-<br />
|align=center|[http://www.computercraft.info/2012/02/23/computercraft-1-3-trailer/ ComputerCraft 1.3]<br />
|<br />
*Ported to Minecraft Forge.<br />
*Added [[Turtle]]s, Mining [[Turtle]]s, Wireless [[Turtle]]s and Wireless Mining [[Turtle]]s (Block ID 209).<br />
*Added a Peripheral API to allow mod developers to create custom peripherals for ComputerCraft. Details on this will be posted in the next few days.<br />
*Added [[Wireless Modem]]s. Use the [[Rednet_(API)|rednet API]] to send data wirelessly between [[Computer]]s and [[Turtle]]s!<br />
*[[Computer]]s and [[Disk Drive]]s no longer get destroyed by water.<br />
*[[Computer]]s and [[Turtle]]s can now be labelled, destroyed, and moved around, keeping their state.<br />
*[[Computer]]s and [[Turtle]]s can connect to adjacent devices and turn them on or off.<br />
*User programs now give line numbers in their error messages, for easier debugging.<br />
*New APIs and programs for [[Turtle]]s: [[Turtle_(API)|turtle]], [[excavate]], [[tunnel]], [[go]], [[turn]] and [[dance]].<br />
*Lots of additions to existing APIs and programs. Type "help whatsnew" in game for the full details.<br />
|align=center|1.1<br />
|-<br />
|align=center|ComputerCraft 1.21<br />
|<br />
*Added shortcut key to shutdown the computer (CTRL + S).<br />
*Added a [[Help_(API)|help API]] add-on pack.<br />
*Various bug fixes.<br />
|align=center|1.1<br />
|-<br />
|align=center|ComputerCraft 1.2<br />
|<br />
*Added [[Disk Drive]]s.<br />
*Added shortcut keys to terminate the current program (CTRL + T) and reboot the computer (CTRL + R).<br />
*Added [[os.loadAPI|a new system]] for user created APIs.<br />
*Added [[Rednet_(API)|RedNet]].<br />
*Added [[shell.setPath]]() and [[shell.setAlias]]().<br />
*Added a new ROM startup script.<br />
*Added [[os.clock]](), [[os.time]]() and [[os.setAlarm]]().<br />
*Added game: [[Worm|"Worm!"]].<br />
*Added programs: [[alias]], [[apis]], [[copy]], [[delete]], [[dj]], [[drive]], [[eject]], [[id]], [[label]], [[list]], [[move]], [[reboot]], [[redset]], [[rename]], [[time]].<br />
*Added APIs: [[Bit_(API)|bit]], [[Colours_(API)|colours]], [[Disk_(API)|disk]], [[Help_(API)|help]], [[Rednet_(API)|rednet]], [[Parallel_(API)|parallel]], [[Textutils_(API)|textutils]].<br />
*Text can be edited with left and right arrow keys.<br />
*Many bug fixes.<br />
|align=center|1.0<br />
|-<br />
|align=center|ComputerCraft 1.11<br />
|<br />
*Fixed bug where [[Computer]]s could not read input from RedPower cables which had a bend in the immediately adjacent square.<br />
|align=center|1.0<br />
|-<br />
|align=center|ComputerCraft 1.1<br />
|<br />
*Changed the default block ID for the [[Computer]] to 207.<br />
*Added multiplayer support.<br />
*Added connectivity with RedPower bundled cables.<br />
*Added [[HTTP_(API)|HTTP API]].<br />
*Fixed support for HD textures on the front of [[Computer]]s.<br />
*Added command history to the [[Computer]].<br />
*Added [[ComputerCraft.cfg|config]] options to change the size of the [[Computer]] GUI and the text color.<br />
*Programs with infinite loops that don't yield will no longer freeze Minecraft and will terminate after 10 seconds.<br />
*Extended Help and fixed typos/small errors in various programs.<br />
|align=center|1.0<br />
|-<br />
|align=center|ComputerCraft 1.02<br />
|<br />
*Fixed the MCPatcher HD textures incompatibility that was causing the computer texture to replace cobblestone blocks.<br />
|align=center|1.0<br />
|-<br />
|align=center|ComputerCraft 1.01<br />
|<br />
*Added a ModLoader configuration file, so the computers block ID can be changed.<br />
*Made the error message that displays when Lua files are not correctly installed much more clear, no more "Assertion failed."<br />
|align=center|1.0<br />
|-<br />
|align=center|ComputerCraft 1.0<br />
|<br />
*First Release.<br />
|align=center|1.0<br />
|}</div>MKlegoman357http://www.computercraft.info/wiki/index.php?title=Os.pullEvent&diff=7073Os.pullEvent2015-06-28T11:53:41Z<p>MKlegoman357: /* Event types */ Updated to ComputerCraft 1.74</p>
<hr />
<div>{{lowercase}}<br />
{{Function<br />
|name=os.pullEvent<br />
|args=[<nowiki></nowiki>{{type|string}} filter]<br />
|api=OS<br />
|returns={{type|string}} event, {{type|any}} param1, param2, ... (see table below)<br />
|addon=ComputerCraft<br />
|desc=Waits (yields) until an event occurs, and returns details about that event before removing it from the event queue. If a "filter" is specified, it will wait until an event matching that type is found in the queue - any events that enter the queue ''before'' that one are also removed, so take care not to "discard" ones you don't need!<br><br><br />
<br />
Be aware that many other functions (most any that "pause" or "wait" for any amount of time) make use of os.pullEvent(). For example, calling [[Os.sleep|sleep()]] will [[os.startTimer|start a timer]], then wait for a [[timer_(event)|timer event]] to occur. If any other events happen before that timer event enters the queue (notably, those generated by [[Rednet (API)|rednet messages]] sent to the computer), they'll be discarded. In many cases use of the [[Parallel (API)|Parallel API functions]] offers a simple way around this, but if you need to listen for multiple event types at once it's generally best to forgo the filter and use if/then statements to respond according to what event type you get.<br><br><br />
<br />
If Ctrl+T is held, a [[terminate (event)|terminate event]] will be generated - if os.pullEvent() (or by extension, any function that uses it) spots this in the queue it will exit your script. This is not the case with the near-identical [[os.pullEventRaw|os.pullEventRaw()]].<br><br><br />
<br />
[[#How it works|See below]] for more detailed information on the command.<br><br>See also: [[os.pullEventRaw|os.pullEventRaw()]]<br />
|examples=<br />
{{Example<br />
|desc=The program requires to wait for a keypress to do something:<br />
|code=<br />
while true do<br />
[[print]]( "Press E to do something." )<br />
<br />
local event, key = '''os.pullEvent( "key" )''' -- limit os.pullEvent to the [[Key_(event)|'key']] event<br />
<br />
if key == [[Keys_(API)|keys]].e then -- if the key pressed was 'e'<br />
[[print]]( "You pressed [E]. Exiting program..." )<br />
break<br />
end<br />
end<br />
}}<br />
|notes=* When you press a key on the keyboard that is a printable character ("''A''", "'']''", etc...) [[char_(event)|"char"]] and [[key_(event)|"key"]] events are both fired, commonly the "key" event is first fired and after it "char" event is fired.<br />
}}<br />
<br />
__TOC__<br />
<br />
== Common syntax ==<br />
<br />
local event, param1, param2, param3 = '''os.pullEvent()'''<br />
<br />
Note: This is one of the most commonly used functions that can return multiple values.<br />
It works like any other function call (such as "local input = read()") except that you can get more than one piece of information back.<br />
<br />
== How it works ==<br />
When os.pullEvent() is called, the computer waits until an event occurs.<br />
Events can be triggered by several different things, such as a key being pressed or a redstone input changing.<br />
They are usually triggered by ComputerCraft itself, when it needs to notify the computer that something happened.<br />
They can also be triggered by peripherals, or by your program calling [[os.queueEvent]].<br />
<br />
More complicated input, such as "the user typing a line of text," does ''not'' correspond to any one single event.<br />
[[read]] handles this inside itself by waiting for the user to press a key, then updating the screen, moving the cursor, etc.<br />
<br />
Events have a type (which is a string) and 0-5 parameters (which are often but not always strings).<br />
No built-in events use more than 5 parameters.<br />
<br />
When an event occurs, the event type, followed by the parameters, will be returned. If you have:<br />
<br />
local event, button, x, y = '''os.pullEvent()'''<br />
<br />
and the user clicks the mouse at coordinates 5,4 then:<br />
* event will be set to "mouse_click" (the event type)<br />
* button will be set to 0 (the first parameter)<br />
* x will be set to 5 (the second parameter)<br />
* y will be set to 4 (the third parameter)<br />
<br />
Note that in this example, we didn't specify a filter. If you specify a filter, then all events of different types will be ignored.<br />
If the user inserts a disk, instead of clicking the mouse, then event will be "disk", button will be the side the disk drive is on, and x and y will be nil.<br />
<br />
If we wanted to only wait for mouse clicks we could use:<br />
<br />
local event, button, x, y = '''os.pullEvent("mouse_click")'''<br />
<br />
which will ignore any events that are not mouse clicks.<br />
<br />
If you assign more variables than necessary, the extra ones will be set to nil.<br />
If you assign fewer variables than necessary, the extra parameters will be discarded.<br />
<br />
==Event types==<br />
{| class="wikitable" width="100%"<br />
! rowspan="2" | Name<br />
! rowspan="2" | Description<br />
! colspan="5" | Parameters<br />
|-<br />
! 1 !! 2 !! 3 !! 4 !! 5<br />
|-<br />
! scope="row" | [[char (event)|char]]<br />
|Fired when text is typed on the keyboard<br />
| {{type|string}} the letter typed<br />
|<br />
|<br />
|<br />
|<br />
|-<br />
! scope="row" | [[key (event)|key]]<br />
|Fired when a key is pressed on the keyboard<br />
|{{type|number}} numerical keycode<br />
|{{type|boolean}} is being held<br />
|<br />
|<br />
|<br />
|-<br />
! scope="row" | [[key_up (event)|key_up]]<br />
|Fired when a key is released<br />
|{{type|number}} numerical keycode<br />
|<br />
|<br />
|<br />
|<br />
|-<br />
! scope="row" | [[paste (event)|paste]]<br />
|Fired when Ctrl + V is pressed on the keyboard<br />
|{{type|string}} system clipboard text<br />
|<br />
|<br />
|<br />
|<br />
|-<br />
! scope="row" | [[timer (event)|timer]]<br />
|Fired when a timeout started by [[os.startTimer]]() completes<br />
|{{type|number}} Value of the timer as returned by os.startTimer()<br />
|<br />
|<br />
|<br />
|<br />
|-<br />
! scope="row" | [[alarm (event)|alarm]]<br />
|Fired when a time passed to [[os.setAlarm]]() is reached<br />
|{{type|number}} Value of the alarm as returned by os.setAlarm()<br />
|<br />
|<br />
|<br />
|<br />
|-<br />
! scope="row" | [[task_complete_(event)|task_complete]]<br />
|Fired when an asynchronous task completes. Used by every [[commands_(API)|commands API]] method internally which yields, including [[commands.execAsync]](), but excluding [[commands.getBlockPosition]](). Also used internally by every [[Command_Block_(API)|command block's method]].<br />
|{{type|number}} taskID<br />
|{{type|boolean}} success<br />
|[<nowiki/>{{type|string}} error]<br />
|{{type|any}} param1, param2, ...<br />
|<br />
|-<br />
! scope="row" | [[redstone (event)|redstone]]<br />
|Fired when the state of any of the redstone inputs change<br />
|<br />
|<br />
|<br />
|<br />
|<br />
|-<br />
! scope="row" | [[terminate (event)|terminate]]<br />
|Fired when a combination of keys CTRL and T is pressed and held for three seconds.<br />
You will not normally see this event, as it is handled inside os.pullEvent.<br />
|<br />
|<br />
|<br />
|<br />
|<br />
|-<br />
! scope="row" | [[disk (event)|disk]]<br />
|Fired when a disk is inserted into an adjacent disk drive<br />
|{{type|string}} side<br />
|<br />
|<br />
|<br />
|<br />
|-<br />
! scope="row" | [[disk_eject (event)|disk_eject]]<br />
|Fired when a disk is removed from an adjacent disk drive<br />
|{{type|string}} side<br />
|<br />
|<br />
|<br />
|<br />
|-<br />
! scope="row" | [[peripheral (event)|peripheral]]<br />
|Fired when peripheral is attached<br />
|{{type|string}} side<br />
|<br />
|<br />
|<br />
|<br />
|-<br />
! scope="row" | [[peripheral_detach (event)| peripheral_detach]]<br />
|Fired when peripheral is removed<br />
|{{type|string}} side<br />
|<br />
|<br />
|<br />
|<br />
|-<br />
! scope="row" | [[rednet_message (event)|rednet_message]]<br />
|Fired when a rednet message is received from the [[Rednet_(API)|rednet API]]<br />
|{{type|number}} senderID<br />
|{{type|any}} message<br />
|{{type|string}} protocol / {{type|number}} distance travelled<br />
|<br />
|<br />
|-<br />
! scope="row" | [[modem_message (event)|modem_message]]<br />
|Fired when a modem message is received from the [[modem]]<br />
|{{type|string}} side<br />
|{{type|number}} frequency<br />
|{{type|number}} replyFrequency<br />
|{{type|any}} message<br />
|{{type|number}} distance travelled<br />
|-<br />
! scope="row" | [[http_success (event)|http_success]]<br />
|Fired when an attempt to receive text from / post text on a website is successful.<br />
You will not normally see this event as it is handled inside http.get.<br />
|{{type|string}} url of the site<br />
|{{type|table}} text on the site<br />
|<br />
|<br />
|<br />
|-<br />
! scope="row" | [[http_failure (event)|http_failure]]<br />
|Fired when an attempt to receive text from / post text on a website is unsuccessful<br />
You will not normally see this event as it is handled inside http.get.<br />
|{{type|string}} url of the site<br />
|<br />
|<br />
|<br />
|<br />
|-<br />
! scope="row" | [[mouse_click (event)|mouse_click]]<br />
|Fired when a mouse button is pressed<br />
|{{type|number}} mouse button<br />
|{{type|number}} x coordinate<br />
|{{type|number}} y coordinate<br />
|<br />
|<br />
|-<br />
! scope="row" | [[mouse_up (event)|mouse_up]]<br />
|Fired when a mouse button is released<br />
|{{type|number}} mouse button<br />
|{{type|number}} x coordinate<br />
|{{type|number}} y coordinate<br />
|<br />
|<br />
|-<br />
! scope="row" | [[mouse_scroll (event)|mouse_scroll]]<br />
|Fired when a mousewheel is scrolled.<br />
|{{type|number}} scroll direction (-1 for up, 1 for down)<br />
|{{type|number}} x coordinate(in screen chars)<br />
|{{type|number}} y coordinate(in screen chars)<br />
|<br />
|<br />
|-<br />
! scope="row" | [[mouse_drag (event)|mouse_drag]]<br />
|Fired when the mouse is moved after clicking.<br />
|{{type|number}} mouse button<br />
|{{type|number}} x coordinate(in screen chars)<br />
|{{type|number}} y coordinate(in screen chars)<br />
|<br />
|<br />
|-<br />
! scope="row" | [[monitor_touch (event)|monitor_touch]]<br />
|Fired when a player right clicks on a connected advanced monitor.<br />
|{{type|string}} side<br />
|{{type|number}} x coordinate(in screen chars)<br />
|{{type|number}} y coordinate(in screen chars)<br />
|<br />
|<br />
|-<br />
! scope="row" | [[monitor_resize (event)|monitor_resize]]<br />
|Fired when a connected monitor resizes.<br />
|{{type|string}} side<br />
|<br />
|<br />
|<br />
|<br />
|-<br />
! scope="row" | [[Term_resize_(event)|term_resize]]<br />
|Fired when the terminal resizes.<br />
|<br />
|<br />
|<br />
|<br />
|<br />
|-<br />
! scope="row" | [[turtle_inventory_(event)|turtle_inventory]]<br />
|Fired when the inventory on a [[Turtle]] is changed.<br />
|<br />
|<br />
|<br />
|<br />
|<br />
|}<br />
<br />
== Guides ==<br />
* [http://www.computercraft.info/forums2/index.php?/topic/1516-ospullevent-what-is-it-and-how-is-it-useful/page__view__findpost__p__11156 ''Onionnion's Guide on os.pullEvent()'']<br />
* [[Raw key events]]<br />
<br />
[[Category:Lua_Core_Functions]]</div>MKlegoman357http://www.computercraft.info/wiki/index.php?title=Template:Changelog&diff=7072Template:Changelog2015-06-28T11:49:09Z<p>MKlegoman357: </p>
<hr />
<div>{| class="wikitable sortable" style="width: 100%"<br />
! style="width: 15%" | Version<br />
! class="unsortable" | New Features or Changes<br />
! style="width: 15%" | Minecraft Version<br />
|-<br />
|align=center|[http://www.computercraft.info/2015/06/27/computercraft-1-74/ ComputerCraft 1.74]<br />
|<br />
*Added tab completion to [[Edit|“edit”]], [[Lua|“lua”]] and the [[shell]].<br />
*Added [[textutils.complete]](), [[fs.complete]](), [[shell.complete]](), [[shell.setCompletionFunction]]() and [[help.complete]]().<br />
*Added tab completion options to [[read]]().<br />
*Added [[key_up_(event)|“key_up”]] and [[mouse_up_(event)|“mouse_up”]] events.<br />
*Non-advanced terminals now accept both grey [[Color_(API)|colour]]s.<br />
*Added [[term.getTextColour]](), [[term.getBackgroundColour]]() and [[term.blit]]().<br />
*Improved the performance of text rendering on [[Advanced Computer]]s.<br />
*Added a “Run” button to the [[edit|“edit”]] program on [[Advanced Computer]]s.<br />
*[[Turtle]]s can now push players and entities ([[ComputerCraft.cfg|configurable]]).<br />
*[[Turtle]]s now respect server spawn protection ([[ComputerCraft.cfg|configurable]]).<br />
*Added a turtle permissions API for mod authors.<br />
*Implemented a subset of the Lua 5.2 API so programs can be written against it now, ahead of a future Lua version upgrade.<br />
*Added a [[ComputerCraft.cfg|config option]] to disable parts of the Lua 5.1 API which will be removed when a future Lua version upgrade happens.<br />
*[[Command Computer]]s can no longer be broken by survival players.<br />
*Fixed the “pick block” key not working on ComputerCraft items in creative mode.<br />
*Fixed the [[edit|“edit”]] program being hard to use on certain European keyboards.<br />
*Added “_CC_VERSION” and “_MC_VERSION” constants.<br />
|align=center|1.7.10<br />
|-<br />
|align=center|[http://www.computercraft.info/2015/02/22/computercraft-1-73/ ComputerCraft 1.71 - 1.73]<br />
|<br />
*[CC 1.71] The [[exec|“exec”]] program, [[commands.exec]]() and all related [[Command Computer]] functions now return the console output of the command.<br />
*[CC 1.72 - 1.73] Fixed two multiplayer-only crash bugs when placing certain blocks.<br />
|align=center|1.7.10<br />
|-<br />
|align=center|[http://www.computercraft.info/2015/02/15/computercraft-1-7/ ComputerCraft 1.7]<br />
|<br />
*Added [[Command Computer]]s.<br />
*Added new API: [[commands_(API)|commands]].<br />
*Added new programs: [[commands]], [[exec]].<br />
*Added [[textutils.serializeJSON]]().<br />
*Added ILuaContext.executeMainThreadTask() for peripheral developers.<br />
*[[Disk Drive]]s and [[Printer]]s can now be renamed with Anvils.<br />
*Fixed problems with HD texture packs.<br />
*Fixed various bugs and crashes.<br />
*Documented all the new features in the in-game help system.<br />
|align=center|1.7.10<br />
|-<br />
|align=center|[http://www.computercraft.info/2014/10/09/computercraft-1-65/ ComputerCraft 1.65]<br />
|<br />
*Fixed a multiplayer-only crash with [[turtle.place]]().<br />
*Fixed some problems with [[http.post]]().<br />
*Fixed [[fs.getDrive]]() returning incorrect results on remote peripherals.<br />
|align=center|1.7.10<br />
|-<br />
|align=center|[http://www.computercraft.info/2014/09/27/computercraft-1-64/ ComputerCraft 1.64]<br />
|<br />
*Ported to Minecraft 1.7.10.<br />
*New [[turtle_(API)|turtle API]] functions: [[turtle.inspect]](), [[turtle.inspectUp]](), [[turtle.inspectDown]](), [[turtle.getItemDetail]]().<br />
*Lots of bug fixes and crash fixes, a huge stability improvement over previous versions.<br />
*New [[paintutils_(API)|paintutils API]] functions: [[paintutils.drawBox]]( startX, startY, endX, endY [, color] ), [[paintutils.drawFilledBox]]( startX, startY, endX, endY [, color] ).<br />
|align=center|1.7.10<br />
|-<br />
|align=center|[http://www.computercraft.info/2014/04/16/computercraft-1-63/ ComputerCraft 1.63]<br />
|<br />
*[[Turtle]]s can now be painted with dyes, and cleaned with water buckets.<br />
*Added a new game: [[Redirection]] – ComputerCraft Edition by [http://www.computercraft.info/forums2/index.php?/user/16414-ramilego4game/ RamiLego] (type “redirection” on an Advanced Computer to play).<br />
*[[Turtle]] label nameplates now only show when the [[Turtle]] is moused-over.<br />
*The HTTP API is now enabled by default, and can be configured with a whitelist of permitted domains.<br />
*[[http.get]]() and [[http.post]]() now accept parameters to control the request headers.<br />
*New [[Fs_(API)|fs API]] function: [[fs.getDir]]( path ).<br />
*Fixed some bugs.<br />
|align=center|1.6.4<br />
|-<br />
|align=center|[http://www.computercraft.info/2014/04/04/computercraft-1-62/ ComputerCraft 1.62]<br />
|<br />
*Fixed some bugs which were crashing the game.<br />
*[[Chat]] now supports IRC commands.<br />
|align=center|1.6.4<br />
|-<br />
|align=center|[http://www.computercraft.info/2014/04/01/computercraft-1-61-bug-fix-update/ ComputerCraft 1.61]<br />
|<br />
*Fixed a bug where newly placed [[Computer]]s would share their folder structure until game restart.<br />
*Fixed a bug where running [[Computer]]s might not automatically restart as the game did so.<br />
|align=center|1.6.4<br />
|-<br />
|align=center|[http://www.computercraft.info/2014/03/27/computercraft-1-6-is-here/ ComputerCraft 1.6]<br />
|<br />
*Added [[Pocket Computer]]s.<br />
*Added a [[Multishell|multi-tasking system]] for [[Advanced Computer]]s and [[Turtle]]s.<br />
*[[Turtle]]s can now [[Equip|swap out their tools and peripherals]] at runtime.<br />
*[[Turtle]]s can now carry two tools or peripherals at once in any combination.<br />
*[[Turtle]]s and [[Computer]]s can now be labelled using Name Tags and Anvils.<br />
*Added a [[ComputerCraft.cfg|configurable fuel limit]] for [[Turtle]]s.<br />
*Added hostnames, protocols and long distance routing to the [[Rednet (API)|rednet API]].<br />
*Added a peer-to-peer [[chat]] program to demonstrate new rednet capabilities.<br />
*Added a new game, only on [[Pocket Computer]]s: “[[falling]]” by [http://www.computercraft.info/forums2/index.php?/user/3545-gopheratl/ GopherATL].<br />
*File system commands in the shell now accept wildcard arguments.<br />
*The shell now accepts long arguments in quotes.<br />
*[[term.redirect|Terminal redirection]] now no longer uses a stack-based system. Instead: [[term.current]]() gets the current terminal object and [[term.redirect]]() replaces it. [[term.restore]]() has been removed.<br />
*Added a new [[Window (API)|Windowing API]] for addressing sub-areas of the terminal.<br />
*New programs: [[fg]], [[bg]], [[multishell]], [[chat]], [[repeat]], [[Redstone (program)|redstone]], [[equip]], [[unequip]].<br />
*Improved programs: [[copy]], [[move]], [[delete]], [[rename]], [[paint]], [[CraftOS|shell]].<br />
*Removed programs: redset, redprobe, redpulse.<br />
*New [[:Category:APIs|APIs]]: [[Window (API)|window]], [[Multishell (API)|multishell]].<br />
*New [[Turtle (API)|turtle API]] functions: [[turtle.equipLeft]](), [[turtle.equipRight]](), [[turtle.getFuelLimit]](), [[turtle.getSelectedSlot]]().<br />
*New [[Peripheral (API)|peripheral API]] functions: [[peripheral.find]]( [type] ).<br />
*New [[Rednet (API)|rednet API]] functions: [[rednet.host]]( protocol, hostname ), [[rednet.unhost]]( protocol ), [[rednet.lookup]]( protocol, [hostname] ).<br />
*Improved [[Rednet (API)|rednet API]] functions: [[rednet.send]](), [[rednet.broadcast]]() and [[rednet.receive]]() now take optional protocol parameters.<br />
*New [[fs (API)|fs API]] function: [[fs.find]]( wildcard ).<br />
*New [[Shell (API)|shell API]] functions: [[shell.openTab]]( command ), [[shell.switchTab]]( number ).<br />
*New event “[[Term_resize_(event)|term_resize]]” fired when the size of a terminal changes.<br />
*[[turtle.craft]](0) and [[turtle.refuel]](0) now return true if there is a valid recipe or fuel item, but do not craft or refuel anything.<br />
*[[turtle.suck]]( [limit] ) can now be used to limit the number of items picked up.<br />
*Users of [[turtle.dig]]() and [[turtle.attack]]() can now specify which side of the turtle to look for a tool to use (by default, both will be considered).<br />
*[[textutils.serialize]]() now produces human-readable output.<br />
*Refactored most of the codebase and fixed many old bugs and instabilities, [[Turtle]]s should never ever lose their content now.<br />
*Fixed the “[[turtle_inventory_(event)|turtle_inventory]]” event firing when it shouldn’t have.<br />
*Added error messages to many more [[Turtle_(API)|turtle API]] functions after they return false.<br />
*Documented all new programs and API changes in the “[[help]]” system.<br />
|align=center|1.6.4<br />
|-<br />
|align=center|[http://www.computercraft.info/2013/12/09/computercraft-1-58/ ComputerCraft 1.58]<br />
|<br />
*Fixed a long standing bug where [[Turtle]]s could lose their identity.<br />
*Fixed use of deprecated code, ensuring mod compatibility with the latest versions of Minecraft Forge and world compatibility with future versions of Minecraft.<br />
|align=center|1.6.4<br />
|-<br />
|align=center|[http://www.computercraft.info/2013/10/14/new-versions/ ComputerCraft 1.57]<br />
|<br />
*Ported to Minecraft 1.6.4.<br />
*Added two new [[Treasure Disks]]: Conway’s Game of Life by [http://www.computercraft.info/forums2/index.php?/user/1823-vilsol/ vilsol] and Protector by [http://www.computercraft.info/forums2/index.php?/user/6929-fredthead/ fredthead].<br />
*Fixed a very nasty item duplication bug.<br />
|align=center|1.6.4<br />
|-<br />
|align=center|[http://www.computercraft.info/2013/08/04/computercraft-1-56/ ComputerCraft 1.56]<br />
|<br />
*Added [[Treasure Disks]]: Rare [[Floppy Disk]]s found only in dungeons, which contain fun programs made by the community. Find them all!<br />
*All [[Turtle_(API)|turtle API]] functions now return additional error messages when they fail.<br />
*Resource Packs with Lua Programs can now be loaded when extracted to a folder, for easier editing.<br />
|align=center|1.6.2<br />
|-<br />
|align=center|[http://www.computercraft.info/2013/07/11/computercraft-1-55/ Computercraft 1.55]<br />
|<br />
*Ported to Minecraft 1.6.2.<br />
*Added [[Advanced Turtle]]s.<br />
*Added [[turtle_inventory_(event)|“turtle_inventory”]] event. Fires when any change is made to the inventory of a [[Turtle]].<br />
*Added missing [[IO_(API)|io API]] functions: io.close, io.flush, io.input, io.lines, io.output.<br />
*Tweaked the screen colours used by [[Advanced Computer]]s, [[Advanced Monitor]]s and [[Advanced Turtle]]s.<br />
*Added several new features for Peripheral authors.<br />
*Lua programs can now be included in Resource Packs.<br />
|align=center|1.6.2<br />
|-<br />
|align=center|[http://www.computercraft.info/2013/05/23/computercraft-1-53/ ComputerCraft 1.53]<br />
|<br />
*Ported to Minecraft 1.5.2.<br />
*[[redstone.setBundledOutput]]() and [[redstone.getBundledOutput]]() now work with cables from Minefactory Reloaded, as well as RedPower.<br />
*[[Monitor]]s and [[Advanced Monitor]]s can now be placed on floors and ceilings.<br />
|align=center|1.5.2<br />
|-<br />
|align=center|[http://www.computercraft.info/2013/03/26/computercraft-1-52/ Computercraft 1.52]<br />
|<br />
*Ported to Minecraft 1.5.1.<br />
|align=center|1.5.1<br />
|-<br />
|align=center|[http://www.computercraft.info/2013/03/15/computercraft-1-51/ Computercraft 1.51]<br />
|<br />
*Ported to Minecraft 1.5.<br />
*Added [[Wired Modem]]s.<br />
*Added [[Networking Cable]]s.<br />
*Made [[Wireless Modem]]s more expensive to craft.<br />
*New [[redstone_(API)|redstone API]] functions: [[redstone.getAnalogInput]](), [[redstone.setAnalogOutput]](), [[redstone.getAnalogOutput]]().<br />
*Peripherals can now be controlled remotely over wired networks.<br />
*New [[peripheral_(API)|peripheral API]] function: [[peripheral.getNames]]().<br />
*New event: [[monitor_resize_(event)|“monitor_resize”]]is fired when the size of a monitor changes.<br />
*Except for labelled [[Computer]]s and [[Turtle]]s, ComputerCraft blocks no longer drop items in creative mode.<br />
*The pick block function works in creative mode now works for all ComputerCraft blocks.<br />
*All blocks and items now use the IDs numbers assigned by FTB by default.<br />
*Fixed [[Turtle]]s sometimes placing blocks with incorrect orientations.<br />
*Fixed [[Wireless Modem]]s being able to send messages to themselves.<br />
*Fixed [[turtle.attack]]() having a very short range.<br />
*Various bugfixes.<br />
|align=center|1.5<br />
|-<br />
|align=center|[http://www.computercraft.info/2013/02/11/computercraft-1-5/ Computercraft 1.5]<br />
|<br />
*Redesigned [[Wireless Modem]]s; they can now send and receive on multiple channels, independent of the computer ID. To use these features, interface with modem peripherals [[Modem_(API)|directly]]. The [[Rednet_(API)|rednet API]] still functions as before.<br />
*[[Floppy Disk]]s can now be dyed with multiple dyes, just like armour.<br />
*The [[Excavate|“excavate”]] program now retains fuel in it’s inventory, so can run unattended.<br />
*[[turtle.place]]() now tries all possible block orientations before failing.<br />
*[[turtle.refuel]](0) returns true if a fuel item is selected.<br />
*[[turtle.craft]](0) returns true if the inventory is a valid recipe.<br />
*The in-game help system now has documentation for all the peripherals and their methods, including the new [[Modem]] functionality.<br />
*A romantic surprise.<br />
|align=center|1.4.7<br />
|-<br />
|align=center|[http://www.computercraft.info/2012/12/27/computercraft-1-481-miscperipherals-fix/ Computercraft 1.481]<br />
|<br />
*Fixed compatibility bug with MiscPeripherals.<br />
|align=center|1.4.6<br />
|-<br />
|align=center|[http://www.computercraft.info/2012/12/23/computercraft-1-48/ Computercraft 1.48]<br />
|<br />
*Ported to Minecraft 1.4.6.<br />
*[[Advanced Monitor]]s can now be used as touchscreens.<br />
*[[Advanced Monitor]]s are now easier to craft.<br />
*[[Turtle]]s now get slightly less movement from fuel.<br />
*[[Turtle]]s can now push items.<br />
*[[Computer]]s can now [[Command_Block_(API)|control Command Blocks]], if enabled in the [[ComputerCraft.cfg|config]].<br />
*New [[OS_(API)|os API]] function: [[os.day]]().<br />
*A Christmas surprise.<br />
|align=center|1.4.6<br />
|-<br />
|align=center|[http://www.computercraft.info/2012/11/15/computercraft-1-47-and-minecon-news/ ComputerCraft 1.47]<br />
|<br />
*Ported to Minecraft 1.4.4.<br />
*Fixed label tooltips not showing up in SMP.<br />
|align=center|1.4.4<br />
|-<br />
|align=center|[http://www.computercraft.info/2012/10/25/computercraft-1-46-minecraft-update/ ComputerCraft 1.46]<br />
|<br />
*Ported to Minecraft 1.4.2.<br />
*ComputerCraft items now have their own tab in Creative Mode.<br />
|align=center|1.4.2<br />
|-<br />
|align=center|[http://www.computercraft.info/2012/10/22/computercraft-1-45-now-with-colors/ ComputerCraft 1.45]<br />
|<br />
*Added [[Advanced Computer]]s.<br />
*Added [[Advanced Monitor]]s.<br />
*New program: [[paint]] (by [http://www.computercraft.info/forums2/index.php?/user/643-nitrogenfingers/ nitrogenfingers]).<br />
*New API: [[paintutils_(API)|paintutils]].<br />
*New term functions: [[term.setBackgroundColor]]( color ), [[term.setTextColor]]( color ), [[term.isColor]]().<br />
*New [[Turtle|Turtle API]] function: [[turtle.transferTo]]().<br />
|align=center|1.3.2<br />
|-<br />
|align=center|[http://www.computercraft.info/2012/10/04/computercraft-1-43-books/ ComputerCraft 1.43]<br />
|<br />
*Added [[Printed Page]]s (bind several [[Printed Page]] items into one with a string).<br />
*Added [[Printed_book|Printed Books]] (add a leather cover to the above).<br />
*Labelled [[Turtle]]s now keep their fuel when broken.<br />
*Fixed incompatibility with Forge 275 and above.<br />
|align=center|1.3.2<br />
|-<br />
|align=center|[http://www.computercraft.info/2012/09/22/computercraft-1-42-is-released/ ComputerCraft 1.42]<br />
|<br />
*Ported to Minecraft 1.3.2 and the Forge mod system.<br />
*Added [[Printer]]s.<br />
*[[Floppy Disk]]s can now be dyed different colours.<br />
*[[Turtle|Wireless Crafty Turtles]] can now be crafted.<br />
*All new textures.<br />
*New Forge [[ComputerCraft.cfg|config file]].<br />
*Various tweaks and bug fixes.<br />
|align=center|1.3.2<br />
|-<br />
|align=center|[http://www.computercraft.info/2012/07/29/computercraft-1-41-bugfix-update/ ComputerCraft 1.41]<br />
|<br />
*Fixed labelled [[Computer]]s not keeping their data when destroyed.<br />
*Fixed the [[Excavate|“excavate”]] program outputting lots of spam.<br />
*File system size limits now take into account empty files and directories.<br />
*Some small changes to the Turtle Upgrade API ahead of it’s impending release. (Update: The API has now been released).<br />
|align=center|1.2.5<br />
|-<br />
|align=center|[http://www.computercraft.info/2012/07/27/computercraft-1-4-is-released/ ComputerCraft 1.4]<br />
|<br />
*Ported to Forge Mod Loader: ComputerCraft can now be ran directly from the .zip without extraction.<br />
*Added Farming [[Turtle]]s, Felling [[Turtle]]s, Digging [[Turtle]]s, Melee [[Turtle]]s and Crafty [[Turtle]]s.<br />
*Added 14 new [[Turtle]] combinations accessible by combining the turtle upgrades above.<br />
*Labelled [[Computer]]s and [[Turtle]]s can now be crafted into [[Turtle]]s or other [[Turtle]] types without losing their ID, label and data.<br />
*Added a “[[Turtle]] Upgrade API” for mod developers to create their own tools and peripherals for [[Turtle]]s.<br />
*[[Turtle]]s can now attack entities with [[turtle.attack]]() and collect their dropped items.<br />
*[[Turtle]]s can now use [[turtle.place]]() with any item the player can and can interact with entities.<br />
*[[Turtle]]s can now craft items with [[turtle.craft]]().<br />
*[[Turtle]]s can now place items into inventories with [[turtle.drop]]().<br />
*Changed the behaviour of [[turtle.place]]() and [[turtle.drop]]() to only consider the currently selected slot.<br />
*[[Turtle]]s can now pick up items from the ground or from inventories with [[turtle.suck]]().<br />
*[[Turtle]]s can now compare items in their inventories.<br />
*[[Turtle]]s can place signs with text on them with [[turtle.place]]( [signText] ).<br />
*[[Turtle]]s now optionally require fuel items to move, and can [[turtle.refuel|refuel]] themselves.<br />
*The size of the the [[Turtle]] inventory has been increased to 16 slots.<br />
*The size of the [[Turtle]] screen has been increased.<br />
*New [[Turtle_(API)|turtle API]] functions: [[turtle.compareTo]]( [slotNum] ), [[turtle.craft]](), [[turtle.attack]](), [[turtle.attackUp]](), [[turtle.attackDown]](), [[turtle.dropUp]](), [[turtle.dropDown]](), [[turtle.getFuelLevel]](), [[turtle.refuel]]().<br />
*New [[Disk_(API)|disk API]] function: [[disk.getID]]().<br />
*New [[Turtle]] programs: [[craft]], [[refuel]].<br />
*[[Excavate|“excavate”]] program is now much smarter: will return items to a chest when full, attack mobs, and refuel itself automatically.<br />
*New API: [[Keys_(API)|keys]].<br />
*Added optional [[Floppy Disk]] and Hard Drive space limits for [[Computer]]s and [[Turtle]]s.<br />
*New [[Fs_(API)|fs API]] function: [[fs.getFreeSpace]]( path ). Also [[fs.getDrive]]() works again.<br />
*The send and receive range of wireless modems now increases with altitude, allowing long range networking from high-altitude [[Computer]]s (great for GPS networks).<br />
*[[http.request]]() now supports <code>https://</code> URLs.<br />
*Right clicking a [[Disk Drive]] with a [[Floppy Disk]] or a Record when sneaking will insert the item into the [[Disk Drive]] automatically.<br />
*The default size of the [[Computer]] screen has been increased.<br />
*Several stability and security fixes: LuaJ can now no longer leave dangling threads when a [[Computer]] is unloaded, [[Turtle]]s can no longer be destroyed by tree leaves or walking off the edge of the loaded map. [[Computer]]s no longer crash when used with RedPower frames.<br />
|align=center|1.2.5<br />
|-<br />
|align=center|[http://www.computercraft.info/2012/04/23/computercraft-updated-to-1-2-5/ ComputerCraft 1.33]<br />
|<br />
*Ported to Minecraft 1.2.5.<br />
|align=center|1.2.5<br />
|-<br />
|align=center|[http://www.computercraft.info/2012/03/30/computercraft-1-32-out-now/ ComputerCraft 1.32]<br />
|<br />
*Ported to Minecraft 1.2.4.<br />
*Fixed a big memory leak in LuaJ that caused extra threads to stay around forever when [[Computer]]s were shut down.<br />
|align=center|1.2.4<br />
|-<br />
|align=center|[http://www.computercraft.info/2012/03/13/computercraft-1-31-is-released/ ComputerCraft 1.31]<br />
|<br />
*Ported to Minecraft 1.2.3.<br />
*Added [[Monitor]]s (thanks to Cloudy). Build huge external displays for your [[Computer]]s!<br />
*New positioning capabilities for [[Computer]]s and [[Turtle]]s. Build GPS networks and triangulate the positions of your [[Turtle]]'s position so they never get lost!<br />
*New [[turtle.compare]]() function for [[Turtle]]s for more intelligent mining.<br />
*New programs and APIs: [[Gps_(program)|gps]], [[Monitor_(program)|monitor]], [[Vector_(API)|vector API]].<br />
*New program: [[Pastebin_(program)|pastebin]] (requires <code>enableAPI_HTTP=1</code> in [[ComputerCraft.cfg]]), upload and download programs made by other users ingame!<br />
*Added a new top secret program designed for use with [[Monitor]]s, see if you can find it.<br />
*Lots of additions to existing APIs and programs. Type "help whatsnew" in game for full details.<br />
|align=center|1.2.3<br />
|-<br />
|align=center|[http://www.computercraft.info/2012/02/23/computercraft-1-3-trailer/ ComputerCraft 1.3]<br />
|<br />
*Ported to Minecraft Forge.<br />
*Added [[Turtle]]s, Mining [[Turtle]]s, Wireless [[Turtle]]s and Wireless Mining [[Turtle]]s (Block ID 209).<br />
*Added a Peripheral API to allow mod developers to create custom peripherals for ComputerCraft. Details on this will be posted in the next few days.<br />
*Added [[Wireless Modem]]s. Use the [[Rednet_(API)|rednet API]] to send data wirelessly between [[Computer]]s and [[Turtle]]s!<br />
*[[Computer]]s and [[Disk Drive]]s no longer get destroyed by water.<br />
*[[Computer]]s and [[Turtle]]s can now be labelled, destroyed, and moved around, keeping their state.<br />
*[[Computer]]s and [[Turtle]]s can connect to adjacent devices and turn them on or off.<br />
*User programs now give line numbers in their error messages, for easier debugging.<br />
*New APIs and programs for [[Turtle]]s: [[Turtle_(API)|turtle]], [[excavate]], [[tunnel]], [[go]], [[turn]] and [[dance]].<br />
*Lots of additions to existing APIs and programs. Type "help whatsnew" in game for the full details.<br />
|align=center|1.1<br />
|-<br />
|align=center|ComputerCraft 1.21<br />
|<br />
*Added shortcut key to shutdown the computer (CTRL + S).<br />
*Added a [[Help_(API)|help API]] add-on pack.<br />
*Various bug fixes.<br />
|align=center|1.1<br />
|-<br />
|align=center|ComputerCraft 1.2<br />
|<br />
*Added [[Disk Drive]]s.<br />
*Added shortcut keys to terminate the current program (CTRL + T) and reboot the computer (CTRL + R).<br />
*Added [[os.loadAPI|a new system]] for user created APIs.<br />
*Added [[Rednet_(API)|RedNet]].<br />
*Added [[shell.setPath]]() and [[shell.setAlias]]().<br />
*Added a new ROM startup script.<br />
*Added [[os.clock]](), [[os.time]]() and [[os.setAlarm]]().<br />
*Added game: [[Worm|"Worm!"]].<br />
*Added programs: [[alias]], [[apis]], [[copy]], [[delete]], [[dj]], [[drive]], [[eject]], [[id]], [[label]], [[list]], [[move]], [[reboot]], [[redset]], [[rename]], [[time]].<br />
*Added APIs: [[Bit_(API)|bit]], [[Colours_(API)|colours]], [[Disk_(API)|disk]], [[Help_(API)|help]], [[Rednet_(API)|rednet]], [[Parallel_(API)|parallel]], [[Textutils_(API)|textutils]].<br />
*Text can be edited with left and right arrow keys.<br />
*Many bug fixes.<br />
|align=center|1.0<br />
|-<br />
|align=center|ComputerCraft 1.11<br />
|<br />
*Fixed bug where [[Computer]]s could not read input from RedPower cables which had a bend in the immediately adjacent square.<br />
|align=center|1.0<br />
|-<br />
|align=center|ComputerCraft 1.1<br />
|<br />
*Changed the default block ID for the [[Computer]] to 207.<br />
*Added multiplayer support.<br />
*Added connectivity with RedPower bundled cables.<br />
*Added [[HTTP_(API)|HTTP API]].<br />
*Fixed support for HD textures on the front of [[Computer]]s.<br />
*Added command history to the [[Computer]].<br />
*Added [[ComputerCraft.cfg|config]] options to change the size of the [[Computer]] GUI and the text color.<br />
*Programs with infinite loops that don't yield will no longer freeze Minecraft and will terminate after 10 seconds.<br />
*Extended Help and fixed typos/small errors in various programs.<br />
|align=center|1.0<br />
|-<br />
|align=center|ComputerCraft 1.02<br />
|<br />
*Fixed the MCPatcher HD textures incompatibility that was causing the computer texture to replace cobblestone blocks.<br />
|align=center|1.0<br />
|-<br />
|align=center|ComputerCraft 1.01<br />
|<br />
*Added a ModLoader configuration file, so the computers block ID can be changed.<br />
*Made the error message that displays when Lua files are not correctly installed much more clear, no more "Assertion failed."<br />
|align=center|1.0<br />
|-<br />
|align=center|ComputerCraft 1.0<br />
|<br />
*First Release.<br />
|align=center|1.0<br />
|}</div>MKlegoman357http://www.computercraft.info/wiki/index.php?title=ComputerCraft.cfg&diff=7071ComputerCraft.cfg2015-06-28T11:48:19Z<p>MKlegoman357: Updated to ComputerCraft 1.74</p>
<hr />
<div>This is an example of the default ComputerCraft configuration file, as it's seen in version 1.65.<br />
<pre><br />
# Configuration file<br />
<br />
general {<br />
# The fuel limit for Advanced Turtles<br />
I:advancedTurtleFuelLimit=100000<br />
<br />
# The disk space limit for computers and turtles, in bytes<br />
I:computerSpaceLimit=1000000<br />
<br />
# Set this to true to disable Lua 5.1 functions that will be removed in a future update. Useful for ensuring forward compatibility of your programs now.<br />
B:disable_lua51_features=false<br />
<br />
# Enable Command Block peripheral support<br />
B:enableCommandBlock=false<br />
<br />
# The disk space limit for floppy disks, in bytes<br />
I:floppySpaceLimit=125000<br />
<br />
# Enable the "http" API on Computers (see "http_whitelist" for more fine grained control than this)<br />
B:http_enable=true<br />
<br />
# A semicolon limited list of wildcards for domains that can be accessed through the "http" API on Computers. Set this to "*" to access to the entire internet. Example: "*.pastebin.com;*.github.com;*.computercraft.info" will restrict access to just those 3 domains.<br />
S:http_whitelist=*<br />
<br />
# The range of Wireless Modems at maximum altitude in clear weather, in meters<br />
I:modem_highAltitudeRange=384<br />
<br />
# The range of Wireless Modems at maximum altitude in stormy weather, in meters<br />
I:modem_highAltitudeRangeDuringStorm=96<br />
<br />
# The range of Wireless Modems at low altitude in clear weather, in meters<br />
I:modem_range=64<br />
<br />
# The range of Wireless Modems at low altitude in stormy weather, in meters<br />
I:modem_rangeDuringStorm=16<br />
<br />
# The frequency that treasure disks will be found in dungeon chests, from 0 to 100. Increase this value if running a modpack with lots of mods that add dungeon loot, or you just want more treasure disks. Set to 0 to disable treasure disks.<br />
I:treasureDiskLootFrequency=1<br />
<br />
# The fuel limit for Turtles<br />
I:turtleFuelLimit=20000<br />
<br />
# If set to true, Turtles will push entities out of the way instead of stopping if there is space to do so<br />
B:turtlesCanPush=true<br />
<br />
# Set whether Turtles require fuel to move<br />
B:turtlesNeedFuel=true<br />
<br />
# If set to true, Turtles will be unable to build, dig, or enter protected areas (such as near the server spawn point)<br />
B:turtlesObeyBlockProtection=true<br />
}<br />
</pre></div>MKlegoman357http://www.computercraft.info/wiki/index.php?title=Mouse_click_(event)&diff=7070Mouse click (event)2015-06-28T11:45:00Z<p>MKlegoman357: </p>
<hr />
<div>{{lowercase}}<br />
{{Event<br />
|name=mouse_click<br />
|desc=Fired when the terminal of an advanced system is pressed with a mouse. Unavailable to normal systems, as these lack mouse support.<br />
|return1=The mouse button that was clicked. Left Mouse Button is returned as the number 1, Right Mouse Button is returned as the number 2 and Middle Mouse Button is returned as the number 3<br />
|return2=The X-coordinate of the click (in screen-characters).<br />
|return3=The Y-coordinate of the click (in screen-characters).<br />
|examples=<br />
{{Example<br />
|desc=Print the button and the co-ordinates of every mouse click we receive.<br />
|code=<br />
while true do<br />
local event, button, x, y = '''[[os.pullEvent]]( "mouse_click" )'''<br />
<br />
[[print]]( "The mouse button ", button, " was pressed at ", x, " and ", y )<br />
end<br />
|output=The button that was pressed, followed by the X and Y position of the event.<br />
}}<br />
}}</div>MKlegoman357http://www.computercraft.info/wiki/index.php?title=Mouse_up_(event)&diff=7069Mouse up (event)2015-06-28T11:43:10Z<p>MKlegoman357: Created page with "{{lowercase}} {{Event |name=mouse_up |desc=Fired when a mouse key (which was pressed while being inside the computer's terminal) is released. If the mouse button is released o..."</p>
<hr />
<div>{{lowercase}}<br />
{{Event<br />
|name=mouse_up<br />
|desc=Fired when a mouse key (which was pressed while being inside the computer's terminal) is released. If the mouse button is released outside of the computer's display the event is fired as soon as the mouse hovers over the display again.<br />
|return1=The mouse button that was clicked. Left Mouse Button is returned as the number 1, Right Mouse Button is returned as the number 2 and Middle Mouse Button is returned as the number 3<br />
|return2=The X-coordinate of the release (in screen-characters).<br />
|return3=The Y-coordinate of the release (in screen-characters).<br />
|examples=<br />
{{Example<br />
|desc=Print every button, x and y coordinates of every mouse_up event.<br />
|code=<br />
while true do<br />
local event, button, x, y = '''[[os.pullEvent]]( "mouse_up" )'''<br />
<br />
[[print]]( "The mouse button ", button, " was released at ", x, " and ", y )<br />
end<br />
|output=The button that was released, followed by the X and Y position of where it was released.<br />
}}<br />
}}</div>MKlegoman357http://www.computercraft.info/wiki/index.php?title=Key_(event)&diff=7068Key (event)2015-06-28T11:32:19Z<p>MKlegoman357: </p>
<hr />
<div>{{Lowercase}}<br />
{{Event<br />
|name=key<br />
|desc=Fired when any key except Escape is pressed while the terminal is focused.<br />
|return1=The numerical key value of the key pressed<br />
|return2=A boolean indicating whether the key event was generated while holding the key (<var>true</var>), rather than pressing it the first time (<var>false</var>).<br />
}}<br />
{{Example<br />
|desc=Print each key pressed on the keyboard whenever a ''"key"'' event is fired. Use Ctrl+T (Windows)<!--- or ???+T (Mac)---> to terminate the loop.<br />
|code=<br />
while true do<br />
local event, key, isHeld = '''[[os.pullEvent]]("key")'''<br />
<br />
[[write]]( [[keys.getName]]( key ) )<br />
[[print]]( isHeld and " is being held." or " was pressed." )<br />
end<br />
|output=Any key that is pressed.<br />
}}<br />
<br />
==Key scan codes ==<br />
These scan codes are also available as constants in the [[Keys (API)|keys API]], and can be translated from numerical codes to strings using [[keys.getName]].<br />
<br />
[[File:CC-Keyboard-Charcodes.png|center|frame|250x250px|Click for a larger copy of this image - contains keys and their event numbers.]]</div>MKlegoman357http://www.computercraft.info/wiki/index.php?title=Key_up_(event)&diff=7067Key up (event)2015-06-28T11:31:09Z<p>MKlegoman357: Created page with "{{Lowercase}} {{Event |name=key_up |desc=Fired when any key except Escape is released while the terminal is focused. |return1=The numerical key value of the key released }} {{..."</p>
<hr />
<div>{{Lowercase}}<br />
{{Event<br />
|name=key_up<br />
|desc=Fired when any key except Escape is released while the terminal is focused.<br />
|return1=The numerical key value of the key released<br />
}}<br />
{{Example<br />
|desc=Print each key released on the keyboard whenever a ''"key_up"'' event is fired. Use Ctrl+T (Windows)<!--- or ???+T (Mac)---> to terminate the loop.<br />
|code=<br />
while true do<br />
local event, key = '''[[os.pullEvent]]("key_up")'''<br />
<br />
[[print]]( [[keys.getName]]( key ), " was released." )<br />
end<br />
|output=Any key that is released.<br />
}}<br />
<br />
==Key scan codes ==<br />
These scan codes are also available as constants in the [[Keys (API)|keys API]], and can be translated from numerical codes to strings using [[keys.getName]].<br />
<br />
[[File:CC-Keyboard-Charcodes.png|center|frame|250x250px|Click for a larger copy of this image - contains keys and their event numbers.]]</div>MKlegoman357http://www.computercraft.info/wiki/index.php?title=Template:Changelog&diff=7066Template:Changelog2015-06-28T11:27:16Z<p>MKlegoman357: </p>
<hr />
<div>{| class="wikitable sortable" style="width: 100%"<br />
! style="width: 15%" | Version<br />
! class="unsortable" | New Features or Changes<br />
! style="width: 15%" | Minecraft Version<br />
|-<br />
|align=center|[http://www.computercraft.info/2015/06/27/computercraft-1-74/ ComputerCraft 1.74]<br />
|<br />
*Added tab completion to [[Edit|“edit”]], [[Lua|“lua”]] and the [[shell]].<br />
*Added [[textutils.complete]](), [[fs.complete]](), [[shell.complete]](), [[shell.setCompletionFunction]]() and [[help.complete]]().<br />
*Added tab completion options to [[read]]().<br />
*Added [[key_up_(event)|“key_up”]] and [[mouse_up_(event)|“mouse_up”]] events.<br />
*Non-advanced terminals now accept both grey [[Color_(API)|colour]]s.<br />
*Added [[term.getTextColour]](), [[term.getBackgroundColour]]() and [[term.blit]]().<br />
*Improved the performance of text rendering on [[Advanced Computer]]s.<br />
*Added a “Run” button to the [[edit|“edit”]] program on [[Advanced Computer]]s.<br />
*[[Turtle]]s can now push players and entities ([[ComputerCraft.cfg|configurable]]).<br />
*[[Turtle]]s now respect server spawn protection ([[ComputerCraft.cfg|configurable]]).<br />
*Added a turtle permissions API for mod authors.<br />
*Implemented a subset of the Lua 5.2 API so programs can be written against it now, ahead of a future Lua version upgrade.<br />
*Added a config option to disable parts of the Lua 5.1 API which will be removed when a future Lua version upgrade happens.<br />
*[[Command Computer]]s can no longer be broken by survival players.<br />
*Fixed the “pick block” key not working on ComputerCraft items in creative mode.<br />
*Fixed the [[edit|“edit”]] program being hard to use on certain European keyboards.<br />
*Added “_CC_VERSION” and “_MC_VERSION” constants.<br />
|align=center|1.7.10<br />
|-<br />
|align=center|[http://www.computercraft.info/2015/02/22/computercraft-1-73/ ComputerCraft 1.71 - 1.73]<br />
|<br />
*[CC 1.71] The [[exec|“exec”]] program, [[commands.exec]]() and all related [[Command Computer]] functions now return the console output of the command.<br />
*[CC 1.72 - 1.73] Fixed two multiplayer-only crash bugs when placing certain blocks.<br />
|align=center|1.7.10<br />
|-<br />
|align=center|[http://www.computercraft.info/2015/02/15/computercraft-1-7/ ComputerCraft 1.7]<br />
|<br />
*Added [[Command Computer]]s.<br />
*Added new API: [[commands_(API)|commands]].<br />
*Added new programs: [[commands]], [[exec]].<br />
*Added [[textutils.serializeJSON]]().<br />
*Added ILuaContext.executeMainThreadTask() for peripheral developers.<br />
*[[Disk Drive]]s and [[Printer]]s can now be renamed with Anvils.<br />
*Fixed problems with HD texture packs.<br />
*Fixed various bugs and crashes.<br />
*Documented all the new features in the in-game help system.<br />
|align=center|1.7.10<br />
|-<br />
|align=center|[http://www.computercraft.info/2014/10/09/computercraft-1-65/ ComputerCraft 1.65]<br />
|<br />
*Fixed a multiplayer-only crash with [[turtle.place]]().<br />
*Fixed some problems with [[http.post]]().<br />
*Fixed [[fs.getDrive]]() returning incorrect results on remote peripherals.<br />
|align=center|1.7.10<br />
|-<br />
|align=center|[http://www.computercraft.info/2014/09/27/computercraft-1-64/ ComputerCraft 1.64]<br />
|<br />
*Ported to Minecraft 1.7.10.<br />
*New [[turtle_(API)|turtle API]] functions: [[turtle.inspect]](), [[turtle.inspectUp]](), [[turtle.inspectDown]](), [[turtle.getItemDetail]]().<br />
*Lots of bug fixes and crash fixes, a huge stability improvement over previous versions.<br />
*New [[paintutils_(API)|paintutils API]] functions: [[paintutils.drawBox]]( startX, startY, endX, endY [, color] ), [[paintutils.drawFilledBox]]( startX, startY, endX, endY [, color] ).<br />
|align=center|1.7.10<br />
|-<br />
|align=center|[http://www.computercraft.info/2014/04/16/computercraft-1-63/ ComputerCraft 1.63]<br />
|<br />
*[[Turtle]]s can now be painted with dyes, and cleaned with water buckets.<br />
*Added a new game: [[Redirection]] – ComputerCraft Edition by [http://www.computercraft.info/forums2/index.php?/user/16414-ramilego4game/ RamiLego] (type “redirection” on an Advanced Computer to play).<br />
*[[Turtle]] label nameplates now only show when the [[Turtle]] is moused-over.<br />
*The HTTP API is now enabled by default, and can be configured with a whitelist of permitted domains.<br />
*[[http.get]]() and [[http.post]]() now accept parameters to control the request headers.<br />
*New [[Fs_(API)|fs API]] function: [[fs.getDir]]( path ).<br />
*Fixed some bugs.<br />
|align=center|1.6.4<br />
|-<br />
|align=center|[http://www.computercraft.info/2014/04/04/computercraft-1-62/ ComputerCraft 1.62]<br />
|<br />
*Fixed some bugs which were crashing the game.<br />
*[[Chat]] now supports IRC commands.<br />
|align=center|1.6.4<br />
|-<br />
|align=center|[http://www.computercraft.info/2014/04/01/computercraft-1-61-bug-fix-update/ ComputerCraft 1.61]<br />
|<br />
*Fixed a bug where newly placed [[Computer]]s would share their folder structure until game restart.<br />
*Fixed a bug where running [[Computer]]s might not automatically restart as the game did so.<br />
|align=center|1.6.4<br />
|-<br />
|align=center|[http://www.computercraft.info/2014/03/27/computercraft-1-6-is-here/ ComputerCraft 1.6]<br />
|<br />
*Added [[Pocket Computer]]s.<br />
*Added a [[Multishell|multi-tasking system]] for [[Advanced Computer]]s and [[Turtle]]s.<br />
*[[Turtle]]s can now [[Equip|swap out their tools and peripherals]] at runtime.<br />
*[[Turtle]]s can now carry two tools or peripherals at once in any combination.<br />
*[[Turtle]]s and [[Computer]]s can now be labelled using Name Tags and Anvils.<br />
*Added a [[ComputerCraft.cfg|configurable fuel limit]] for [[Turtle]]s.<br />
*Added hostnames, protocols and long distance routing to the [[Rednet (API)|rednet API]].<br />
*Added a peer-to-peer [[chat]] program to demonstrate new rednet capabilities.<br />
*Added a new game, only on [[Pocket Computer]]s: “[[falling]]” by [http://www.computercraft.info/forums2/index.php?/user/3545-gopheratl/ GopherATL].<br />
*File system commands in the shell now accept wildcard arguments.<br />
*The shell now accepts long arguments in quotes.<br />
*[[term.redirect|Terminal redirection]] now no longer uses a stack-based system. Instead: [[term.current]]() gets the current terminal object and [[term.redirect]]() replaces it. [[term.restore]]() has been removed.<br />
*Added a new [[Window (API)|Windowing API]] for addressing sub-areas of the terminal.<br />
*New programs: [[fg]], [[bg]], [[multishell]], [[chat]], [[repeat]], [[Redstone (program)|redstone]], [[equip]], [[unequip]].<br />
*Improved programs: [[copy]], [[move]], [[delete]], [[rename]], [[paint]], [[CraftOS|shell]].<br />
*Removed programs: redset, redprobe, redpulse.<br />
*New [[:Category:APIs|APIs]]: [[Window (API)|window]], [[Multishell (API)|multishell]].<br />
*New [[Turtle (API)|turtle API]] functions: [[turtle.equipLeft]](), [[turtle.equipRight]](), [[turtle.getFuelLimit]](), [[turtle.getSelectedSlot]]().<br />
*New [[Peripheral (API)|peripheral API]] functions: [[peripheral.find]]( [type] ).<br />
*New [[Rednet (API)|rednet API]] functions: [[rednet.host]]( protocol, hostname ), [[rednet.unhost]]( protocol ), [[rednet.lookup]]( protocol, [hostname] ).<br />
*Improved [[Rednet (API)|rednet API]] functions: [[rednet.send]](), [[rednet.broadcast]]() and [[rednet.receive]]() now take optional protocol parameters.<br />
*New [[fs (API)|fs API]] function: [[fs.find]]( wildcard ).<br />
*New [[Shell (API)|shell API]] functions: [[shell.openTab]]( command ), [[shell.switchTab]]( number ).<br />
*New event “[[Term_resize_(event)|term_resize]]” fired when the size of a terminal changes.<br />
*[[turtle.craft]](0) and [[turtle.refuel]](0) now return true if there is a valid recipe or fuel item, but do not craft or refuel anything.<br />
*[[turtle.suck]]( [limit] ) can now be used to limit the number of items picked up.<br />
*Users of [[turtle.dig]]() and [[turtle.attack]]() can now specify which side of the turtle to look for a tool to use (by default, both will be considered).<br />
*[[textutils.serialize]]() now produces human-readable output.<br />
*Refactored most of the codebase and fixed many old bugs and instabilities, [[Turtle]]s should never ever lose their content now.<br />
*Fixed the “[[turtle_inventory_(event)|turtle_inventory]]” event firing when it shouldn’t have.<br />
*Added error messages to many more [[Turtle_(API)|turtle API]] functions after they return false.<br />
*Documented all new programs and API changes in the “[[help]]” system.<br />
|align=center|1.6.4<br />
|-<br />
|align=center|[http://www.computercraft.info/2013/12/09/computercraft-1-58/ ComputerCraft 1.58]<br />
|<br />
*Fixed a long standing bug where [[Turtle]]s could lose their identity.<br />
*Fixed use of deprecated code, ensuring mod compatibility with the latest versions of Minecraft Forge and world compatibility with future versions of Minecraft.<br />
|align=center|1.6.4<br />
|-<br />
|align=center|[http://www.computercraft.info/2013/10/14/new-versions/ ComputerCraft 1.57]<br />
|<br />
*Ported to Minecraft 1.6.4.<br />
*Added two new [[Treasure Disks]]: Conway’s Game of Life by [http://www.computercraft.info/forums2/index.php?/user/1823-vilsol/ vilsol] and Protector by [http://www.computercraft.info/forums2/index.php?/user/6929-fredthead/ fredthead].<br />
*Fixed a very nasty item duplication bug.<br />
|align=center|1.6.4<br />
|-<br />
|align=center|[http://www.computercraft.info/2013/08/04/computercraft-1-56/ ComputerCraft 1.56]<br />
|<br />
*Added [[Treasure Disks]]: Rare [[Floppy Disk]]s found only in dungeons, which contain fun programs made by the community. Find them all!<br />
*All [[Turtle_(API)|turtle API]] functions now return additional error messages when they fail.<br />
*Resource Packs with Lua Programs can now be loaded when extracted to a folder, for easier editing.<br />
|align=center|1.6.2<br />
|-<br />
|align=center|[http://www.computercraft.info/2013/07/11/computercraft-1-55/ Computercraft 1.55]<br />
|<br />
*Ported to Minecraft 1.6.2.<br />
*Added [[Advanced Turtle]]s.<br />
*Added [[turtle_inventory_(event)|“turtle_inventory”]] event. Fires when any change is made to the inventory of a [[Turtle]].<br />
*Added missing [[IO_(API)|io API]] functions: io.close, io.flush, io.input, io.lines, io.output.<br />
*Tweaked the screen colours used by [[Advanced Computer]]s, [[Advanced Monitor]]s and [[Advanced Turtle]]s.<br />
*Added several new features for Peripheral authors.<br />
*Lua programs can now be included in Resource Packs.<br />
|align=center|1.6.2<br />
|-<br />
|align=center|[http://www.computercraft.info/2013/05/23/computercraft-1-53/ ComputerCraft 1.53]<br />
|<br />
*Ported to Minecraft 1.5.2.<br />
*[[redstone.setBundledOutput]]() and [[redstone.getBundledOutput]]() now work with cables from Minefactory Reloaded, as well as RedPower.<br />
*[[Monitor]]s and [[Advanced Monitor]]s can now be placed on floors and ceilings.<br />
|align=center|1.5.2<br />
|-<br />
|align=center|[http://www.computercraft.info/2013/03/26/computercraft-1-52/ Computercraft 1.52]<br />
|<br />
*Ported to Minecraft 1.5.1.<br />
|align=center|1.5.1<br />
|-<br />
|align=center|[http://www.computercraft.info/2013/03/15/computercraft-1-51/ Computercraft 1.51]<br />
|<br />
*Ported to Minecraft 1.5.<br />
*Added [[Wired Modem]]s.<br />
*Added [[Networking Cable]]s.<br />
*Made [[Wireless Modem]]s more expensive to craft.<br />
*New [[redstone_(API)|redstone API]] functions: [[redstone.getAnalogInput]](), [[redstone.setAnalogOutput]](), [[redstone.getAnalogOutput]]().<br />
*Peripherals can now be controlled remotely over wired networks.<br />
*New [[peripheral_(API)|peripheral API]] function: [[peripheral.getNames]]().<br />
*New event: [[monitor_resize_(event)|“monitor_resize”]]is fired when the size of a monitor changes.<br />
*Except for labelled [[Computer]]s and [[Turtle]]s, ComputerCraft blocks no longer drop items in creative mode.<br />
*The pick block function works in creative mode now works for all ComputerCraft blocks.<br />
*All blocks and items now use the IDs numbers assigned by FTB by default.<br />
*Fixed [[Turtle]]s sometimes placing blocks with incorrect orientations.<br />
*Fixed [[Wireless Modem]]s being able to send messages to themselves.<br />
*Fixed [[turtle.attack]]() having a very short range.<br />
*Various bugfixes.<br />
|align=center|1.5<br />
|-<br />
|align=center|[http://www.computercraft.info/2013/02/11/computercraft-1-5/ Computercraft 1.5]<br />
|<br />
*Redesigned [[Wireless Modem]]s; they can now send and receive on multiple channels, independent of the computer ID. To use these features, interface with modem peripherals [[Modem_(API)|directly]]. The [[Rednet_(API)|rednet API]] still functions as before.<br />
*[[Floppy Disk]]s can now be dyed with multiple dyes, just like armour.<br />
*The [[Excavate|“excavate”]] program now retains fuel in it’s inventory, so can run unattended.<br />
*[[turtle.place]]() now tries all possible block orientations before failing.<br />
*[[turtle.refuel]](0) returns true if a fuel item is selected.<br />
*[[turtle.craft]](0) returns true if the inventory is a valid recipe.<br />
*The in-game help system now has documentation for all the peripherals and their methods, including the new [[Modem]] functionality.<br />
*A romantic surprise.<br />
|align=center|1.4.7<br />
|-<br />
|align=center|[http://www.computercraft.info/2012/12/27/computercraft-1-481-miscperipherals-fix/ Computercraft 1.481]<br />
|<br />
*Fixed compatibility bug with MiscPeripherals.<br />
|align=center|1.4.6<br />
|-<br />
|align=center|[http://www.computercraft.info/2012/12/23/computercraft-1-48/ Computercraft 1.48]<br />
|<br />
*Ported to Minecraft 1.4.6.<br />
*[[Advanced Monitor]]s can now be used as touchscreens.<br />
*[[Advanced Monitor]]s are now easier to craft.<br />
*[[Turtle]]s now get slightly less movement from fuel.<br />
*[[Turtle]]s can now push items.<br />
*[[Computer]]s can now [[Command_Block_(API)|control Command Blocks]], if enabled in the [[ComputerCraft.cfg|config]].<br />
*New [[OS_(API)|os API]] function: [[os.day]]().<br />
*A Christmas surprise.<br />
|align=center|1.4.6<br />
|-<br />
|align=center|[http://www.computercraft.info/2012/11/15/computercraft-1-47-and-minecon-news/ ComputerCraft 1.47]<br />
|<br />
*Ported to Minecraft 1.4.4.<br />
*Fixed label tooltips not showing up in SMP.<br />
|align=center|1.4.4<br />
|-<br />
|align=center|[http://www.computercraft.info/2012/10/25/computercraft-1-46-minecraft-update/ ComputerCraft 1.46]<br />
|<br />
*Ported to Minecraft 1.4.2.<br />
*ComputerCraft items now have their own tab in Creative Mode.<br />
|align=center|1.4.2<br />
|-<br />
|align=center|[http://www.computercraft.info/2012/10/22/computercraft-1-45-now-with-colors/ ComputerCraft 1.45]<br />
|<br />
*Added [[Advanced Computer]]s.<br />
*Added [[Advanced Monitor]]s.<br />
*New program: [[paint]] (by [http://www.computercraft.info/forums2/index.php?/user/643-nitrogenfingers/ nitrogenfingers]).<br />
*New API: [[paintutils_(API)|paintutils]].<br />
*New term functions: [[term.setBackgroundColor]]( color ), [[term.setTextColor]]( color ), [[term.isColor]]().<br />
*New [[Turtle|Turtle API]] function: [[turtle.transferTo]]().<br />
|align=center|1.3.2<br />
|-<br />
|align=center|[http://www.computercraft.info/2012/10/04/computercraft-1-43-books/ ComputerCraft 1.43]<br />
|<br />
*Added [[Printed Page]]s (bind several [[Printed Page]] items into one with a string).<br />
*Added [[Printed_book|Printed Books]] (add a leather cover to the above).<br />
*Labelled [[Turtle]]s now keep their fuel when broken.<br />
*Fixed incompatibility with Forge 275 and above.<br />
|align=center|1.3.2<br />
|-<br />
|align=center|[http://www.computercraft.info/2012/09/22/computercraft-1-42-is-released/ ComputerCraft 1.42]<br />
|<br />
*Ported to Minecraft 1.3.2 and the Forge mod system.<br />
*Added [[Printer]]s.<br />
*[[Floppy Disk]]s can now be dyed different colours.<br />
*[[Turtle|Wireless Crafty Turtles]] can now be crafted.<br />
*All new textures.<br />
*New Forge [[ComputerCraft.cfg|config file]].<br />
*Various tweaks and bug fixes.<br />
|align=center|1.3.2<br />
|-<br />
|align=center|[http://www.computercraft.info/2012/07/29/computercraft-1-41-bugfix-update/ ComputerCraft 1.41]<br />
|<br />
*Fixed labelled [[Computer]]s not keeping their data when destroyed.<br />
*Fixed the [[Excavate|“excavate”]] program outputting lots of spam.<br />
*File system size limits now take into account empty files and directories.<br />
*Some small changes to the Turtle Upgrade API ahead of it’s impending release. (Update: The API has now been released).<br />
|align=center|1.2.5<br />
|-<br />
|align=center|[http://www.computercraft.info/2012/07/27/computercraft-1-4-is-released/ ComputerCraft 1.4]<br />
|<br />
*Ported to Forge Mod Loader: ComputerCraft can now be ran directly from the .zip without extraction.<br />
*Added Farming [[Turtle]]s, Felling [[Turtle]]s, Digging [[Turtle]]s, Melee [[Turtle]]s and Crafty [[Turtle]]s.<br />
*Added 14 new [[Turtle]] combinations accessible by combining the turtle upgrades above.<br />
*Labelled [[Computer]]s and [[Turtle]]s can now be crafted into [[Turtle]]s or other [[Turtle]] types without losing their ID, label and data.<br />
*Added a “[[Turtle]] Upgrade API” for mod developers to create their own tools and peripherals for [[Turtle]]s.<br />
*[[Turtle]]s can now attack entities with [[turtle.attack]]() and collect their dropped items.<br />
*[[Turtle]]s can now use [[turtle.place]]() with any item the player can and can interact with entities.<br />
*[[Turtle]]s can now craft items with [[turtle.craft]]().<br />
*[[Turtle]]s can now place items into inventories with [[turtle.drop]]().<br />
*Changed the behaviour of [[turtle.place]]() and [[turtle.drop]]() to only consider the currently selected slot.<br />
*[[Turtle]]s can now pick up items from the ground or from inventories with [[turtle.suck]]().<br />
*[[Turtle]]s can now compare items in their inventories.<br />
*[[Turtle]]s can place signs with text on them with [[turtle.place]]( [signText] ).<br />
*[[Turtle]]s now optionally require fuel items to move, and can [[turtle.refuel|refuel]] themselves.<br />
*The size of the the [[Turtle]] inventory has been increased to 16 slots.<br />
*The size of the [[Turtle]] screen has been increased.<br />
*New [[Turtle_(API)|turtle API]] functions: [[turtle.compareTo]]( [slotNum] ), [[turtle.craft]](), [[turtle.attack]](), [[turtle.attackUp]](), [[turtle.attackDown]](), [[turtle.dropUp]](), [[turtle.dropDown]](), [[turtle.getFuelLevel]](), [[turtle.refuel]]().<br />
*New [[Disk_(API)|disk API]] function: [[disk.getID]]().<br />
*New [[Turtle]] programs: [[craft]], [[refuel]].<br />
*[[Excavate|“excavate”]] program is now much smarter: will return items to a chest when full, attack mobs, and refuel itself automatically.<br />
*New API: [[Keys_(API)|keys]].<br />
*Added optional [[Floppy Disk]] and Hard Drive space limits for [[Computer]]s and [[Turtle]]s.<br />
*New [[Fs_(API)|fs API]] function: [[fs.getFreeSpace]]( path ). Also [[fs.getDrive]]() works again.<br />
*The send and receive range of wireless modems now increases with altitude, allowing long range networking from high-altitude [[Computer]]s (great for GPS networks).<br />
*[[http.request]]() now supports <code>https://</code> URLs.<br />
*Right clicking a [[Disk Drive]] with a [[Floppy Disk]] or a Record when sneaking will insert the item into the [[Disk Drive]] automatically.<br />
*The default size of the [[Computer]] screen has been increased.<br />
*Several stability and security fixes: LuaJ can now no longer leave dangling threads when a [[Computer]] is unloaded, [[Turtle]]s can no longer be destroyed by tree leaves or walking off the edge of the loaded map. [[Computer]]s no longer crash when used with RedPower frames.<br />
|align=center|1.2.5<br />
|-<br />
|align=center|[http://www.computercraft.info/2012/04/23/computercraft-updated-to-1-2-5/ ComputerCraft 1.33]<br />
|<br />
*Ported to Minecraft 1.2.5.<br />
|align=center|1.2.5<br />
|-<br />
|align=center|[http://www.computercraft.info/2012/03/30/computercraft-1-32-out-now/ ComputerCraft 1.32]<br />
|<br />
*Ported to Minecraft 1.2.4.<br />
*Fixed a big memory leak in LuaJ that caused extra threads to stay around forever when [[Computer]]s were shut down.<br />
|align=center|1.2.4<br />
|-<br />
|align=center|[http://www.computercraft.info/2012/03/13/computercraft-1-31-is-released/ ComputerCraft 1.31]<br />
|<br />
*Ported to Minecraft 1.2.3.<br />
*Added [[Monitor]]s (thanks to Cloudy). Build huge external displays for your [[Computer]]s!<br />
*New positioning capabilities for [[Computer]]s and [[Turtle]]s. Build GPS networks and triangulate the positions of your [[Turtle]]'s position so they never get lost!<br />
*New [[turtle.compare]]() function for [[Turtle]]s for more intelligent mining.<br />
*New programs and APIs: [[Gps_(program)|gps]], [[Monitor_(program)|monitor]], [[Vector_(API)|vector API]].<br />
*New program: [[Pastebin_(program)|pastebin]] (requires <code>enableAPI_HTTP=1</code> in [[ComputerCraft.cfg]]), upload and download programs made by other users ingame!<br />
*Added a new top secret program designed for use with [[Monitor]]s, see if you can find it.<br />
*Lots of additions to existing APIs and programs. Type "help whatsnew" in game for full details.<br />
|align=center|1.2.3<br />
|-<br />
|align=center|[http://www.computercraft.info/2012/02/23/computercraft-1-3-trailer/ ComputerCraft 1.3]<br />
|<br />
*Ported to Minecraft Forge.<br />
*Added [[Turtle]]s, Mining [[Turtle]]s, Wireless [[Turtle]]s and Wireless Mining [[Turtle]]s (Block ID 209).<br />
*Added a Peripheral API to allow mod developers to create custom peripherals for ComputerCraft. Details on this will be posted in the next few days.<br />
*Added [[Wireless Modem]]s. Use the [[Rednet_(API)|rednet API]] to send data wirelessly between [[Computer]]s and [[Turtle]]s!<br />
*[[Computer]]s and [[Disk Drive]]s no longer get destroyed by water.<br />
*[[Computer]]s and [[Turtle]]s can now be labelled, destroyed, and moved around, keeping their state.<br />
*[[Computer]]s and [[Turtle]]s can connect to adjacent devices and turn them on or off.<br />
*User programs now give line numbers in their error messages, for easier debugging.<br />
*New APIs and programs for [[Turtle]]s: [[Turtle_(API)|turtle]], [[excavate]], [[tunnel]], [[go]], [[turn]] and [[dance]].<br />
*Lots of additions to existing APIs and programs. Type "help whatsnew" in game for the full details.<br />
|align=center|1.1<br />
|-<br />
|align=center|ComputerCraft 1.21<br />
|<br />
*Added shortcut key to shutdown the computer (CTRL + S).<br />
*Added a [[Help_(API)|help API]] add-on pack.<br />
*Various bug fixes.<br />
|align=center|1.1<br />
|-<br />
|align=center|ComputerCraft 1.2<br />
|<br />
*Added [[Disk Drive]]s.<br />
*Added shortcut keys to terminate the current program (CTRL + T) and reboot the computer (CTRL + R).<br />
*Added [[os.loadAPI|a new system]] for user created APIs.<br />
*Added [[Rednet_(API)|RedNet]].<br />
*Added [[shell.setPath]]() and [[shell.setAlias]]().<br />
*Added a new ROM startup script.<br />
*Added [[os.clock]](), [[os.time]]() and [[os.setAlarm]]().<br />
*Added game: [[Worm|"Worm!"]].<br />
*Added programs: [[alias]], [[apis]], [[copy]], [[delete]], [[dj]], [[drive]], [[eject]], [[id]], [[label]], [[list]], [[move]], [[reboot]], [[redset]], [[rename]], [[time]].<br />
*Added APIs: [[Bit_(API)|bit]], [[Colours_(API)|colours]], [[Disk_(API)|disk]], [[Help_(API)|help]], [[Rednet_(API)|rednet]], [[Parallel_(API)|parallel]], [[Textutils_(API)|textutils]].<br />
*Text can be edited with left and right arrow keys.<br />
*Many bug fixes.<br />
|align=center|1.0<br />
|-<br />
|align=center|ComputerCraft 1.11<br />
|<br />
*Fixed bug where [[Computer]]s could not read input from RedPower cables which had a bend in the immediately adjacent square.<br />
|align=center|1.0<br />
|-<br />
|align=center|ComputerCraft 1.1<br />
|<br />
*Changed the default block ID for the [[Computer]] to 207.<br />
*Added multiplayer support.<br />
*Added connectivity with RedPower bundled cables.<br />
*Added [[HTTP_(API)|HTTP API]].<br />
*Fixed support for HD textures on the front of [[Computer]]s.<br />
*Added command history to the [[Computer]].<br />
*Added [[ComputerCraft.cfg|config]] options to change the size of the [[Computer]] GUI and the text color.<br />
*Programs with infinite loops that don't yield will no longer freeze Minecraft and will terminate after 10 seconds.<br />
*Extended Help and fixed typos/small errors in various programs.<br />
|align=center|1.0<br />
|-<br />
|align=center|ComputerCraft 1.02<br />
|<br />
*Fixed the MCPatcher HD textures incompatibility that was causing the computer texture to replace cobblestone blocks.<br />
|align=center|1.0<br />
|-<br />
|align=center|ComputerCraft 1.01<br />
|<br />
*Added a ModLoader configuration file, so the computers block ID can be changed.<br />
*Made the error message that displays when Lua files are not correctly installed much more clear, no more "Assertion failed."<br />
|align=center|1.0<br />
|-<br />
|align=center|ComputerCraft 1.0<br />
|<br />
*First Release.<br />
|align=center|1.0<br />
|}</div>MKlegoman357http://www.computercraft.info/wiki/index.php?title=Key_(event)&diff=7064Key (event)2015-06-28T11:07:27Z<p>MKlegoman357: Updated to ComputerCraft 1.74</p>
<hr />
<div>{{Event<br />
|name=key<br />
|desc=Fired when any key except Escape is pressed while the terminal is focused.<br />
|return1=The numerical key value of the key pressed<br />
|return2=A boolean indicating whether the key event was generated while holding the key (<var>true</var>), rather than pressing it the first time (<var>false</var>).<br />
}}<br />
{{Example<br />
|desc=Print each key pressed on the keyboard whenever a ''"key"'' event is fired. Use Ctrl+T (Windows)<!--- or ???+T (Mac)---> to terminate the loop.<br />
|code=<br />
while true do<br />
local event, key, isHeld = '''[[os.pullEvent]]("key")'''<br />
<br />
[[write]]( [[keys.getName]]( key ) )<br />
[[print]]( isHeld and " is being held." or " was pressed." )<br />
end<br />
|output=Any key that is pressed.<br />
}}<br />
<br />
==Key scan codes ==<br />
These scan codes are also available as constants in the [[Keys (API)|keys API]], and can be translated from numerical codes to strings using [[keys.getName]].<br />
<br />
[[File:CC-Keyboard-Charcodes.png|center|frame|250x250px|Click for a larger copy of this image - contains keys and their event numbers.]]</div>MKlegoman357http://www.computercraft.info/wiki/index.php?title=Template:News&diff=7061Template:News2015-06-28T10:42:58Z<p>MKlegoman357: Added ComputerCraft 1.74</p>
<hr />
<div>'''June 27, 2015'''<br />
* ComputerCraft 1.74 is released for Minecraft '''1.7.10'''.<br />
'''February 24-25, 2015'''<br />
* ComputerCraft 1.72 - 1.73 is released to fix multiplayer-only crashes.<br />
'''February 23, 2015'''<br />
* ComputerCraft 1.71 is released for Minecraft '''1.7.10'''.<br />
'''February 15, 2015'''<br />
* ComputerCraft 1.7 is released for Minecraft '''1.7.10'''.<br />
<noinclude><!-- Only display latest four events.--><br />
'''October 09, 2014'''<br />
* ComputerCraft 1.65 is released as a bug fix update for ComputerCraft 1.64.<br />
'''September 27, 2014'''<br />
* ComputerCraft 1.64 is released for Minecraft '''1.7.10'''.<br />
'''April 16, 2014'''<br />
* ComputerCraft 1.63 is released for Minecraft '''1.6.4'''.<br />
'''April 4, 2014'''<br />
* ComputerCraft 1.62 is released to fix game crashes.<br />
'''April 1, 2014'''<br />
* ComputerCraft 1.61 is released as a bug fix update for ComputerCraft 1.6.<br />
'''March 27, 2014'''<br />
* ComputerCraft 1.6 is released for Minecraft '''1.6.4'''.<br />
'''December 9, 2013'''<br />
* ComputerCraft 1.58 is released for Minecraft '''1.6.4'''.<br />
'''October 14, 2013'''<br />
* ComputerCraft 1.57 is released for Minecraft '''1.6.4'''.<br />
'''August 4, 2013'''<br />
* ComputerCraft 1.56 is released for Minecraft '''1.6.2'''.<br />
'''July 11, 2013'''<br />
* ComputerCraft 1.55 is released for Minecraft '''1.6.2'''.<br />
'''May 23, 2013'''<br />
* ComputerCraft 1.53 is released for Minecraft '''1.5.2'''.<br />
'''March 26, 2013'''<br />
* ComputerCraft 1.52 is released for Minecraft '''1.5.1'''.<br />
'''February 11, 2013'''<br />
* ComputerCraft 1.5 is released for Minecraft '''1.4.7'''.<br />
'''December 27, 2012'''<br />
* ComputerCraft 1.481 is released as a quick hotfix for MiscPeripherals.<br />
</noinclude></div>MKlegoman357http://www.computercraft.info/wiki/index.php?title=Template:Version&diff=7060Template:Version2015-06-28T10:41:26Z<p>MKlegoman357: Added ComputerCraft 1.74</p>
<hr />
<div><!-- ATTENTION WIKI-ENS. Please do not alter the markup on this page,<br />
only change the values inside the table-cells (<td>). Thanks and<br />
love, AfterLifeLochie.<br />
Templates for this page:<br />
** BETA **:<br />
<tr><td style="background-color:#FFE8A8; text-align:center;">ComputerCraft '''%VERSION%''' ''Beta'' for '''Minecraft %MCVERSION%'''</td></tr><br />
** LATEST **:<br />
<tr><td style="background-color:#E5F9FF; text-align:center;">'''Latest:'''<br />ComputerCraft '''%VERSION%''' for '''Minecraft %MCVERSION%'''<br />Latest</td></tr><br />
** OLD **: (alternating cell pattern)<br />
<tr><td style="background-color:#D4D4D4; text-align:center;">ComputerCraft '''%VERSION%''' for '''Minecraft %MCVERSION%'''</td></tr><br />
<tr><td style="background-color:#FFFFFF; text-align:center;">ComputerCraft '''%VERSION%''' for '''Minecraft %MCVERSION%'''</td></tr><br />
--><br />
<table style="width:100%"><br />
<tr><td style="background-color:#E5F9FF; text-align:center;">'''Latest:'''<br />ComputerCraft '''1.74''' for '''Minecraft 1.7.10''' ([http://www.computercraft.info/2015/06/27/computercraft-1-74/ download])</td></tr><br />
<tr><td style="background-color:#FFFFFF; text-align:center;">ComputerCraft '''1.73''' for '''Minecraft 1.7.10''' ([http://www.computercraft.info/2015/02/22/computercraft-1-73/ download])</td></tr><br />
<tr><td style="background-color:#D4D4D4; text-align:center;">ComputerCraft '''1.7''' for '''Minecraft 1.7.10''' ([http://www.computercraft.info/2015/02/15/computercraft-1-7/ download])</td></tr><br />
<tr><td style="background-color:#FFFFFF; text-align:center;">ComputerCraft '''1.65''' for '''Minecraft 1.7.10''' ([http://www.computercraft.info/2014/10/09/computercraft-1-65/ download])</td></tr><br />
<tr><td style="background-color:#D4D4D4; text-align:center;">ComputerCraft '''1.64''' for '''Minecraft 1.7.10''' ([http://www.computercraft.info/2014/09/27/computercraft-1-64/ download])</td></tr><br />
<tr><td style="background-color:#FFFFFF; text-align:center;">ComputerCraft '''1.63''' for '''Minecraft 1.6.4''' ([http://www.computercraft.info/2014/04/16/computercraft-1-63/ download])</td></tr><br />
<noinclude> <!-- 6 newest releases should be enaugh --><br />
<tr><td style="background-color:#D4D4D4; text-align:center;">ComputerCraft '''1.62''' for '''Minecraft 1.6.4'''<br />
([http://www.computercraft.info/2014/04/04/computercraft-1-62/ download])</td></tr><br />
<tr><td style="background-color:#FFFFFF; text-align:center;">ComputerCraft '''1.61''' for '''Minecraft 1.6.4'''<br />
([http://www.computercraft.info/2014/04/01/computercraft-1-61-bug-fix-update/ download])</td></tr><br />
<tr><td style="background-color:#D4D4D4; text-align:center;">ComputerCraft '''1.6''' for '''Minecraft 1.6.4''' ([http://www.computercraft.info/2014/03/27/computercraft-1-6-is-here/ download])</td></tr><br />
<tr><td style="background-color:#FFFFFF; text-align:center;">ComputerCraft '''1.58''' for '''Minecraft 1.6.4''' ([http://www.computercraft.info/2013/12/09/computercraft-1-58/ download])</td></tr><br />
<tr><td style="background-color:#D4D4D4; text-align:center;">ComputerCraft '''1.57''' for '''Minecraft 1.6.4''' ([http://www.computercraft.info/2013/10/14/new-versions/ download])</td></tr><br />
<tr><td style="background-color:#FFFFFF; text-align:center;">ComputerCraft '''1.56''' for '''Minecraft 1.6.2''' ([http://www.computercraft.info/2013/08/04/computercraft-1-56/ download])</td></tr><br />
<tr><td style="background-color:#D4D4D4; text-align:center;">ComputerCraft '''1.55''' for '''Minecraft 1.6.2''' ([http://www.computercraft.info/2013/07/11/computercraft-1-55/ download])</td></tr><br />
<tr><td style="background-color:#FFFFFF; text-align:center;">ComputerCraft '''1.53''' for '''Minecraft 1.5.2''' ([http://www.computercraft.info/2013/05/23/computercraft-1-53/ download])</td></tr><br />
<tr><td style="background-color:#D4D4D4; text-align:center;">ComputerCraft '''1.52''' for '''Minecraft 1.5.1''' ([http://www.computercraft.info/2013/03/26/computercraft-1-52/ download])</td></tr><br />
<tr><td style="background-color:#FFFFFF; text-align:center;">ComputerCraft '''1.51''' for '''Minecraft 1.5''' ([http://www.computercraft.info/2013/03/15/computercraft-1-51/ download])</td></tr><br />
<tr><td style="background-color:#D4D4D4; text-align:center;">ComputerCraft '''1.5''' for '''Minecraft 1.4.7''' ([http://www.computercraft.info/2013/02/11/computercraft-1-5/ download])</td></tr><br />
</noinclude><br />
</table><br />
<center>'''[[Changelog]]'''</center></div>MKlegoman357http://www.computercraft.info/wiki/index.php?title=Template:Changelog&diff=7059Template:Changelog2015-06-28T10:38:56Z<p>MKlegoman357: Added ComputerCraft 1.74</p>
<hr />
<div>{| class="wikitable sortable" style="width: 100%"<br />
! style="width: 15%" | Version<br />
! class="unsortable" | New Features or Changes<br />
! style="width: 15%" | Minecraft Version<br />
|-<br />
|align=center|[http://www.computercraft.info/2015/06/27/computercraft-1-74/ ComputerCraft 1.74]<br />
|<br />
*Added tab completion to [[Edit|“edit”]], [[Lua|“lua”]] and the [[shell]].<br />
*Added [[textutils.complete]](), [[fs.complete]](), [[shell.complete]](), [[shell.setCompletionFunction]]() and [[help.complete]]().<br />
*Added tab completion options to [[read]]().<br />
*Added [[key_up_(event)|“key_up”]] and [[mouse_up_(event)|“mouse_up”]] events.<br />
*Non-advanced terminals now accept both grey [[colour]]s.<br />
*Added [[term.getTextColour]](), [[term.getBackgroundColour]]() and [[term.blit]]().<br />
*Improved the performance of text rendering on [[Advanced Computer]]s.<br />
*Added a “Run” button to the [[edit|“edit”]] program on [[Advanced Computer]]s.<br />
*[[Turtle]]s can now push players and entities ([[configurable]]).<br />
*[[Turtle]]s now respect server spawn protection ([[configurable]]).<br />
*Added a turtle permissions API for mod authors.<br />
*Implemented a subset of the Lua 5.2 API so programs can be written against it now, ahead of a future Lua version upgrade.<br />
*Added a config option to disable parts of the Lua 5.1 API which will be removed when a future Lua version upgrade happens.<br />
*[[Command Computer]]s can no longer be broken by survival players.<br />
*Fixed the “pick block” key not working on ComputerCraft items in creative mode.<br />
*Fixed the [[edit|“edit”]] program being hard to use on certain European keyboards.<br />
*Added “_CC_VERSION” and “_MC_VERSION” constants.<br />
|align=center|1.7.10<br />
|-<br />
|align=center|[http://www.computercraft.info/2015/02/22/computercraft-1-73/ ComputerCraft 1.71 - 1.73]<br />
|<br />
*[CC 1.71] The [[exec|“exec”]] program, [[commands.exec]]() and all related [[Command Computer]] functions now return the console output of the command.<br />
*[CC 1.72 - 1.73] Fixed two multiplayer-only crash bugs when placing certain blocks.<br />
|align=center|1.7.10<br />
|-<br />
|align=center|[http://www.computercraft.info/2015/02/15/computercraft-1-7/ ComputerCraft 1.7]<br />
|<br />
*Added [[Command Computer]]s.<br />
*Added new API: [[commands_(API)|commands]].<br />
*Added new programs: [[commands]], [[exec]].<br />
*Added [[textutils.serializeJSON]]().<br />
*Added ILuaContext.executeMainThreadTask() for peripheral developers.<br />
*[[Disk Drive]]s and [[Printer]]s can now be renamed with Anvils.<br />
*Fixed problems with HD texture packs.<br />
*Fixed various bugs and crashes.<br />
*Documented all the new features in the in-game help system.<br />
|align=center|1.7.10<br />
|-<br />
|align=center|[http://www.computercraft.info/2014/10/09/computercraft-1-65/ ComputerCraft 1.65]<br />
|<br />
*Fixed a multiplayer-only crash with [[turtle.place]]().<br />
*Fixed some problems with [[http.post]]().<br />
*Fixed [[fs.getDrive]]() returning incorrect results on remote peripherals.<br />
|align=center|1.7.10<br />
|-<br />
|align=center|[http://www.computercraft.info/2014/09/27/computercraft-1-64/ ComputerCraft 1.64]<br />
|<br />
*Ported to Minecraft 1.7.10.<br />
*New [[turtle_(API)|turtle API]] functions: [[turtle.inspect]](), [[turtle.inspectUp]](), [[turtle.inspectDown]](), [[turtle.getItemDetail]]().<br />
*Lots of bug fixes and crash fixes, a huge stability improvement over previous versions.<br />
*New [[paintutils_(API)|paintutils API]] functions: [[paintutils.drawBox]]( startX, startY, endX, endY [, color] ), [[paintutils.drawFilledBox]]( startX, startY, endX, endY [, color] ).<br />
|align=center|1.7.10<br />
|-<br />
|align=center|[http://www.computercraft.info/2014/04/16/computercraft-1-63/ ComputerCraft 1.63]<br />
|<br />
*[[Turtle]]s can now be painted with dyes, and cleaned with water buckets.<br />
*Added a new game: [[Redirection]] – ComputerCraft Edition by [http://www.computercraft.info/forums2/index.php?/user/16414-ramilego4game/ RamiLego] (type “redirection” on an Advanced Computer to play).<br />
*[[Turtle]] label nameplates now only show when the [[Turtle]] is moused-over.<br />
*The HTTP API is now enabled by default, and can be configured with a whitelist of permitted domains.<br />
*[[http.get]]() and [[http.post]]() now accept parameters to control the request headers.<br />
*New [[Fs_(API)|fs API]] function: [[fs.getDir]]( path ).<br />
*Fixed some bugs.<br />
|align=center|1.6.4<br />
|-<br />
|align=center|[http://www.computercraft.info/2014/04/04/computercraft-1-62/ ComputerCraft 1.62]<br />
|<br />
*Fixed some bugs which were crashing the game.<br />
*[[Chat]] now supports IRC commands.<br />
|align=center|1.6.4<br />
|-<br />
|align=center|[http://www.computercraft.info/2014/04/01/computercraft-1-61-bug-fix-update/ ComputerCraft 1.61]<br />
|<br />
*Fixed a bug where newly placed [[Computer]]s would share their folder structure until game restart.<br />
*Fixed a bug where running [[Computer]]s might not automatically restart as the game did so.<br />
|align=center|1.6.4<br />
|-<br />
|align=center|[http://www.computercraft.info/2014/03/27/computercraft-1-6-is-here/ ComputerCraft 1.6]<br />
|<br />
*Added [[Pocket Computer]]s.<br />
*Added a [[Multishell|multi-tasking system]] for [[Advanced Computer]]s and [[Turtle]]s.<br />
*[[Turtle]]s can now [[Equip|swap out their tools and peripherals]] at runtime.<br />
*[[Turtle]]s can now carry two tools or peripherals at once in any combination.<br />
*[[Turtle]]s and [[Computer]]s can now be labelled using Name Tags and Anvils.<br />
*Added a [[ComputerCraft.cfg|configurable fuel limit]] for [[Turtle]]s.<br />
*Added hostnames, protocols and long distance routing to the [[Rednet (API)|rednet API]].<br />
*Added a peer-to-peer [[chat]] program to demonstrate new rednet capabilities.<br />
*Added a new game, only on [[Pocket Computer]]s: “[[falling]]” by [http://www.computercraft.info/forums2/index.php?/user/3545-gopheratl/ GopherATL].<br />
*File system commands in the shell now accept wildcard arguments.<br />
*The shell now accepts long arguments in quotes.<br />
*[[term.redirect|Terminal redirection]] now no longer uses a stack-based system. Instead: [[term.current]]() gets the current terminal object and [[term.redirect]]() replaces it. [[term.restore]]() has been removed.<br />
*Added a new [[Window (API)|Windowing API]] for addressing sub-areas of the terminal.<br />
*New programs: [[fg]], [[bg]], [[multishell]], [[chat]], [[repeat]], [[Redstone (program)|redstone]], [[equip]], [[unequip]].<br />
*Improved programs: [[copy]], [[move]], [[delete]], [[rename]], [[paint]], [[CraftOS|shell]].<br />
*Removed programs: redset, redprobe, redpulse.<br />
*New [[:Category:APIs|APIs]]: [[Window (API)|window]], [[Multishell (API)|multishell]].<br />
*New [[Turtle (API)|turtle API]] functions: [[turtle.equipLeft]](), [[turtle.equipRight]](), [[turtle.getFuelLimit]](), [[turtle.getSelectedSlot]]().<br />
*New [[Peripheral (API)|peripheral API]] functions: [[peripheral.find]]( [type] ).<br />
*New [[Rednet (API)|rednet API]] functions: [[rednet.host]]( protocol, hostname ), [[rednet.unhost]]( protocol ), [[rednet.lookup]]( protocol, [hostname] ).<br />
*Improved [[Rednet (API)|rednet API]] functions: [[rednet.send]](), [[rednet.broadcast]]() and [[rednet.receive]]() now take optional protocol parameters.<br />
*New [[fs (API)|fs API]] function: [[fs.find]]( wildcard ).<br />
*New [[Shell (API)|shell API]] functions: [[shell.openTab]]( command ), [[shell.switchTab]]( number ).<br />
*New event “[[Term_resize_(event)|term_resize]]” fired when the size of a terminal changes.<br />
*[[turtle.craft]](0) and [[turtle.refuel]](0) now return true if there is a valid recipe or fuel item, but do not craft or refuel anything.<br />
*[[turtle.suck]]( [limit] ) can now be used to limit the number of items picked up.<br />
*Users of [[turtle.dig]]() and [[turtle.attack]]() can now specify which side of the turtle to look for a tool to use (by default, both will be considered).<br />
*[[textutils.serialize]]() now produces human-readable output.<br />
*Refactored most of the codebase and fixed many old bugs and instabilities, [[Turtle]]s should never ever lose their content now.<br />
*Fixed the “[[turtle_inventory_(event)|turtle_inventory]]” event firing when it shouldn’t have.<br />
*Added error messages to many more [[Turtle_(API)|turtle API]] functions after they return false.<br />
*Documented all new programs and API changes in the “[[help]]” system.<br />
|align=center|1.6.4<br />
|-<br />
|align=center|[http://www.computercraft.info/2013/12/09/computercraft-1-58/ ComputerCraft 1.58]<br />
|<br />
*Fixed a long standing bug where [[Turtle]]s could lose their identity.<br />
*Fixed use of deprecated code, ensuring mod compatibility with the latest versions of Minecraft Forge and world compatibility with future versions of Minecraft.<br />
|align=center|1.6.4<br />
|-<br />
|align=center|[http://www.computercraft.info/2013/10/14/new-versions/ ComputerCraft 1.57]<br />
|<br />
*Ported to Minecraft 1.6.4.<br />
*Added two new [[Treasure Disks]]: Conway’s Game of Life by [http://www.computercraft.info/forums2/index.php?/user/1823-vilsol/ vilsol] and Protector by [http://www.computercraft.info/forums2/index.php?/user/6929-fredthead/ fredthead].<br />
*Fixed a very nasty item duplication bug.<br />
|align=center|1.6.4<br />
|-<br />
|align=center|[http://www.computercraft.info/2013/08/04/computercraft-1-56/ ComputerCraft 1.56]<br />
|<br />
*Added [[Treasure Disks]]: Rare [[Floppy Disk]]s found only in dungeons, which contain fun programs made by the community. Find them all!<br />
*All [[Turtle_(API)|turtle API]] functions now return additional error messages when they fail.<br />
*Resource Packs with Lua Programs can now be loaded when extracted to a folder, for easier editing.<br />
|align=center|1.6.2<br />
|-<br />
|align=center|[http://www.computercraft.info/2013/07/11/computercraft-1-55/ Computercraft 1.55]<br />
|<br />
*Ported to Minecraft 1.6.2.<br />
*Added [[Advanced Turtle]]s.<br />
*Added [[turtle_inventory_(event)|“turtle_inventory”]] event. Fires when any change is made to the inventory of a [[Turtle]].<br />
*Added missing [[IO_(API)|io API]] functions: io.close, io.flush, io.input, io.lines, io.output.<br />
*Tweaked the screen colours used by [[Advanced Computer]]s, [[Advanced Monitor]]s and [[Advanced Turtle]]s.<br />
*Added several new features for Peripheral authors.<br />
*Lua programs can now be included in Resource Packs.<br />
|align=center|1.6.2<br />
|-<br />
|align=center|[http://www.computercraft.info/2013/05/23/computercraft-1-53/ ComputerCraft 1.53]<br />
|<br />
*Ported to Minecraft 1.5.2.<br />
*[[redstone.setBundledOutput]]() and [[redstone.getBundledOutput]]() now work with cables from Minefactory Reloaded, as well as RedPower.<br />
*[[Monitor]]s and [[Advanced Monitor]]s can now be placed on floors and ceilings.<br />
|align=center|1.5.2<br />
|-<br />
|align=center|[http://www.computercraft.info/2013/03/26/computercraft-1-52/ Computercraft 1.52]<br />
|<br />
*Ported to Minecraft 1.5.1.<br />
|align=center|1.5.1<br />
|-<br />
|align=center|[http://www.computercraft.info/2013/03/15/computercraft-1-51/ Computercraft 1.51]<br />
|<br />
*Ported to Minecraft 1.5.<br />
*Added [[Wired Modem]]s.<br />
*Added [[Networking Cable]]s.<br />
*Made [[Wireless Modem]]s more expensive to craft.<br />
*New [[redstone_(API)|redstone API]] functions: [[redstone.getAnalogInput]](), [[redstone.setAnalogOutput]](), [[redstone.getAnalogOutput]]().<br />
*Peripherals can now be controlled remotely over wired networks.<br />
*New [[peripheral_(API)|peripheral API]] function: [[peripheral.getNames]]().<br />
*New event: [[monitor_resize_(event)|“monitor_resize”]]is fired when the size of a monitor changes.<br />
*Except for labelled [[Computer]]s and [[Turtle]]s, ComputerCraft blocks no longer drop items in creative mode.<br />
*The pick block function works in creative mode now works for all ComputerCraft blocks.<br />
*All blocks and items now use the IDs numbers assigned by FTB by default.<br />
*Fixed [[Turtle]]s sometimes placing blocks with incorrect orientations.<br />
*Fixed [[Wireless Modem]]s being able to send messages to themselves.<br />
*Fixed [[turtle.attack]]() having a very short range.<br />
*Various bugfixes.<br />
|align=center|1.5<br />
|-<br />
|align=center|[http://www.computercraft.info/2013/02/11/computercraft-1-5/ Computercraft 1.5]<br />
|<br />
*Redesigned [[Wireless Modem]]s; they can now send and receive on multiple channels, independent of the computer ID. To use these features, interface with modem peripherals [[Modem_(API)|directly]]. The [[Rednet_(API)|rednet API]] still functions as before.<br />
*[[Floppy Disk]]s can now be dyed with multiple dyes, just like armour.<br />
*The [[Excavate|“excavate”]] program now retains fuel in it’s inventory, so can run unattended.<br />
*[[turtle.place]]() now tries all possible block orientations before failing.<br />
*[[turtle.refuel]](0) returns true if a fuel item is selected.<br />
*[[turtle.craft]](0) returns true if the inventory is a valid recipe.<br />
*The in-game help system now has documentation for all the peripherals and their methods, including the new [[Modem]] functionality.<br />
*A romantic surprise.<br />
|align=center|1.4.7<br />
|-<br />
|align=center|[http://www.computercraft.info/2012/12/27/computercraft-1-481-miscperipherals-fix/ Computercraft 1.481]<br />
|<br />
*Fixed compatibility bug with MiscPeripherals.<br />
|align=center|1.4.6<br />
|-<br />
|align=center|[http://www.computercraft.info/2012/12/23/computercraft-1-48/ Computercraft 1.48]<br />
|<br />
*Ported to Minecraft 1.4.6.<br />
*[[Advanced Monitor]]s can now be used as touchscreens.<br />
*[[Advanced Monitor]]s are now easier to craft.<br />
*[[Turtle]]s now get slightly less movement from fuel.<br />
*[[Turtle]]s can now push items.<br />
*[[Computer]]s can now [[Command_Block_(API)|control Command Blocks]], if enabled in the [[ComputerCraft.cfg|config]].<br />
*New [[OS_(API)|os API]] function: [[os.day]]().<br />
*A Christmas surprise.<br />
|align=center|1.4.6<br />
|-<br />
|align=center|[http://www.computercraft.info/2012/11/15/computercraft-1-47-and-minecon-news/ ComputerCraft 1.47]<br />
|<br />
*Ported to Minecraft 1.4.4.<br />
*Fixed label tooltips not showing up in SMP.<br />
|align=center|1.4.4<br />
|-<br />
|align=center|[http://www.computercraft.info/2012/10/25/computercraft-1-46-minecraft-update/ ComputerCraft 1.46]<br />
|<br />
*Ported to Minecraft 1.4.2.<br />
*ComputerCraft items now have their own tab in Creative Mode.<br />
|align=center|1.4.2<br />
|-<br />
|align=center|[http://www.computercraft.info/2012/10/22/computercraft-1-45-now-with-colors/ ComputerCraft 1.45]<br />
|<br />
*Added [[Advanced Computer]]s.<br />
*Added [[Advanced Monitor]]s.<br />
*New program: [[paint]] (by [http://www.computercraft.info/forums2/index.php?/user/643-nitrogenfingers/ nitrogenfingers]).<br />
*New API: [[paintutils_(API)|paintutils]].<br />
*New term functions: [[term.setBackgroundColor]]( color ), [[term.setTextColor]]( color ), [[term.isColor]]().<br />
*New [[Turtle|Turtle API]] function: [[turtle.transferTo]]().<br />
|align=center|1.3.2<br />
|-<br />
|align=center|[http://www.computercraft.info/2012/10/04/computercraft-1-43-books/ ComputerCraft 1.43]<br />
|<br />
*Added [[Printed Page]]s (bind several [[Printed Page]] items into one with a string).<br />
*Added [[Printed_book|Printed Books]] (add a leather cover to the above).<br />
*Labelled [[Turtle]]s now keep their fuel when broken.<br />
*Fixed incompatibility with Forge 275 and above.<br />
|align=center|1.3.2<br />
|-<br />
|align=center|[http://www.computercraft.info/2012/09/22/computercraft-1-42-is-released/ ComputerCraft 1.42]<br />
|<br />
*Ported to Minecraft 1.3.2 and the Forge mod system.<br />
*Added [[Printer]]s.<br />
*[[Floppy Disk]]s can now be dyed different colours.<br />
*[[Turtle|Wireless Crafty Turtles]] can now be crafted.<br />
*All new textures.<br />
*New Forge [[ComputerCraft.cfg|config file]].<br />
*Various tweaks and bug fixes.<br />
|align=center|1.3.2<br />
|-<br />
|align=center|[http://www.computercraft.info/2012/07/29/computercraft-1-41-bugfix-update/ ComputerCraft 1.41]<br />
|<br />
*Fixed labelled [[Computer]]s not keeping their data when destroyed.<br />
*Fixed the [[Excavate|“excavate”]] program outputting lots of spam.<br />
*File system size limits now take into account empty files and directories.<br />
*Some small changes to the Turtle Upgrade API ahead of it’s impending release. (Update: The API has now been released).<br />
|align=center|1.2.5<br />
|-<br />
|align=center|[http://www.computercraft.info/2012/07/27/computercraft-1-4-is-released/ ComputerCraft 1.4]<br />
|<br />
*Ported to Forge Mod Loader: ComputerCraft can now be ran directly from the .zip without extraction.<br />
*Added Farming [[Turtle]]s, Felling [[Turtle]]s, Digging [[Turtle]]s, Melee [[Turtle]]s and Crafty [[Turtle]]s.<br />
*Added 14 new [[Turtle]] combinations accessible by combining the turtle upgrades above.<br />
*Labelled [[Computer]]s and [[Turtle]]s can now be crafted into [[Turtle]]s or other [[Turtle]] types without losing their ID, label and data.<br />
*Added a “[[Turtle]] Upgrade API” for mod developers to create their own tools and peripherals for [[Turtle]]s.<br />
*[[Turtle]]s can now attack entities with [[turtle.attack]]() and collect their dropped items.<br />
*[[Turtle]]s can now use [[turtle.place]]() with any item the player can and can interact with entities.<br />
*[[Turtle]]s can now craft items with [[turtle.craft]]().<br />
*[[Turtle]]s can now place items into inventories with [[turtle.drop]]().<br />
*Changed the behaviour of [[turtle.place]]() and [[turtle.drop]]() to only consider the currently selected slot.<br />
*[[Turtle]]s can now pick up items from the ground or from inventories with [[turtle.suck]]().<br />
*[[Turtle]]s can now compare items in their inventories.<br />
*[[Turtle]]s can place signs with text on them with [[turtle.place]]( [signText] ).<br />
*[[Turtle]]s now optionally require fuel items to move, and can [[turtle.refuel|refuel]] themselves.<br />
*The size of the the [[Turtle]] inventory has been increased to 16 slots.<br />
*The size of the [[Turtle]] screen has been increased.<br />
*New [[Turtle_(API)|turtle API]] functions: [[turtle.compareTo]]( [slotNum] ), [[turtle.craft]](), [[turtle.attack]](), [[turtle.attackUp]](), [[turtle.attackDown]](), [[turtle.dropUp]](), [[turtle.dropDown]](), [[turtle.getFuelLevel]](), [[turtle.refuel]]().<br />
*New [[Disk_(API)|disk API]] function: [[disk.getID]]().<br />
*New [[Turtle]] programs: [[craft]], [[refuel]].<br />
*[[Excavate|“excavate”]] program is now much smarter: will return items to a chest when full, attack mobs, and refuel itself automatically.<br />
*New API: [[Keys_(API)|keys]].<br />
*Added optional [[Floppy Disk]] and Hard Drive space limits for [[Computer]]s and [[Turtle]]s.<br />
*New [[Fs_(API)|fs API]] function: [[fs.getFreeSpace]]( path ). Also [[fs.getDrive]]() works again.<br />
*The send and receive range of wireless modems now increases with altitude, allowing long range networking from high-altitude [[Computer]]s (great for GPS networks).<br />
*[[http.request]]() now supports <code>https://</code> URLs.<br />
*Right clicking a [[Disk Drive]] with a [[Floppy Disk]] or a Record when sneaking will insert the item into the [[Disk Drive]] automatically.<br />
*The default size of the [[Computer]] screen has been increased.<br />
*Several stability and security fixes: LuaJ can now no longer leave dangling threads when a [[Computer]] is unloaded, [[Turtle]]s can no longer be destroyed by tree leaves or walking off the edge of the loaded map. [[Computer]]s no longer crash when used with RedPower frames.<br />
|align=center|1.2.5<br />
|-<br />
|align=center|[http://www.computercraft.info/2012/04/23/computercraft-updated-to-1-2-5/ ComputerCraft 1.33]<br />
|<br />
*Ported to Minecraft 1.2.5.<br />
|align=center|1.2.5<br />
|-<br />
|align=center|[http://www.computercraft.info/2012/03/30/computercraft-1-32-out-now/ ComputerCraft 1.32]<br />
|<br />
*Ported to Minecraft 1.2.4.<br />
*Fixed a big memory leak in LuaJ that caused extra threads to stay around forever when [[Computer]]s were shut down.<br />
|align=center|1.2.4<br />
|-<br />
|align=center|[http://www.computercraft.info/2012/03/13/computercraft-1-31-is-released/ ComputerCraft 1.31]<br />
|<br />
*Ported to Minecraft 1.2.3.<br />
*Added [[Monitor]]s (thanks to Cloudy). Build huge external displays for your [[Computer]]s!<br />
*New positioning capabilities for [[Computer]]s and [[Turtle]]s. Build GPS networks and triangulate the positions of your [[Turtle]]'s position so they never get lost!<br />
*New [[turtle.compare]]() function for [[Turtle]]s for more intelligent mining.<br />
*New programs and APIs: [[Gps_(program)|gps]], [[Monitor_(program)|monitor]], [[Vector_(API)|vector API]].<br />
*New program: [[Pastebin_(program)|pastebin]] (requires <code>enableAPI_HTTP=1</code> in [[ComputerCraft.cfg]]), upload and download programs made by other users ingame!<br />
*Added a new top secret program designed for use with [[Monitor]]s, see if you can find it.<br />
*Lots of additions to existing APIs and programs. Type "help whatsnew" in game for full details.<br />
|align=center|1.2.3<br />
|-<br />
|align=center|[http://www.computercraft.info/2012/02/23/computercraft-1-3-trailer/ ComputerCraft 1.3]<br />
|<br />
*Ported to Minecraft Forge.<br />
*Added [[Turtle]]s, Mining [[Turtle]]s, Wireless [[Turtle]]s and Wireless Mining [[Turtle]]s (Block ID 209).<br />
*Added a Peripheral API to allow mod developers to create custom peripherals for ComputerCraft. Details on this will be posted in the next few days.<br />
*Added [[Wireless Modem]]s. Use the [[Rednet_(API)|rednet API]] to send data wirelessly between [[Computer]]s and [[Turtle]]s!<br />
*[[Computer]]s and [[Disk Drive]]s no longer get destroyed by water.<br />
*[[Computer]]s and [[Turtle]]s can now be labelled, destroyed, and moved around, keeping their state.<br />
*[[Computer]]s and [[Turtle]]s can connect to adjacent devices and turn them on or off.<br />
*User programs now give line numbers in their error messages, for easier debugging.<br />
*New APIs and programs for [[Turtle]]s: [[Turtle_(API)|turtle]], [[excavate]], [[tunnel]], [[go]], [[turn]] and [[dance]].<br />
*Lots of additions to existing APIs and programs. Type "help whatsnew" in game for the full details.<br />
|align=center|1.1<br />
|-<br />
|align=center|ComputerCraft 1.21<br />
|<br />
*Added shortcut key to shutdown the computer (CTRL + S).<br />
*Added a [[Help_(API)|help API]] add-on pack.<br />
*Various bug fixes.<br />
|align=center|1.1<br />
|-<br />
|align=center|ComputerCraft 1.2<br />
|<br />
*Added [[Disk Drive]]s.<br />
*Added shortcut keys to terminate the current program (CTRL + T) and reboot the computer (CTRL + R).<br />
*Added [[os.loadAPI|a new system]] for user created APIs.<br />
*Added [[Rednet_(API)|RedNet]].<br />
*Added [[shell.setPath]]() and [[shell.setAlias]]().<br />
*Added a new ROM startup script.<br />
*Added [[os.clock]](), [[os.time]]() and [[os.setAlarm]]().<br />
*Added game: [[Worm|"Worm!"]].<br />
*Added programs: [[alias]], [[apis]], [[copy]], [[delete]], [[dj]], [[drive]], [[eject]], [[id]], [[label]], [[list]], [[move]], [[reboot]], [[redset]], [[rename]], [[time]].<br />
*Added APIs: [[Bit_(API)|bit]], [[Colours_(API)|colours]], [[Disk_(API)|disk]], [[Help_(API)|help]], [[Rednet_(API)|rednet]], [[Parallel_(API)|parallel]], [[Textutils_(API)|textutils]].<br />
*Text can be edited with left and right arrow keys.<br />
*Many bug fixes.<br />
|align=center|1.0<br />
|-<br />
|align=center|ComputerCraft 1.11<br />
|<br />
*Fixed bug where [[Computer]]s could not read input from RedPower cables which had a bend in the immediately adjacent square.<br />
|align=center|1.0<br />
|-<br />
|align=center|ComputerCraft 1.1<br />
|<br />
*Changed the default block ID for the [[Computer]] to 207.<br />
*Added multiplayer support.<br />
*Added connectivity with RedPower bundled cables.<br />
*Added [[HTTP_(API)|HTTP API]].<br />
*Fixed support for HD textures on the front of [[Computer]]s.<br />
*Added command history to the [[Computer]].<br />
*Added [[ComputerCraft.cfg|config]] options to change the size of the [[Computer]] GUI and the text color.<br />
*Programs with infinite loops that don't yield will no longer freeze Minecraft and will terminate after 10 seconds.<br />
*Extended Help and fixed typos/small errors in various programs.<br />
|align=center|1.0<br />
|-<br />
|align=center|ComputerCraft 1.02<br />
|<br />
*Fixed the MCPatcher HD textures incompatibility that was causing the computer texture to replace cobblestone blocks.<br />
|align=center|1.0<br />
|-<br />
|align=center|ComputerCraft 1.01<br />
|<br />
*Added a ModLoader configuration file, so the computers block ID can be changed.<br />
*Made the error message that displays when Lua files are not correctly installed much more clear, no more "Assertion failed."<br />
|align=center|1.0<br />
|-<br />
|align=center|ComputerCraft 1.0<br />
|<br />
*First Release.<br />
|align=center|1.0<br />
|}</div>MKlegoman357http://www.computercraft.info/wiki/index.php?title=Talk:Paintutils_(API)&diff=7038Talk:Paintutils (API)2015-06-11T19:59:33Z<p>MKlegoman357: </p>
<hr />
<div>What does this mean?:<br />
* Note: In builds prior to ComputerCraft 1.6, the "color" parameter required by paintutils.drawPixel() and paintutils.drawLine() is optional. The current background colour will be used if it's omitted. This was changed back to optional in version 1.64.<br />
--[[User:Superaxander|Superaxander]] ([[User talk:Superaxander|talk]]) 14:44, 11 June 2015 (UTC)<br />
<br />
How about this:<br />
* Note: In builds prior to ComputerCraft 1.6, the "color" parameter required by paintutils.drawPixel() and paintutils.drawLine() is optional. From ComputerCraft 1.6 the parameter is required, but it was changed back to optional in ComputerCraft 1.64.<br />
--[[User:MKlegoman357|MKlegoman357]] ([[User talk:MKlegoman357|talk]]) 19:59, 11 June 2015 (UTC)</div>MKlegoman357http://www.computercraft.info/wiki/index.php?title=Os.loadAPI&diff=7029Os.loadAPI2015-05-12T19:18:58Z<p>MKlegoman357: Restored it as it was correct</p>
<hr />
<div>{{Lowercase}}<br />
{{Function<br />
|name=os.loadAPI<br />
|args={{type|string}} path<br />
|api=OS<br />
|returns={{type|boolean}} did the API load successfully?<br />
|addon=ComputerCraft<br />
|desc=Loads a user created API from a file located at <var>path</var>.<br />
<br/><br />
This function runs the file, collects all global (non-localized) variables from it and puts them into a [[table_(type)|table]] into the global (<var>_G</var>) environment. The name of the table in the _G table becomes the name of the file.<br />
|examples={{Example<br />
|desc=Loads an API saved at "''test/myAPI''" and runs the global function "''hello''" from it.<br />
|code='''''--test/myAPI:'''''<br />
<br />
local text = "Hello World!" ''-- this won't be seen from outside of the API because it is localized''<br />
<br />
function hello () ''-- this will be seen from outside the API because it is '''not''' localized''<br />
[[print]](text)<br />
end<br />
<br />
'''''--The program that will use "myAPI"'''''<br />
<br />
'''os.loadAPI("test/myAPI")''' ''-- load the API''<br />
<br />
myAPI.hello() ''-- runs the function "hello" from the API''<br />
|output=Hello World!<br />
}}<br />
|notes=<br />
* <var>path</var> '''must''' be an absolute path.<br />
* All variables which will be needed to be accessed through ''<apiname>.<variable/function>'' '''must''' be global.<br />
* By default APIs '''cannot''' access [[shell_(API)|shell API]] and [[multishell_(API)|multishell API]].<br />
}}</div>MKlegoman357http://www.computercraft.info/wiki/index.php?title=Metatable&diff=7028Metatable2015-05-12T19:18:07Z<p>MKlegoman357: Improved</p>
<hr />
<div>{{NeedsWork|Not enough info, perhaps incorrect info}}<br />
<br />
'''Metatables''' allow us to change the behavior of a {{type|table}}. For instance, using metatables, we can define how Lua computes the expression <code>a+b</code>, where <var>a</var> and <var>b</var> are tables. Whenever Lua tries to add two tables, it checks whether either of them has a metatable and whether that metatable has an <var>__add</var> field. If Lua finds this field, it calls the corresponding value (the so-called metamethod, which should be a {{type|function}}) to compute the sum.<br />
<!-- Taken from the Lua PIL (http://www.lua.org/pil/13.html) --~~~~ --><br />
== Setting and getting a metatable ==<br />
<br />
To set the metatable of a table use <code>setmetatable( table, metatable )</code>, where <var>table</var> is the table which's metatable you want to set and <var>metatable</var> is the new metatable of that table.<br />
<br />
To get the metatable of a table use <code>getmetatable( table )</code>, where <var>table</var> is the table which's metatable you want to get.<br />
<br />
Note that the <var>__metatable</var> metafield can change the behavior of both above functions, see below for more info.<br />
<br />
== Metamethods ==<br />
<br />
A metamethod is a type of function which changes the default behavior of a table. The table below lists what each<br />
one is called, and how each one is used.<br/><br />
<br />
{| class="wikitable"<br />
|-<br />
| Name || Description || Arguments passed<br />
|-<br />
| __index<br />
| Can be either a {{type|function}} or a {{type|table}}. Triggered whenever a table is being indexed and there is no field under the indexed <var>key</var>. If set to a table then that table is indexed using the same <var>key</var>. If it's a function then that function is called with the <var>table</var> and the <var>key</var> as parameters and its return value is used as the value under that <var>key</var>.<br />
| the <var>table</var> and the <var>key</var><br />
|-<br />
| __newindex<br />
| Triggered whenever a new (nil, non-existent) field is being assigned in a table.<br />
| the <var>table</var>, the <var>key</var> and the new <var>value</var><br />
|-<br />
| __call<br />
| Called whenever a table is being called as it was a function.<br />
| the <var>table</var> and the arguments that where passed the the table-call expression.<br />
|-<br />
| __metatable<br />
| If present, <code>getmetatable</code> returns its value instead of the actual metatable, <code>setmetatable</code> raises an error.<br />
| <br />
|-<br />
| __mul<br />
| Triggered whenever a multiplication operation with a table occurs. Passes the two operands <var>a</var> and <var>b</var>, without telling which of the operands is the table and which is not.<br />
| operand <var>a</var> and operand <var>b</var><br />
|-<br />
| __div<br />
| Triggered whenever a division operation with a table occurs. Behaves similar to <var>__mul</var> metamethod.<br />
| operand <var>a</var> and operand <var>b</var><br />
|-<br />
| __sub<br />
| Triggered whenever a subtraction operation with a table occurs. Behaves similar to <var>__mul</var> metamethod.<br />
| operand <var>a</var> and operand <var>b</var><br />
|-<br />
| __add<br />
| Triggered whenever an addition operation with a table occurs. Behaves similar to <var>__mul</var> metamethod.<br />
| operand <var>a</var> and operand <var>b</var><br />
|-<br />
| __mod<br />
| Triggered whenever a modulo operation with a table occurs. Behaves similar to <var>__mul</var> metamethod.<br />
| operand <var>a</var> and operand <var>b</var><br />
|-<br />
| __pow<br />
| Triggered whenever a exponentiation (power) operation with a table occurs. Behaves similar to <var>__mul</var> metamethod.<br />
| operand <var>a</var> and operand <var>b</var><br />
|-<br />
| __unm<br />
| Triggered whenever the unary ( <code>-table</code> ) operator is used on a table.<br />
| the <var>table</var><br />
|-<br />
| __eq<br />
| Triggered whenever an "equal" ( == ) operation is performed on two tables with the exact same metatable. If the metatable does not match - returns false.<br />
| operand <var>a</var> and operand <var>b</var><br />
|-<br />
| __lt<br />
| Triggered whenever a "less than" ( < ), or "more than" ( > ), operation is performed on the table. Similarly to the <var>__mul</var> metamethod it is not known which parameter is which.<br />
| operand <var>a</var> and operand <var>b</var><br />
|-<br />
| __le<br />
| Triggered whenever a "less than or equal to" ( <= ), or "less than or equal to" ( >= ), operation is performed on the table. Similarly to the <var>__mul</var> metamethod it is not known which parameter is which.<br />
| operand <var>a</var> and operand <var>b</var><br />
|-<br />
| __concat<br />
| Triggered whenever a concatenation ( .. ) operation is performed on the table. Similarly to the <var>__mul</var> metamethod it is not known which parameter is which.<br />
| operand <var>a</var> and operand <var>b</var><br />
|}<br />
<br />
== Examples ==<br />
{{Example<br />
|desc=Use __eq to check if two tables are equal<br />
|code=table1 = {x=0, y=1, z=0}<br />
table2 = {x=1, y=1, z=0}<br />
metatable = {__eq = function(operand1, operand2, type)<br />
if operand1.x == operand2.x and operand1.y == operand2.y and operand1.z then --Note: In reality you might want to first check if your these variables actually exist<br />
return true<br />
else<br />
return false<br />
end }<br />
setmetatable(table1, metatable)<br />
setmetatable(table2, metatable)<br />
if table1 == table2 then<br />
print("Equal")<br />
else<br />
print("Not equal")<br />
end<br />
}}<br />
== External links ==<br />
* [http://www.lua.org/manual/5.1/manual.html#2.8 Lua 5.1 Reference Manual: Metatables]<br />
<br />
[[Category:Tutorials]]</div>MKlegoman357http://www.computercraft.info/wiki/index.php?title=Metatable&diff=7027Metatable2015-05-12T18:32:57Z<p>MKlegoman357: Took the intro from the PIL, it's a bit better. Also, note that it's 'Lua', not 'lua' or 'LUA'.</p>
<hr />
<div>{{NeedsWork|Not enough info, perhaps incorrect info}}<br />
<br />
Metatables allow us to change the behavior of a table. For instance, using metatables, we can define how Lua computes the expression a+b, where a and b are tables. Whenever Lua tries to add two tables, it checks whether either of them has a metatable and whether that metatable has an __add field. If Lua finds this field, it calls the corresponding value (the so-called metamethod, which should be a function) to compute the sum.<br />
<!-- Taken from the Lua PIL (http://www.lua.org/pil/13.html) --~~~~ --><br />
== Setting and getting a metatable ==<br />
<br />
You will use setMetatable and getMetatable to set and get metatables.<br />
<br />
You use getMetatable(table) to get your metatable from a table. It will return the __metatable metafield<br />
in the table.<br />
<br />
setMetatable(table, metatable) to set your table's metatable. It will error if the __metatable metafield<br />
is set.<br />
<br />
However, if the table has a metatable with the metafield __metatable, it will error when you use setMetatable and return what it is set to when getMetatable is called.<br />
<br />
== Metamethods ==<br />
<br />
A metamethod is a type of function which changes the default way a table acts. The table below demonstrates what each<br />
one is called, and how each one is used. <br/><br />
<br />
{| class="wikitable"<br />
|-<br />
| Name || Description || Arguments passed<br />
|-<br />
| __index<br />
| Used when table[variable] is called.<br />
| The variable.<br />
|-<br />
| __newindex<br />
| Used like __index, but it is only called when the variable matches an empty space in the table.<br />
| The variable.<br />
|-<br />
| __call<br />
| A metamethod to turn a table's name into a function, or whatever you want it to do.<br />
| Function, Tuple<br />
|-<br />
| __metatable<br />
| Used for protecting metatables, called when getmetatable() is used on the table, setmetatable() just errors.<br />
| Nothing (as far as Unit158 knows)<br />
|-<br />
| __mul<br />
| Used as an operator overloader for multiplication.<br />
| The two objects being "multiplied".<br />
|-<br />
| __div<br />
| Used as an operator overloader for division.<br />
| The two objects being "divided".<br />
|-<br />
| __sub<br />
| Used as an operator overloader for substraction.<br />
| The two objects being "subtracted".<br />
|-<br />
| __add<br />
| Used as an operator overloader for addition.<br />
| The two objects being "added".<br />
|-<br />
| __mod<br />
| Used as an operator overloader for modulo.<br />
| The two objects being "divided".<br />
|-<br />
| __pow<br />
| Used as an operator overloader for exponentiation operation.<br />
| The two objects being exponentiated.<br />
|-<br />
| __unm<br />
| I am not exactly sure how this one works, it is for negatives though.<br />
| The table being changed into a negative. <!-- Feel free to change this one X] --><br />
|-<br />
| __eq<br />
| __eq is an operator overloader for comparison.<br />
| The two objects being compared<br />
|-<br />
| __lt<br />
| Less than.<br />
| The two objects being compared<br />
|-<br />
| __le<br />
| Less than or equal to.<br />
| The objects being compared<br />
|-<br />
| __concat<br />
| The objects being concatenated<br />
| The two objects being concatenated<br />
|-<br />
| __len<br />
| The # operator.<br />
| The object having the operation performed on it.<br />
|-<br />
|}<br />
<br />
== Examples ==<br />
{{Example<br />
|desc=Use __eq to check if two tables are equal<br />
|code=table1 = {x=0, y=1, z=0}<br />
table2 = {x=1, y=1, z=0}<br />
metatable = {__eq = function(operand1, operand2, type)<br />
if operand1.x == operand2.x and operand1.y == operand2.y and operand1.z then --Note: In reality you might want to first check if your these variables actually exist<br />
return true<br />
else<br />
return false<br />
end }<br />
setmetatable(table1, metatable)<br />
setmetatable(table2, metatable)<br />
if table1 == table2 then<br />
print("Equal")<br />
else<br />
print("Not equal")<br />
end<br />
}}<br />
== External links ==<br />
* [http://www.lua.org/manual/5.1/manual.html#2.8 Lua 5.1 Reference Manual: Metatables]<br />
<br />
[[Category:Tutorials]]</div>MKlegoman357http://www.computercraft.info/wiki/index.php?title=Help.setPath&diff=7019Help.setPath2015-05-01T21:07:53Z<p>MKlegoman357: Fixed description, added an example</p>
<hr />
<div>{{lowercase}}<br />
{{Function<br />
|name=help.setPath<br />
|args={{Type|string}} path<br />
|api=help<br />
|returns={{type|nil}}<br />
|addon=ComputerCraft<br />
|desc=Sets the list of locations the API will look in for help files. This should be a string containing one or more search paths separated by colons.<br />
|examples=<br />
{{Example<br />
|desc=Sets the search path of the help API to /disk/help/. This replaces the original help lookup path.<br />
|code='''help.setPath( "/disk/help/" )'''<br />
}}<br />
{{Example<br />
|desc=Adds /myfolder/help/ path to the current help path.<br />
|code='''help.setPath( [[help.path]]() .. ":/myfolder/help/" )'''<br />
}}<br />
}}<br />
<br />
[[Category:API_Functions]]</div>MKlegoman357http://www.computercraft.info/wiki/index.php?title=Template:News&diff=6933Template:News2015-02-25T19:00:01Z<p>MKlegoman357: </p>
<hr />
<div>'''February 24-25, 2015'''<br />
* ComputerCraft 1.72 - 1.73 is released to fix multiplayer-only crashes.<br />
'''February 23, 2015'''<br />
* ComputerCraft 1.71 is released for Minecraft '''1.7.10'''.<br />
'''February 15, 2015'''<br />
* ComputerCraft 1.7 is released for Minecraft '''1.7.10'''.<br />
'''October 09, 2014'''<br />
* ComputerCraft 1.65 is released as a bug fix update for ComputerCraft 1.64.<br />
<noinclude><!-- Only display latest four events.--><br />
'''September 27, 2014'''<br />
* ComputerCraft 1.64 is released for Minecraft '''1.7.10'''.<br />
'''April 16, 2014'''<br />
* ComputerCraft 1.63 is released for Minecraft '''1.6.4'''.<br />
'''April 4, 2014'''<br />
* ComputerCraft 1.62 is released to fix game crashes.<br />
'''April 1, 2014'''<br />
* ComputerCraft 1.61 is released as a bug fix update for ComputerCraft 1.6.<br />
'''March 27, 2014'''<br />
* ComputerCraft 1.6 is released for Minecraft '''1.6.4'''.<br />
'''December 9, 2013'''<br />
* ComputerCraft 1.58 is released for Minecraft '''1.6.4'''.<br />
'''October 14, 2013'''<br />
* ComputerCraft 1.57 is released for Minecraft '''1.6.4'''.<br />
'''August 4, 2013'''<br />
* ComputerCraft 1.56 is released for Minecraft '''1.6.2'''.<br />
'''July 11, 2013'''<br />
* ComputerCraft 1.55 is released for Minecraft '''1.6.2'''.<br />
'''May 23, 2013'''<br />
* ComputerCraft 1.53 is released for Minecraft '''1.5.2'''.<br />
'''March 26, 2013'''<br />
* ComputerCraft 1.52 is released for Minecraft '''1.5.1'''.<br />
'''February 11, 2013'''<br />
* ComputerCraft 1.5 is released for Minecraft '''1.4.7'''.<br />
'''December 27, 2012'''<br />
* ComputerCraft 1.481 is released as a quick hotfix for MiscPeripherals.<br />
</noinclude></div>MKlegoman357http://www.computercraft.info/wiki/index.php?title=Template:News&diff=6932Template:News2015-02-25T18:57:24Z<p>MKlegoman357: Updated to ComputerCraft 1.73</p>
<hr />
<div>'''February 25, 2015'''<br />
* ComputerCraft 1.72 - 1.73 is released to fix multiplayer-only crashes.<br />
'''February 23, 2015'''<br />
* ComputerCraft 1.71 is released for Minecraft '''1.7.10'''.<br />
'''February 15, 2015'''<br />
* ComputerCraft 1.7 is released for Minecraft '''1.7.10'''.<br />
'''October 09, 2014'''<br />
* ComputerCraft 1.65 is released as a bug fix update for ComputerCraft 1.64.<br />
<noinclude><!-- Only display latest four events.--><br />
'''September 27, 2014'''<br />
* ComputerCraft 1.64 is released for Minecraft '''1.7.10'''.<br />
'''April 16, 2014'''<br />
* ComputerCraft 1.63 is released for Minecraft '''1.6.4'''.<br />
'''April 4, 2014'''<br />
* ComputerCraft 1.62 is released to fix game crashes.<br />
'''April 1, 2014'''<br />
* ComputerCraft 1.61 is released as a bug fix update for ComputerCraft 1.6.<br />
'''March 27, 2014'''<br />
* ComputerCraft 1.6 is released for Minecraft '''1.6.4'''.<br />
'''December 9, 2013'''<br />
* ComputerCraft 1.58 is released for Minecraft '''1.6.4'''.<br />
'''October 14, 2013'''<br />
* ComputerCraft 1.57 is released for Minecraft '''1.6.4'''.<br />
'''August 4, 2013'''<br />
* ComputerCraft 1.56 is released for Minecraft '''1.6.2'''.<br />
'''July 11, 2013'''<br />
* ComputerCraft 1.55 is released for Minecraft '''1.6.2'''.<br />
'''May 23, 2013'''<br />
* ComputerCraft 1.53 is released for Minecraft '''1.5.2'''.<br />
'''March 26, 2013'''<br />
* ComputerCraft 1.52 is released for Minecraft '''1.5.1'''.<br />
'''February 11, 2013'''<br />
* ComputerCraft 1.5 is released for Minecraft '''1.4.7'''.<br />
'''December 27, 2012'''<br />
* ComputerCraft 1.481 is released as a quick hotfix for MiscPeripherals.<br />
</noinclude></div>MKlegoman357http://www.computercraft.info/wiki/index.php?title=Template:Version&diff=6931Template:Version2015-02-25T18:54:52Z<p>MKlegoman357: Updated to ComputerCraft 1.73</p>
<hr />
<div><!-- ATTENTION WIKI-ENS. Please do not alter the markup on this page,<br />
only change the values inside the table-cells (<td>). Thanks and<br />
love, AfterLifeLochie.<br />
Templates for this page:<br />
** BETA **:<br />
<tr><td style="background-color:#FFE8A8; text-align:center;">ComputerCraft '''%VERSION%''' ''Beta'' for '''Minecraft %MCVERSION%'''</td></tr><br />
** LATEST **:<br />
<tr><td style="background-color:#E5F9FF; text-align:center;">'''Latest:'''<br />ComputerCraft '''%VERSION%''' for '''Minecraft %MCVERSION%'''<br />Latest</td></tr><br />
** OLD **: (alternating cell pattern)<br />
<tr><td style="background-color:#D4D4D4; text-align:center;">ComputerCraft '''%VERSION%''' for '''Minecraft %MCVERSION%'''</td></tr><br />
<tr><td style="background-color:#FFFFFF; text-align:center;">ComputerCraft '''%VERSION%''' for '''Minecraft %MCVERSION%'''</td></tr><br />
--><br />
<table style="width:100%"><br />
<tr><td style="background-color:#E5F9FF; text-align:center;">'''Latest:'''<br />ComputerCraft '''1.73''' for '''Minecraft 1.7.10''' ([http://www.computercraft.info/2015/02/22/computercraft-1-73/ download])</td></tr><br />
<tr><td style="background-color:#FFFFFF; text-align:center;">ComputerCraft '''1.7''' for '''Minecraft 1.7.10''' ([http://www.computercraft.info/2015/02/15/computercraft-1-7/ download])</td></tr><br />
<tr><td style="background-color:#D4D4D4; text-align:center;">ComputerCraft '''1.65''' for '''Minecraft 1.7.10''' ([http://www.computercraft.info/2014/10/09/computercraft-1-65/ download])</td></tr><br />
<tr><td style="background-color:#FFFFFF; text-align:center;">ComputerCraft '''1.64''' for '''Minecraft 1.7.10''' ([http://www.computercraft.info/2014/09/27/computercraft-1-64/ download])</td></tr><br />
<tr><td style="background-color:#D4D4D4; text-align:center;">ComputerCraft '''1.63''' for '''Minecraft 1.6.4''' ([http://www.computercraft.info/2014/04/16/computercraft-1-63/ download])</td></tr><br />
<tr><td style="background-color:#FFFFFF; text-align:center;">ComputerCraft '''1.62''' for '''Minecraft 1.6.4'''<br />
([http://www.computercraft.info/2014/04/04/computercraft-1-62/ download])</td></tr><br />
<noinclude> <!-- 6 newest releases should be enaugh --><br />
<tr><td style="background-color:#D4D4D4; text-align:center;">ComputerCraft '''1.61''' for '''Minecraft 1.6.4'''<br />
([http://www.computercraft.info/2014/04/01/computercraft-1-61-bug-fix-update/ download])</td></tr><br />
<tr><td style="background-color:#FFFFFF; text-align:center;">ComputerCraft '''1.6''' for '''Minecraft 1.6.4''' ([http://www.computercraft.info/2014/03/27/computercraft-1-6-is-here/ download])</td></tr><br />
<tr><td style="background-color:#D4D4D4; text-align:center;">ComputerCraft '''1.58''' for '''Minecraft 1.6.4''' ([http://www.computercraft.info/2013/12/09/computercraft-1-58/ download])</td></tr><br />
<tr><td style="background-color:#FFFFFF; text-align:center;">ComputerCraft '''1.57''' for '''Minecraft 1.6.4''' ([http://www.computercraft.info/2013/10/14/new-versions/ download])</td></tr><br />
<tr><td style="background-color:#D4D4D4; text-align:center;">ComputerCraft '''1.56''' for '''Minecraft 1.6.2''' ([http://www.computercraft.info/2013/08/04/computercraft-1-56/ download])</td></tr><br />
<tr><td style="background-color:#FFFFFF; text-align:center;">ComputerCraft '''1.55''' for '''Minecraft 1.6.2''' ([http://www.computercraft.info/2013/07/11/computercraft-1-55/ download])</td></tr><br />
<tr><td style="background-color:#D4D4D4; text-align:center;">ComputerCraft '''1.53''' for '''Minecraft 1.5.2''' ([http://www.computercraft.info/2013/05/23/computercraft-1-53/ download])</td></tr><br />
<tr><td style="background-color:#FFFFFF; text-align:center;">ComputerCraft '''1.52''' for '''Minecraft 1.5.1''' ([http://www.computercraft.info/2013/03/26/computercraft-1-52/ download])</td></tr><br />
<tr><td style="background-color:#D4D4D4; text-align:center;">ComputerCraft '''1.51''' for '''Minecraft 1.5''' ([http://www.computercraft.info/2013/03/15/computercraft-1-51/ download])</td></tr><br />
<tr><td style="background-color:#FFFFFF; text-align:center;">ComputerCraft '''1.5''' for '''Minecraft 1.4.7''' ([http://www.computercraft.info/2013/02/11/computercraft-1-5/ download])</td></tr><br />
</noinclude><br />
</table><br />
<center>'''[[Changelog]]'''</center></div>MKlegoman357http://www.computercraft.info/wiki/index.php?title=Template:Changelog&diff=6930Template:Changelog2015-02-25T18:53:27Z<p>MKlegoman357: Updated to ComputerCraft 1.73 - Needs to be checked if it is the right format. Note that users should be downloading 1.73, not 1.71 anyways.</p>
<hr />
<div>{| class="wikitable sortable" style="width: 100%"<br />
! style="width: 15%" | Version<br />
! class="unsortable" | New Features or Changes<br />
! style="width: 15%" | Minecraft Version<br />
|-<br />
|align=center|[http://www.computercraft.info/2015/02/22/computercraft-1-73/ ComputerCraft 1.71 - 1.73]<br />
|<br />
*[CC 1.71] The [[exec|“exec”]] program, [[commands.exec]]() and all related [[Command Computer]] functions now return the console output of the command.<br />
*[CC 1.72 - 1.73] Fixed two multiplayer-only crash bugs when placing certain blocks.<br />
|align=center|1.7.10<br />
|-<br />
|align=center|[http://www.computercraft.info/2015/02/15/computercraft-1-7/ ComputerCraft 1.7]<br />
|<br />
*Added [[Command Computer]]s.<br />
*Added new API: [[commands_(API)|commands]].<br />
*Added new programs: [[commands]], [[exec]].<br />
*Added [[textutils.serializeJSON]]().<br />
*Added ILuaContext.executeMainThreadTask() for peripheral developers.<br />
*[[Disk Drive]]s and [[Printer]]s can now be renamed with Anvils.<br />
*Fixed problems with HD texture packs.<br />
*Fixed various bugs and crashes.<br />
*Documented all the new features in the in-game help system.<br />
|align=center|1.7.10<br />
|-<br />
|align=center|[http://www.computercraft.info/2014/10/09/computercraft-1-65/ ComputerCraft 1.65]<br />
|<br />
*Fixed a multiplayer-only crash with [[turtle.place]]().<br />
*Fixed some problems with [[http.post]]().<br />
*Fixed [[fs.getDrive]]() returning incorrect results on remote peripherals.<br />
|align=center|1.7.10<br />
|-<br />
|align=center|[http://www.computercraft.info/2014/09/27/computercraft-1-64/ ComputerCraft 1.64]<br />
|<br />
*Ported to Minecraft 1.7.10.<br />
*New [[turtle_(API)|turtle API]] functions: [[turtle.inspect]](), [[turtle.inspectUp]](), [[turtle.inspectDown]](), [[turtle.getItemDetail]]().<br />
*Lots of bug fixes and crash fixes, a huge stability improvement over previous versions.<br />
*New [[paintutils_(API)|paintutils API]] functions: [[paintutils.drawBox]]( startX, startY, endX, endY [, color] ), [[paintutils.drawFilledBox]]( startX, startY, endX, endY [, color] ).<br />
|align=center|1.7.10<br />
|-<br />
|align=center|[http://www.computercraft.info/2014/04/16/computercraft-1-63/ ComputerCraft 1.63]<br />
|<br />
*[[Turtle]]s can now be painted with dyes, and cleaned with water buckets.<br />
*Added a new game: [[Redirection]] – ComputerCraft Edition by [http://www.computercraft.info/forums2/index.php?/user/16414-ramilego4game/ RamiLego] (type “redirection” on an Advanced Computer to play).<br />
*[[Turtle]] label nameplates now only show when the [[Turtle]] is moused-over.<br />
*The HTTP API is now enabled by default, and can be configured with a whitelist of permitted domains.<br />
*[[http.get]]() and [[http.post]]() now accept parameters to control the request headers.<br />
*New [[Fs_(API)|fs API]] function: [[fs.getDir]]( path ).<br />
*Fixed some bugs.<br />
|align=center|1.6.4<br />
|-<br />
|align=center|[http://www.computercraft.info/2014/04/04/computercraft-1-62/ ComputerCraft 1.62]<br />
|<br />
*Fixed some bugs which were crashing the game.<br />
*[[Chat]] now supports IRC commands.<br />
|align=center|1.6.4<br />
|-<br />
|align=center|[http://www.computercraft.info/2014/04/01/computercraft-1-61-bug-fix-update/ ComputerCraft 1.61]<br />
|<br />
*Fixed a bug where newly placed [[Computer]]s would share their folder structure until game restart.<br />
*Fixed a bug where running [[Computer]]s might not automatically restart as the game did so.<br />
|align=center|1.6.4<br />
|-<br />
|align=center|[http://www.computercraft.info/2014/03/27/computercraft-1-6-is-here/ ComputerCraft 1.6]<br />
|<br />
*Added [[Pocket Computer]]s.<br />
*Added a [[Multishell|multi-tasking system]] for [[Advanced Computer]]s and [[Turtle]]s.<br />
*[[Turtle]]s can now [[Equip|swap out their tools and peripherals]] at runtime.<br />
*[[Turtle]]s can now carry two tools or peripherals at once in any combination.<br />
*[[Turtle]]s and [[Computer]]s can now be labelled using Name Tags and Anvils.<br />
*Added a [[ComputerCraft.cfg|configurable fuel limit]] for [[Turtle]]s.<br />
*Added hostnames, protocols and long distance routing to the [[Rednet (API)|rednet API]].<br />
*Added a peer-to-peer [[chat]] program to demonstrate new rednet capabilities.<br />
*Added a new game, only on [[Pocket Computer]]s: “[[falling]]” by [http://www.computercraft.info/forums2/index.php?/user/3545-gopheratl/ GopherATL].<br />
*File system commands in the shell now accept wildcard arguments.<br />
*The shell now accepts long arguments in quotes.<br />
*[[term.redirect|Terminal redirection]] now no longer uses a stack-based system. Instead: [[term.current]]() gets the current terminal object and [[term.redirect]]() replaces it. [[term.restore]]() has been removed.<br />
*Added a new [[Window (API)|Windowing API]] for addressing sub-areas of the terminal.<br />
*New programs: [[fg]], [[bg]], [[multishell]], [[chat]], [[repeat]], [[Redstone (program)|redstone]], [[equip]], [[unequip]].<br />
*Improved programs: [[copy]], [[move]], [[delete]], [[rename]], [[paint]], [[CraftOS|shell]].<br />
*Removed programs: redset, redprobe, redpulse.<br />
*New [[:Category:APIs|APIs]]: [[Window (API)|window]], [[Multishell (API)|multishell]].<br />
*New [[Turtle (API)|turtle API]] functions: [[turtle.equipLeft]](), [[turtle.equipRight]](), [[turtle.getFuelLimit]](), [[turtle.getSelectedSlot]]().<br />
*New [[Peripheral (API)|peripheral API]] functions: [[peripheral.find]]( [type] ).<br />
*New [[Rednet (API)|rednet API]] functions: [[rednet.host]]( protocol, hostname ), [[rednet.unhost]]( protocol ), [[rednet.lookup]]( protocol, [hostname] ).<br />
*Improved [[Rednet (API)|rednet API]] functions: [[rednet.send]](), [[rednet.broadcast]]() and [[rednet.receive]]() now take optional protocol parameters.<br />
*New [[fs (API)|fs API]] function: [[fs.find]]( wildcard ).<br />
*New [[Shell (API)|shell API]] functions: [[shell.openTab]]( command ), [[shell.switchTab]]( number ).<br />
*New event “[[Term_resize_(event)|term_resize]]” fired when the size of a terminal changes.<br />
*[[turtle.craft]](0) and [[turtle.refuel]](0) now return true if there is a valid recipe or fuel item, but do not craft or refuel anything.<br />
*[[turtle.suck]]( [limit] ) can now be used to limit the number of items picked up.<br />
*Users of [[turtle.dig]]() and [[turtle.attack]]() can now specify which side of the turtle to look for a tool to use (by default, both will be considered).<br />
*[[textutils.serialize]]() now produces human-readable output.<br />
*Refactored most of the codebase and fixed many old bugs and instabilities, [[Turtle]]s should never ever lose their content now.<br />
*Fixed the “[[turtle_inventory_(event)|turtle_inventory]]” event firing when it shouldn’t have.<br />
*Added error messages to many more [[Turtle_(API)|turtle API]] functions after they return false.<br />
*Documented all new programs and API changes in the “[[help]]” system.<br />
|align=center|1.6.4<br />
|-<br />
|align=center|[http://www.computercraft.info/2013/12/09/computercraft-1-58/ ComputerCraft 1.58]<br />
|<br />
*Fixed a long standing bug where [[Turtle]]s could lose their identity.<br />
*Fixed use of deprecated code, ensuring mod compatibility with the latest versions of Minecraft Forge and world compatibility with future versions of Minecraft.<br />
|align=center|1.6.4<br />
|-<br />
|align=center|[http://www.computercraft.info/2013/10/14/new-versions/ ComputerCraft 1.57]<br />
|<br />
*Ported to Minecraft 1.6.4.<br />
*Added two new [[Treasure Disks]]: Conway’s Game of Life by [http://www.computercraft.info/forums2/index.php?/user/1823-vilsol/ vilsol] and Protector by [http://www.computercraft.info/forums2/index.php?/user/6929-fredthead/ fredthead].<br />
*Fixed a very nasty item duplication bug.<br />
|align=center|1.6.4<br />
|-<br />
|align=center|[http://www.computercraft.info/2013/08/04/computercraft-1-56/ ComputerCraft 1.56]<br />
|<br />
*Added [[Treasure Disks]]: Rare [[Floppy Disk]]s found only in dungeons, which contain fun programs made by the community. Find them all!<br />
*All [[Turtle_(API)|turtle API]] functions now return additional error messages when they fail.<br />
*Resource Packs with Lua Programs can now be loaded when extracted to a folder, for easier editing.<br />
|align=center|1.6.2<br />
|-<br />
|align=center|[http://www.computercraft.info/2013/07/11/computercraft-1-55/ Computercraft 1.55]<br />
|<br />
*Ported to Minecraft 1.6.2.<br />
*Added [[Advanced Turtle]]s.<br />
*Added [[turtle_inventory_(event)|“turtle_inventory”]] event. Fires when any change is made to the inventory of a [[Turtle]].<br />
*Added missing [[IO_(API)|io API]] functions: io.close, io.flush, io.input, io.lines, io.output.<br />
*Tweaked the screen colours used by [[Advanced Computer]]s, [[Advanced Monitor]]s and [[Advanced Turtle]]s.<br />
*Added several new features for Peripheral authors.<br />
*Lua programs can now be included in Resource Packs.<br />
|align=center|1.6.2<br />
|-<br />
|align=center|[http://www.computercraft.info/2013/05/23/computercraft-1-53/ ComputerCraft 1.53]<br />
|<br />
*Ported to Minecraft 1.5.2.<br />
*[[redstone.setBundledOutput]]() and [[redstone.getBundledOutput]]() now work with cables from Minefactory Reloaded, as well as RedPower.<br />
*[[Monitor]]s and [[Advanced Monitor]]s can now be placed on floors and ceilings.<br />
|align=center|1.5.2<br />
|-<br />
|align=center|[http://www.computercraft.info/2013/03/26/computercraft-1-52/ Computercraft 1.52]<br />
|<br />
*Ported to Minecraft 1.5.1.<br />
|align=center|1.5.1<br />
|-<br />
|align=center|[http://www.computercraft.info/2013/03/15/computercraft-1-51/ Computercraft 1.51]<br />
|<br />
*Ported to Minecraft 1.5.<br />
*Added [[Wired Modem]]s.<br />
*Added [[Networking Cable]]s.<br />
*Made [[Wireless Modem]]s more expensive to craft.<br />
*New [[redstone_(API)|redstone API]] functions: [[redstone.getAnalogInput]](), [[redstone.setAnalogOutput]](), [[redstone.getAnalogOutput]]().<br />
*Peripherals can now be controlled remotely over wired networks.<br />
*New [[peripheral_(API)|peripheral API]] function: [[peripheral.getNames]]().<br />
*New event: [[monitor_resize_(event)|“monitor_resize”]]is fired when the size of a monitor changes.<br />
*Except for labelled [[Computer]]s and [[Turtle]]s, ComputerCraft blocks no longer drop items in creative mode.<br />
*The pick block function works in creative mode now works for all ComputerCraft blocks.<br />
*All blocks and items now use the IDs numbers assigned by FTB by default.<br />
*Fixed [[Turtle]]s sometimes placing blocks with incorrect orientations.<br />
*Fixed [[Wireless Modem]]s being able to send messages to themselves.<br />
*Fixed [[turtle.attack]]() having a very short range.<br />
*Various bugfixes.<br />
|align=center|1.5<br />
|-<br />
|align=center|[http://www.computercraft.info/2013/02/11/computercraft-1-5/ Computercraft 1.5]<br />
|<br />
*Redesigned [[Wireless Modem]]s; they can now send and receive on multiple channels, independent of the computer ID. To use these features, interface with modem peripherals [[Modem_(API)|directly]]. The [[Rednet_(API)|rednet API]] still functions as before.<br />
*[[Floppy Disk]]s can now be dyed with multiple dyes, just like armour.<br />
*The [[Excavate|“excavate”]] program now retains fuel in it’s inventory, so can run unattended.<br />
*[[turtle.place]]() now tries all possible block orientations before failing.<br />
*[[turtle.refuel]](0) returns true if a fuel item is selected.<br />
*[[turtle.craft]](0) returns true if the inventory is a valid recipe.<br />
*The in-game help system now has documentation for all the peripherals and their methods, including the new [[Modem]] functionality.<br />
*A romantic surprise.<br />
|align=center|1.4.7<br />
|-<br />
|align=center|[http://www.computercraft.info/2012/12/27/computercraft-1-481-miscperipherals-fix/ Computercraft 1.481]<br />
|<br />
*Fixed compatibility bug with MiscPeripherals.<br />
|align=center|1.4.6<br />
|-<br />
|align=center|[http://www.computercraft.info/2012/12/23/computercraft-1-48/ Computercraft 1.48]<br />
|<br />
*Ported to Minecraft 1.4.6.<br />
*[[Advanced Monitor]]s can now be used as touchscreens.<br />
*[[Advanced Monitor]]s are now easier to craft.<br />
*[[Turtle]]s now get slightly less movement from fuel.<br />
*[[Turtle]]s can now push items.<br />
*[[Computer]]s can now [[Command_Block_(API)|control Command Blocks]], if enabled in the [[ComputerCraft.cfg|config]].<br />
*New [[OS_(API)|os API]] function: [[os.day]]().<br />
*A Christmas surprise.<br />
|align=center|1.4.6<br />
|-<br />
|align=center|[http://www.computercraft.info/2012/11/15/computercraft-1-47-and-minecon-news/ ComputerCraft 1.47]<br />
|<br />
*Ported to Minecraft 1.4.4.<br />
*Fixed label tooltips not showing up in SMP.<br />
|align=center|1.4.4<br />
|-<br />
|align=center|[http://www.computercraft.info/2012/10/25/computercraft-1-46-minecraft-update/ ComputerCraft 1.46]<br />
|<br />
*Ported to Minecraft 1.4.2.<br />
*ComputerCraft items now have their own tab in Creative Mode.<br />
|align=center|1.4.2<br />
|-<br />
|align=center|[http://www.computercraft.info/2012/10/22/computercraft-1-45-now-with-colors/ ComputerCraft 1.45]<br />
|<br />
*Added [[Advanced Computer]]s.<br />
*Added [[Advanced Monitor]]s.<br />
*New program: [[paint]] (by [http://www.computercraft.info/forums2/index.php?/user/643-nitrogenfingers/ nitrogenfingers]).<br />
*New API: [[paintutils_(API)|paintutils]].<br />
*New term functions: [[term.setBackgroundColor]]( color ), [[term.setTextColor]]( color ), [[term.isColor]]().<br />
*New [[Turtle|Turtle API]] function: [[turtle.transferTo]]().<br />
|align=center|1.3.2<br />
|-<br />
|align=center|[http://www.computercraft.info/2012/10/04/computercraft-1-43-books/ ComputerCraft 1.43]<br />
|<br />
*Added [[Printed Page]]s (bind several [[Printed Page]] items into one with a string).<br />
*Added [[Printed_book|Printed Books]] (add a leather cover to the above).<br />
*Labelled [[Turtle]]s now keep their fuel when broken.<br />
*Fixed incompatibility with Forge 275 and above.<br />
|align=center|1.3.2<br />
|-<br />
|align=center|[http://www.computercraft.info/2012/09/22/computercraft-1-42-is-released/ ComputerCraft 1.42]<br />
|<br />
*Ported to Minecraft 1.3.2 and the Forge mod system.<br />
*Added [[Printer]]s.<br />
*[[Floppy Disk]]s can now be dyed different colours.<br />
*[[Turtle|Wireless Crafty Turtles]] can now be crafted.<br />
*All new textures.<br />
*New Forge [[ComputerCraft.cfg|config file]].<br />
*Various tweaks and bug fixes.<br />
|align=center|1.3.2<br />
|-<br />
|align=center|[http://www.computercraft.info/2012/07/29/computercraft-1-41-bugfix-update/ ComputerCraft 1.41]<br />
|<br />
*Fixed labelled [[Computer]]s not keeping their data when destroyed.<br />
*Fixed the [[Excavate|“excavate”]] program outputting lots of spam.<br />
*File system size limits now take into account empty files and directories.<br />
*Some small changes to the Turtle Upgrade API ahead of it’s impending release. (Update: The API has now been released).<br />
|align=center|1.2.5<br />
|-<br />
|align=center|[http://www.computercraft.info/2012/07/27/computercraft-1-4-is-released/ ComputerCraft 1.4]<br />
|<br />
*Ported to Forge Mod Loader: ComputerCraft can now be ran directly from the .zip without extraction.<br />
*Added Farming [[Turtle]]s, Felling [[Turtle]]s, Digging [[Turtle]]s, Melee [[Turtle]]s and Crafty [[Turtle]]s.<br />
*Added 14 new [[Turtle]] combinations accessible by combining the turtle upgrades above.<br />
*Labelled [[Computer]]s and [[Turtle]]s can now be crafted into [[Turtle]]s or other [[Turtle]] types without losing their ID, label and data.<br />
*Added a “[[Turtle]] Upgrade API” for mod developers to create their own tools and peripherals for [[Turtle]]s.<br />
*[[Turtle]]s can now attack entities with [[turtle.attack]]() and collect their dropped items.<br />
*[[Turtle]]s can now use [[turtle.place]]() with any item the player can and can interact with entities.<br />
*[[Turtle]]s can now craft items with [[turtle.craft]]().<br />
*[[Turtle]]s can now place items into inventories with [[turtle.drop]]().<br />
*Changed the behaviour of [[turtle.place]]() and [[turtle.drop]]() to only consider the currently selected slot.<br />
*[[Turtle]]s can now pick up items from the ground or from inventories with [[turtle.suck]]().<br />
*[[Turtle]]s can now compare items in their inventories.<br />
*[[Turtle]]s can place signs with text on them with [[turtle.place]]( [signText] ).<br />
*[[Turtle]]s now optionally require fuel items to move, and can [[turtle.refuel|refuel]] themselves.<br />
*The size of the the [[Turtle]] inventory has been increased to 16 slots.<br />
*The size of the [[Turtle]] screen has been increased.<br />
*New [[Turtle_(API)|turtle API]] functions: [[turtle.compareTo]]( [slotNum] ), [[turtle.craft]](), [[turtle.attack]](), [[turtle.attackUp]](), [[turtle.attackDown]](), [[turtle.dropUp]](), [[turtle.dropDown]](), [[turtle.getFuelLevel]](), [[turtle.refuel]]().<br />
*New [[Disk_(API)|disk API]] function: [[disk.getID]]().<br />
*New [[Turtle]] programs: [[craft]], [[refuel]].<br />
*[[Excavate|“excavate”]] program is now much smarter: will return items to a chest when full, attack mobs, and refuel itself automatically.<br />
*New API: [[Keys_(API)|keys]].<br />
*Added optional [[Floppy Disk]] and Hard Drive space limits for [[Computer]]s and [[Turtle]]s.<br />
*New [[Fs_(API)|fs API]] function: [[fs.getFreeSpace]]( path ). Also [[fs.getDrive]]() works again.<br />
*The send and receive range of wireless modems now increases with altitude, allowing long range networking from high-altitude [[Computer]]s (great for GPS networks).<br />
*[[http.request]]() now supports <code>https://</code> URLs.<br />
*Right clicking a [[Disk Drive]] with a [[Floppy Disk]] or a Record when sneaking will insert the item into the [[Disk Drive]] automatically.<br />
*The default size of the [[Computer]] screen has been increased.<br />
*Several stability and security fixes: LuaJ can now no longer leave dangling threads when a [[Computer]] is unloaded, [[Turtle]]s can no longer be destroyed by tree leaves or walking off the edge of the loaded map. [[Computer]]s no longer crash when used with RedPower frames.<br />
|align=center|1.2.5<br />
|-<br />
|align=center|[http://www.computercraft.info/2012/04/23/computercraft-updated-to-1-2-5/ ComputerCraft 1.33]<br />
|<br />
*Ported to Minecraft 1.2.5.<br />
|align=center|1.2.5<br />
|-<br />
|align=center|[http://www.computercraft.info/2012/03/30/computercraft-1-32-out-now/ ComputerCraft 1.32]<br />
|<br />
*Ported to Minecraft 1.2.4.<br />
*Fixed a big memory leak in LuaJ that caused extra threads to stay around forever when [[Computer]]s were shut down.<br />
|align=center|1.2.4<br />
|-<br />
|align=center|[http://www.computercraft.info/2012/03/13/computercraft-1-31-is-released/ ComputerCraft 1.31]<br />
|<br />
*Ported to Minecraft 1.2.3.<br />
*Added [[Monitor]]s (thanks to Cloudy). Build huge external displays for your [[Computer]]s!<br />
*New positioning capabilities for [[Computer]]s and [[Turtle]]s. Build GPS networks and triangulate the positions of your [[Turtle]]'s position so they never get lost!<br />
*New [[turtle.compare]]() function for [[Turtle]]s for more intelligent mining.<br />
*New programs and APIs: [[Gps_(program)|gps]], [[Monitor_(program)|monitor]], [[Vector_(API)|vector API]].<br />
*New program: [[Pastebin_(program)|pastebin]] (requires <code>enableAPI_HTTP=1</code> in [[ComputerCraft.cfg]]), upload and download programs made by other users ingame!<br />
*Added a new top secret program designed for use with [[Monitor]]s, see if you can find it.<br />
*Lots of additions to existing APIs and programs. Type "help whatsnew" in game for full details.<br />
|align=center|1.2.3<br />
|-<br />
|align=center|[http://www.computercraft.info/2012/02/23/computercraft-1-3-trailer/ ComputerCraft 1.3]<br />
|<br />
*Ported to Minecraft Forge.<br />
*Added [[Turtle]]s, Mining [[Turtle]]s, Wireless [[Turtle]]s and Wireless Mining [[Turtle]]s (Block ID 209).<br />
*Added a Peripheral API to allow mod developers to create custom peripherals for ComputerCraft. Details on this will be posted in the next few days.<br />
*Added [[Wireless Modem]]s. Use the [[Rednet_(API)|rednet API]] to send data wirelessly between [[Computer]]s and [[Turtle]]s!<br />
*[[Computer]]s and [[Disk Drive]]s no longer get destroyed by water.<br />
*[[Computer]]s and [[Turtle]]s can now be labelled, destroyed, and moved around, keeping their state.<br />
*[[Computer]]s and [[Turtle]]s can connect to adjacent devices and turn them on or off.<br />
*User programs now give line numbers in their error messages, for easier debugging.<br />
*New APIs and programs for [[Turtle]]s: [[Turtle_(API)|turtle]], [[excavate]], [[tunnel]], [[go]], [[turn]] and [[dance]].<br />
*Lots of additions to existing APIs and programs. Type "help whatsnew" in game for the full details.<br />
|align=center|1.1<br />
|-<br />
|align=center|ComputerCraft 1.21<br />
|<br />
*Added shortcut key to shutdown the computer (CTRL + S).<br />
*Added a [[Help_(API)|help API]] add-on pack.<br />
*Various bug fixes.<br />
|align=center|1.1<br />
|-<br />
|align=center|ComputerCraft 1.2<br />
|<br />
*Added [[Disk Drive]]s.<br />
*Added shortcut keys to terminate the current program (CTRL + T) and reboot the computer (CTRL + R).<br />
*Added [[os.loadAPI|a new system]] for user created APIs.<br />
*Added [[Rednet_(API)|RedNet]].<br />
*Added [[shell.setPath]]() and [[shell.setAlias]]().<br />
*Added a new ROM startup script.<br />
*Added [[os.clock]](), [[os.time]]() and [[os.setAlarm]]().<br />
*Added game: [[Worm|"Worm!"]].<br />
*Added programs: [[alias]], [[apis]], [[copy]], [[delete]], [[dj]], [[drive]], [[eject]], [[id]], [[label]], [[list]], [[move]], [[reboot]], [[redset]], [[rename]], [[time]].<br />
*Added APIs: [[Bit_(API)|bit]], [[Colours_(API)|colours]], [[Disk_(API)|disk]], [[Help_(API)|help]], [[Rednet_(API)|rednet]], [[Parallel_(API)|parallel]], [[Textutils_(API)|textutils]].<br />
*Text can be edited with left and right arrow keys.<br />
*Many bug fixes.<br />
|align=center|1.0<br />
|-<br />
|align=center|ComputerCraft 1.11<br />
|<br />
*Fixed bug where [[Computer]]s could not read input from RedPower cables which had a bend in the immediately adjacent square.<br />
|align=center|1.0<br />
|-<br />
|align=center|ComputerCraft 1.1<br />
|<br />
*Changed the default block ID for the [[Computer]] to 207.<br />
*Added multiplayer support.<br />
*Added connectivity with RedPower bundled cables.<br />
*Added [[HTTP_(API)|HTTP API]].<br />
*Fixed support for HD textures on the front of [[Computer]]s.<br />
*Added command history to the [[Computer]].<br />
*Added [[ComputerCraft.cfg|config]] options to change the size of the [[Computer]] GUI and the text color.<br />
*Programs with infinite loops that don't yield will no longer freeze Minecraft and will terminate after 10 seconds.<br />
*Extended Help and fixed typos/small errors in various programs.<br />
|align=center|1.0<br />
|-<br />
|align=center|ComputerCraft 1.02<br />
|<br />
*Fixed the MCPatcher HD textures incompatibility that was causing the computer texture to replace cobblestone blocks.<br />
|align=center|1.0<br />
|-<br />
|align=center|ComputerCraft 1.01<br />
|<br />
*Added a ModLoader configuration file, so the computers block ID can be changed.<br />
*Made the error message that displays when Lua files are not correctly installed much more clear, no more "Assertion failed."<br />
|align=center|1.0<br />
|-<br />
|align=center|ComputerCraft 1.0<br />
|<br />
*First Release.<br />
|align=center|1.0<br />
|}</div>MKlegoman357http://www.computercraft.info/wiki/index.php?title=Commands.exec&diff=6929Commands.exec2015-02-23T16:24:23Z<p>MKlegoman357: Almost forgot to mention that it exists as _G.exec in CC 1.71+</p>
<hr />
<div>{{lowercase}}<br />
{{Function<br />
|name=commands.exec<br />
|args={{type|string}} command<br />
|returns={{type|boolean}} success, {{type|table}} output<br />
|api=commands<br />
|addon=ComputerCraft<br />
|desc=Available only to [[Command Computer]]s, executes the specified [http://minecraft.gamepedia.com/Commands MineCraft command], [[os.pullEvent|yields]] until the result is determined, then returns it. If command executes successfully then it returns <var>true</var> + the output of the command as a numerically-indexed table, otherwise returns <var>false</var> + an error message as as a numerically-indexed table. Compare [[commands.execAsync]], which ignores the result and returns immediately, without yielding.<br />
<br/><br />
In ComputerCraft 1.71+ instead of just returning a {{type|boolean}} and an optional error message ({{type|string}}) this function also returns the output of the command in a numerically-indexed table, where each line of the output is put in a separate index. This output is the same as if you would run the command in chat. See example below for an example of this table.<br/><br />
<br/><br />
As of ComputerCraft 1.71 this function is also available in the global environment ( <var>_G</var> ) as just <var>exec</var>.<br/><br />
<br/><br />
Most commands returned by [[commands.list]]() are also available as functions, such that ''commands.exec(command)'' could also be written as ''commands.command(par1, par2, ...)'' - eg, ''commands.exec("msg @p Hello world!")'' becomes ''commands.msg("@p Hello world!")''.<br />
|examples=<br />
{{Example<br />
|desc=Says 'Hello' to the player, closest to the [[Command Computer]].<br />
|code='''commands.exec( "say @p Hello" )'''<br />
}}<br />
{{Example<br />
|desc=Checks if there are any players around the [[Command Computer]] in 2 block radius.<br />
|code=local radius = 2<br />
local arePlayersAround = '''commands.exec( "testfor @a[r=" .. radius .. "]")'''<br />
<br />
if arePlayersAround then<br />
[[print]]( "There is one or more players around me." )<br />
else<br />
[[print]]( "There are no players around me." )<br />
end<br />
}}<br />
{{Example<br />
|desc=Prints the output after running the command "help". ''Requires ComputerCraft 1.71+.''<br />
|code=local success, output = '''commands.exec( "help" )'''<br />
<br />
if success then<br />
[[print]]( [[textutils.serialize]]( output ) )<br />
end<br />
|output=Example output:<br />
{<br />
"--- Showing help page 1 of 5 (/help <page>) ---",<br />
"/achievement give <stat_name> [player]",<br />
"/clear <player> [item] [data]",<br />
"/defaultgamemode <mode>",<br />
"/difficulty <new difficulty>",<br />
"/effect <player> <effect> [seconds] [amplifier]",<br />
"/enchant <player> <enchantment ID> [level]",<br />
"Use /forge <subcommand>. Subcommands are tps, track",<br />
}<br />
&nbsp;<br />
}}<br />
}}<br />
<br />
{{CommandsAPIFunctions}}<br />
<br />
[[Category:API_Functions]]</div>MKlegoman357http://www.computercraft.info/wiki/index.php?title=Commands.exec&diff=6928Commands.exec2015-02-23T16:19:50Z<p>MKlegoman357: Fixed return parameters, improved description</p>
<hr />
<div>{{lowercase}}<br />
{{Function<br />
|name=commands.exec<br />
|args={{type|string}} command<br />
|returns={{type|boolean}} success, {{type|table}} output<br />
|api=commands<br />
|addon=ComputerCraft<br />
|desc=Available only to [[Command Computer]]s, executes the specified [http://minecraft.gamepedia.com/Commands MineCraft command], [[os.pullEvent|yields]] until the result is determined, then returns it. If command executes successfully then it returns <var>true</var> + the output of the command as a numerically-indexed table, otherwise returns <var>false</var> + an error message as as a numerically-indexed table. Compare [[commands.execAsync]], which ignores the result and returns immediately, without yielding.<br />
<br/><br />
In ComputerCraft 1.71+ instead of just returning a {{type|boolean}} and an optional error message ({{type|string}}) this function also returns the output of the command in a numerically-indexed table, where each line of the output is put in a separate index. This output is the same as if you would run the command in chat. See example below for an example of this table.<br/><br />
<br/><br />
Most commands returned by [[commands.list]]() are also available as functions, such that ''commands.exec(command)'' could also be written as ''commands.command(par1, par2, ...)'' - eg, ''commands.exec("msg @p Hello world!")'' becomes ''commands.msg("@p Hello world!")''.<br />
|examples=<br />
{{Example<br />
|desc=Says 'Hello' to the player, closest to the [[Command Computer]].<br />
|code='''commands.exec( "say @p Hello" )'''<br />
}}<br />
{{Example<br />
|desc=Checks if there are any players around the [[Command Computer]] in 2 block radius.<br />
|code=local radius = 2<br />
local arePlayersAround = '''commands.exec( "testfor @a[r=" .. radius .. "]")'''<br />
<br />
if arePlayersAround then<br />
[[print]]( "There is one or more players around me." )<br />
else<br />
[[print]]( "There are no players around me." )<br />
end<br />
}}<br />
{{Example<br />
|desc=Prints the output after running the command "help".<br />
|code=local success, output = '''commands.exec( "help" )'''<br />
<br />
if success then<br />
[[print]]( [[textutils.serialize]]( output ) )<br />
end<br />
|output=Example output:<br />
{<br />
"--- Showing help page 1 of 5 (/help <page>) ---",<br />
"/achievement give <stat_name> [player]",<br />
"/clear <player> [item] [data]",<br />
"/defaultgamemode <mode>",<br />
"/difficulty <new difficulty>",<br />
"/effect <player> <effect> [seconds] [amplifier]",<br />
"/enchant <player> <enchantment ID> [level]",<br />
"Use /forge <subcommand>. Subcommands are tps, track",<br />
}<br />
&nbsp;<br />
}}<br />
}}<br />
<br />
{{CommandsAPIFunctions}}<br />
<br />
[[Category:API_Functions]]</div>MKlegoman357http://www.computercraft.info/wiki/index.php?title=Task_complete_(event)&diff=6927Task complete (event)2015-02-23T16:15:45Z<p>MKlegoman357: Updated to ComputerCraft 1.71</p>
<hr />
<div>{{Event<br />
|name=task_complete<br />
|desc=Fired when an asynchronous task completes. Used by every [[commands_(API)|commands API]] method which yields, including [[commands.execAsync]](), but excluding [[commands.getBlockPosition]](). Also used internally by every [[Command_Block_(API)|command block's methods]].<br />
|return1={{type|number}} taskID - the ID number of the task<br />
|return2={{type|boolean}} success - <var>true</var> if the task completed without error, <var>false</var> otherwise<br />
|return3=[<nowiki/>{{type|string}} error] - if <var>success</var> is <var>false</var> then this is the error message saying why the task failed. Otherwise returned object 4 takes it's place, fallowed by returned object 5, 6, etc..<br />
|return4={{type|any}} param1, param2, ... - parameters, returned by the task<br />
}}<br />
{{Example<br />
|desc=Waits for any task to complete and prints it's ID, if it succeeded and if not succeeded the error message.<br />
|code=local event, taskID, success, error = '''os.pullEvent( "task_complete" )'''<br />
<br />
[[print]]( "Task ID: ", taskID )<br />
[[print]]( "Task succeeded: ", success )<br />
<br />
if not success then<br />
[[print]]( "Error: ", error )<br />
end<br />
}}<br />
<br />
==[[commands.exec]]()/[[commands.execAsync]]()==<br />
{{Event<br />
|name=task_complete<br />
|desc=Fired when [[commands.exec]]()/[[commands.execAsync]]() is executed. This is used internally by [[commands.exec]]() and it is not needed to be used by the user.<br />
|return1={{type|number}} taskID - the ID number of the task<br />
|return2={{type|boolean}} success - <var>true</var> if the task completed without error, <var>false</var> otherwise<br />
|return3=[<nowiki/>{{type|string}} error] - if <var>success</var> is <var>false</var> then this is the error message saying why the task failed. Otherwise returned object 4 takes it's place, fallowed by returned object 5<br />
|return4={{type|boolean}} commandResult - <var>true</var> if the command was executed successfully and returned positive value (a /testfor found a player), <var>false</var> if the command was not executed (invalid command or wrong arguments passed to the command) or it returned negative value (a /testfor didn't find a player)<br />
|return5={{type|table}} output - the output of the command as a numerically-indexed table<br />
}}<br />
{{Example<br />
|desc=Checks if there are any players around the [[Command Computer]] in 2 block radius.<br />
|code=local radius = 2<br />
local taskID = [[commands.execAsync]]( "testfor @a[r=" .. radius .. "]")'''<br />
<br />
local arePlayersAround<br />
local errorMessage<br />
while true do<br />
local event, id, success, executed, error = [[os.pullEvent]]( [[task_complete_(event)|"task_complete"]] )<br />
<br />
if id == taskID then<br />
arePlayersAround = success and executed<br />
<br />
if not success then<br />
errorMessage = executed<br />
elseif not executed then<br />
errorMessage = error<br />
end<br />
<br />
break<br />
end<br />
end<br />
<br />
if errorMessage then<br />
[[print]]( "An error has occurred: ", [[textutils.serialize]]( errorMessage ) )<br />
elseif arePlayersAround then<br />
[[print]]( "There is one or more players around me." )<br />
else<br />
[[print]]( "There are no players around me." )<br />
end<br />
}}<br />
<br />
==[[commands.list]]()==<br />
{{Event<br />
|name=task_complete<br />
|desc=Fired when [[commands.list]]() completes. This is used internally by the function itself and it is not needed to be used by the user.<br />
|return1={{type|number}} taskID - the ID number of the task<br />
|return2={{type|boolean}} success - <var>true</var> if the task completed without error, <var>false</var> otherwise<br />
|return3=[<nowiki/>{{type|string}} error] - if <var>success</var> is <var>false</var> then this is the error message saying why the task failed. Otherwise returned object 4 takes it's place<br />
|return4={{type|table}} commands - a numerically indexed table filled with strings representing acceptable commands for [[commands.exec]]() / [[commands.execAsync]]()<br />
}}<br />
<br />
==[[commands.getBlockInfo]]()==<br />
{{Event<br />
|name=task_complete<br />
|desc=Fired when [[commands.getBlockInfo]]() completes. This is used internally by the function itself and it is not needed to be used by the user.<br />
|return1={{type|number}} taskID - the ID number of the task<br />
|return2={{type|boolean}} success - <var>true</var> if the task completed without error, <var>false</var> otherwise<br />
|return3=[<nowiki/>{{type|string}} error] - if <var>success</var> is <var>false</var> then this is the error message saying why the task failed. Otherwise returned object 4 takes it's place<br />
|return4={{type|table}} blockInfo - a table containing information on the block at the specified world co-ordinate<br />
}}<br />
<br />
==[[commandBlock.getCommand]]()==<br />
{{Event<br />
|name=task_complete<br />
|desc=Fired when [[commandBlock.getCommand]]() completes. This is used internally by the function itself and it is not needed to be used by the user.<br />
|return1={{type|number}} taskID - the ID number of the task<br />
|return2={{type|boolean}} success - <var>true</var> if the task completed without error, <var>false</var> otherwise<br />
|return3=[<nowiki/>{{type|string}} error] - if <var>success</var> is <var>false</var> then this is the error message saying why the task failed. Otherwise returned object 4 takes it's place<br />
|return4={{type|string}} command - the command in the command block<br />
}}<br />
<br />
==[[commandBlock.setCommand]]()==<br />
{{Event<br />
|name=task_complete<br />
|desc=Fired when [[commandBlock.setCommand]]() completes. This is used internally by the function itself and it is not needed to be used by the user.<br />
|return1={{type|number}} taskID - the ID number of the task<br />
|return2={{type|boolean}} success - <var>true</var> if the task completed without error, <var>false</var> otherwise<br />
|return3=[<nowiki/>{{type|string}} error] - if <var>success</var> is <var>false</var> then this is the error message saying why the task failed.<br />
}}<br />
<br />
==[[commandBlock.runCommand]]()==<br />
{{Event<br />
|name=task_complete<br />
|desc=Fired when [[commandBlock.runCommand]]() completes. This is used internally by the function itself and it is not needed to be used by the user.<br />
|return1={{type|number}} taskID - the ID number of the task<br />
|return2={{type|boolean}} success - <var>true</var> if the task completed without error, <var>false</var> otherwise<br />
|return3=[<nowiki/>{{type|string}} error] - if <var>success</var> is <var>false</var> then this is the error message saying why the task failed. Otherwise returned object 4 takes it's place, fallowed by returned object 5<br />
|return4={{type|boolean}} commandResult - <var>true</var> if the command was executed successfully and returned positive value (a /testfor found a player), <var>false</var> if the command was not executed (invalid command or wrong arguments passed to the command) or it returned negative value (a /testfor didn't find a player)<br />
|return5=[<nowiki/>{{type|string}} error] - if <var>commandResult</var> is <var>false</var> then this is the error message saying why the command failed<br />
}}</div>MKlegoman357http://www.computercraft.info/wiki/index.php?title=Commands.exec&diff=6926Commands.exec2015-02-23T15:58:31Z<p>MKlegoman357: Updated to ComputerCraft 1.71</p>
<hr />
<div>{{lowercase}}<br />
{{Function<br />
|name=commands.exec<br />
|args={{type|string}} command<br />
|returns={{type|boolean}} success, {{type|table}} output/{{type|string}} error<br />
|api=commands<br />
|addon=ComputerCraft<br />
|desc=Available only to [[Command Computer]]s, executes the specified [http://minecraft.gamepedia.com/Commands MineCraft command], [[os.pullEvent|yields]] until the result is determined, then returns it. If command executes successfully then it returns <var>true</var> + the output of the command as a numerically-indexed table, otherwise returns <var>false</var> + an error message as as a numerically-indexed table. Compare [[commands.execAsync]], which ignores the result and returns immediately, without yielding.<br />
<br/><br />
In ComputerCraft 1.71+ instead of just returning <var>true</var> this function also returns the output of the command in a numerically-indexed table. This output is the same as if you would run the command in chat. Each line of the output is put in a separate index. See example below for an example of this table.<br/><br />
<br/><br />
Most commands returned by [[commands.list]]() are also available as functions, such that ''commands.exec(command)'' could also be written as ''commands.command(par1, par2, ...)'' - eg, ''commands.exec("msg @p Hello world!")'' becomes ''commands.msg("@p Hello world!")''.<br />
|examples=<br />
{{Example<br />
|desc=Says 'Hello' to the player, closest to the [[Command Computer]].<br />
|code='''commands.exec( "say @p Hello" )'''<br />
}}<br />
{{Example<br />
|desc=Checks if there are any players around the [[Command Computer]] in 2 block radius.<br />
|code=local radius = 2<br />
local arePlayersAround = '''commands.exec( "testfor @a[r=" .. radius .. "]")'''<br />
<br />
if arePlayersAround then<br />
[[print]]( "There is one or more players around me." )<br />
else<br />
[[print]]( "There are no players around me." )<br />
end<br />
}}<br />
{{Example<br />
|desc=Prints the output after running the command "help".<br />
|code=local success, output = '''commands.exec("help")'''<br />
<br />
if success then<br />
[[print]]( textutils.serialize( output ) )<br />
end<br />
|output=Example output:<br />
{<br />
"--- Showing help page 1 of 5 (/help <page>) ---",<br />
"/achievement give <stat_name> [player]",<br />
"/clear <player> [item] [data]",<br />
"/defaultgamemode <mode>",<br />
"/difficulty <new difficulty>",<br />
"/effect <player> <effect> [seconds] [amplifier]",<br />
"/enchant <player> <enchantment ID> [level]",<br />
"Use /forge <subcommand>. Subcommands are tps, track",<br />
}<br />
&nbsp;<br />
}}<br />
}}<br />
<br />
{{CommandsAPIFunctions}}<br />
<br />
[[Category:API_Functions]]</div>MKlegoman357