<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
		<id>https://www.computercraft.info/wiki/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Luingar</id>
		<title>ComputerCraft Wiki - User contributions [en]</title>
		<link rel="self" type="application/atom+xml" href="https://www.computercraft.info/wiki/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Luingar"/>
		<link rel="alternate" type="text/html" href="https://www.computercraft.info/wiki/Special:Contributions/Luingar"/>
		<updated>2026-07-11T19:51:14Z</updated>
		<subtitle>User contributions</subtitle>
		<generator>MediaWiki 1.24.1</generator>

	<entry>
		<id>https://www.computercraft.info/wiki/index.php?title=Talk:Gps_(program)&amp;diff=2538</id>
		<title>Talk:Gps (program)</title>
		<link rel="alternate" type="text/html" href="https://www.computercraft.info/wiki/index.php?title=Talk:Gps_(program)&amp;diff=2538"/>
				<updated>2012-08-08T22:59:56Z</updated>
		
		<summary type="html">&lt;p&gt;Luingar: Created page with &amp;quot;==Spoiler tag?== Is there a way to hide all that code until/unless the user clicks a button? That's a pretty big block of code :/ ~~~~&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==Spoiler tag?==&lt;br /&gt;
Is there a way to hide all that code until/unless the user clicks a button? That's a pretty big block of code :/&lt;br /&gt;
[[User:Luingar|Luingar]] 22:59, 8 August 2012 (UTC)&lt;/div&gt;</summary>
		<author><name>Luingar</name></author>	</entry>

	<entry>
		<id>https://www.computercraft.info/wiki/index.php?title=Turtle&amp;diff=2517</id>
		<title>Turtle</title>
		<link rel="alternate" type="text/html" href="https://www.computercraft.info/wiki/index.php?title=Turtle&amp;diff=2517"/>
				<updated>2012-08-07T20:58:26Z</updated>
		
		<summary type="html">&lt;p&gt;Luingar: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;'''Turtles''' are essentially robots, and were added in the 1.3 update. They run an OS (like the [[Console|consoles]]) named [[TurtleOS]]. They have the ability to place, break and detect blocks, move around and drop items in their inventory. The programs they run are stored on it's internal memory or [[Floppy Disk|floppy disks]].&lt;br /&gt;
&lt;br /&gt;
The 1.4 update was focused on turtles and added new tools for them to use. Turtles can now in addition to pickaxes use: Hoes, crafting tables, axes, shovels and sword. The update also included a new fuel system for the turtles. Turtles also got a inventory upgrade from 9 slots to 16.&lt;br /&gt;
&lt;br /&gt;
Turtles are submersible and lavaproof. As such, they are extremely useful for mining near bedrock, where heavy lava flows can prevent access to diamonds and other rare finds.&lt;br /&gt;
&lt;br /&gt;
If you would like to know more about how to program them, have a look at the [[Turtle (API)|Turtle API]].&lt;br /&gt;
&lt;br /&gt;
==Floppy Disks==&lt;br /&gt;
Turtles do not have a built-in floppy drive. As such they need a floppy drive placed beside them to access disks. However if the turtle is a Wireless turtle, the floppy drive and other peripherals must be placed on a side other than the side the wireless modem is on.&lt;br /&gt;
&lt;br /&gt;
==Power source==&lt;br /&gt;
Turtles runs on fuel. Fuel is any item that works in a regular furnace, like coal and lava. The turtle gains 0.6 movement per half second the fuel would have burnt in a furnace.&lt;br /&gt;
The turtle can move 1 block for each fuel count it got, for example, coal yields 96 block movements.&lt;br /&gt;
&lt;br /&gt;
=== Optional Non-fuel mode ===&lt;br /&gt;
&lt;br /&gt;
In this mode turtles use their internal redstone engine, they do not need to be re-charged, or any other form of external power.&lt;br /&gt;
This is because redstone continuously emits low levels of energy, and the turtle's engine is very efficient.&lt;br /&gt;
This mode can be turned on by editing the turtle config file  (config/CCTurtle.cfg) and setting turtleNeedsFuel to 0.&lt;br /&gt;
&lt;br /&gt;
==Farming==&lt;br /&gt;
Turtles equipped with a hoe can till dirt.&lt;br /&gt;
&lt;br /&gt;
==Mining==&lt;br /&gt;
Turtles crafted with a [[diamond pickaxe]], [[diamond axe]], or [[diamond shovel]], can break blocks, mine wood, and even break dirt and gravel, depending on the tool you used on it. The tools equipped on the turtle have no durability, and so can be used indefinitely without the need for any additional materials. When a turtle breaks the block it gets the item directly into its inventory. Different tools yields different drop, for example, an axe can break anything, but it won't get ores.&lt;br /&gt;
&lt;br /&gt;
==Crafting==&lt;br /&gt;
Turtles equipped with a workbench can craft items. When crafting the upper left 3x3 part of the turtles inventory can only contain the items needed for the recipe.&lt;br /&gt;
&lt;br /&gt;
==Melee==&lt;br /&gt;
Turtles equipped with a sword can attack players and mobs. When a turtle kills a mob it will leave the experience orbs on the ground, but add the loot to it's inventory. Turtles can also attack with any tool, where axe is the second best after the sword.&lt;br /&gt;
&lt;br /&gt;
==Recipes==&lt;br /&gt;
&lt;br /&gt;
{|&lt;br /&gt;
|+'''Crafting ingredients'''&lt;br /&gt;
|-&lt;br /&gt;
|Turtle&lt;br /&gt;
|{{Crafting grid&lt;br /&gt;
 |A1=iron_ingot |B1=iron_ingot |C1=iron_ingot&lt;br /&gt;
 |A2=iron_ingot |B2=console    |C2=iron_ingot&lt;br /&gt;
 |A3=iron_ingot |B3=chest      |C3=iron_ingot&lt;br /&gt;
 |Output=turtle&lt;br /&gt;
 }}&lt;br /&gt;
|-&lt;br /&gt;
Turtles can be equipped with different peripherals and tools. A turtle can only have one tool and one peripheral.&lt;br /&gt;
&amp;lt;br&amp;gt;The following tools can be equipped to a turtles: [[diamond pickaxe]], [[diamond axe]], [[diamond shovel]], [[diamond hoe]] and [[diamond sword]]&lt;br /&gt;
&amp;lt;br&amp;gt;The following peripherals can be equipped to a turtles: [[wireless modem]] and [[crafting table]].&lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;'''Turtle recipe and examples for equipping a turtle with tools and peripherals.'''&lt;br /&gt;
|Mining Turtle&lt;br /&gt;
|{{Crafting grid&lt;br /&gt;
 |A2=turtle |B2=diamond_pickaxe&lt;br /&gt;
 |Output=mining_turtle&lt;br /&gt;
 }}&lt;br /&gt;
|-&lt;br /&gt;
|Farming Turtle&lt;br /&gt;
|{{Crafting grid&lt;br /&gt;
 |A2=turtle |B2=diamond_hoe&lt;br /&gt;
 |Output=farming_turtle&lt;br /&gt;
 }}&lt;br /&gt;
|-&lt;br /&gt;
|Melee Turtle&lt;br /&gt;
|{{Crafting grid&lt;br /&gt;
 |A2=turtle |B2=diamond_sword&lt;br /&gt;
 |Output=melee_turtle&lt;br /&gt;
 }}&lt;br /&gt;
|-&lt;br /&gt;
|Felling Turtle&lt;br /&gt;
|{{Crafting grid&lt;br /&gt;
 |A2=turtle |B2=diamond_axe&lt;br /&gt;
 |Output=felling_turtle&lt;br /&gt;
 }}&lt;br /&gt;
|-&lt;br /&gt;
|Digging Turtle&lt;br /&gt;
|{{Crafting grid&lt;br /&gt;
 |A2=turtle |B2=diamond_shovel&lt;br /&gt;
 |Output=digging_turtle&lt;br /&gt;
 }}&lt;br /&gt;
|-&lt;br /&gt;
|Crafty Turtle&lt;br /&gt;
|{{Crafting grid&lt;br /&gt;
 |A2=turtle |B2=workbench&lt;br /&gt;
 |Output=Crafty_turtle&lt;br /&gt;
 }}&lt;br /&gt;
|-&lt;br /&gt;
|Wireless Turtle&lt;br /&gt;
|{{Crafting grid&lt;br /&gt;
 |A2=turtle |B2=modem&lt;br /&gt;
 |Output=wireless_turtle&lt;br /&gt;
 }}&lt;br /&gt;
|-&lt;br /&gt;
|Wireless Farming Turtle&lt;br /&gt;
|{{Crafting grid&lt;br /&gt;
 |A2=modem |B2=turtle |C2=diamond_hoe&lt;br /&gt;
 |Output=wireless_farming_turtle&lt;br /&gt;
 }}&lt;br /&gt;
|-&lt;br /&gt;
|Wireless Felling Turtle&lt;br /&gt;
|{{Crafting grid&lt;br /&gt;
 |A2=modem |B2=turtle |C2=diamond_axe&lt;br /&gt;
 |Output=wireless_felling_turtle&lt;br /&gt;
 }}&lt;br /&gt;
|-&lt;br /&gt;
|Wireless Digging Turtle&lt;br /&gt;
|{{Crafting grid&lt;br /&gt;
 |A2=modem |B2=turtle |C2=diamond_shovel&lt;br /&gt;
 |Output=wireless_digging_turtle&lt;br /&gt;
 }}&lt;br /&gt;
|-&lt;br /&gt;
|Wireless Crafty Turtle&lt;br /&gt;
|{{Crafting grid&lt;br /&gt;
 |A2=modem |B2=turtle |C2=workbench&lt;br /&gt;
 |Output=wireless_crafty_turtle&lt;br /&gt;
 }}&lt;br /&gt;
|-&lt;br /&gt;
|Wireless Melee Turtle&lt;br /&gt;
|{{Crafting grid&lt;br /&gt;
 |A2=modem |B2=turtle |C2=diamond_sword&lt;br /&gt;
 |Output=wireless_melee_turtle&lt;br /&gt;
 }}&lt;br /&gt;
|-&lt;br /&gt;
|Wireless Mining Turtle&lt;br /&gt;
|{{Crafting grid&lt;br /&gt;
 |A2=modem |B2=turtle |C2=diamond_pickaxe&lt;br /&gt;
 |Output=wireless_mining_turtle&lt;br /&gt;
 }}&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Category:Blocks]]&lt;/div&gt;</summary>
		<author><name>Luingar</name></author>	</entry>

	<entry>
		<id>https://www.computercraft.info/wiki/index.php?title=Gps_(program)&amp;diff=2371</id>
		<title>Gps (program)</title>
		<link rel="alternate" type="text/html" href="https://www.computercraft.info/wiki/index.php?title=Gps_(program)&amp;diff=2371"/>
				<updated>2012-07-28T01:06:07Z</updated>
		
		<summary type="html">&lt;p&gt;Luingar: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;'''gps''' is a stock program designed to make use of the ''positioning capabilities'' introduced in ComputerCraft 1.31.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Usage ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{| border=&amp;quot;1&amp;quot; cellpadding=&amp;quot;2&amp;quot; cellspacing=&amp;quot;0&amp;quot;&lt;br /&gt;
!style=&amp;quot;background:#EEE&amp;quot; width=&amp;quot;200px&amp;quot;|Method name&lt;br /&gt;
!style=&amp;quot;background:#EEE&amp;quot; width=&amp;quot;*&amp;quot;|Description&lt;br /&gt;
|-&lt;br /&gt;
|gps host&lt;br /&gt;
|The computer will act as a gps host.&amp;lt;br /&amp;gt;&lt;br /&gt;
The computer's own location is retrieved using the gps.&lt;br /&gt;
|-&lt;br /&gt;
|gps host &amp;lt;x&amp;gt; &amp;lt;y&amp;gt; &amp;lt;z&amp;gt;&lt;br /&gt;
|The computer will act as a gps host.&amp;lt;br /&amp;gt;&lt;br /&gt;
You manually provide the computer's own location (x, y and z).&lt;br /&gt;
|-&lt;br /&gt;
|gps locate&lt;br /&gt;
|It will try to retrieve the computer or turtle own location.&amp;lt;br /&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;&lt;br /&gt;
local function printUsage()&lt;br /&gt;
	print( &amp;quot;Usages:&amp;quot; )&lt;br /&gt;
	print( &amp;quot;gps host&amp;quot; )&lt;br /&gt;
	print( &amp;quot;gps host &amp;lt;x&amp;gt; &amp;lt;y&amp;gt; &amp;lt;z&amp;gt;&amp;quot; )&lt;br /&gt;
	print( &amp;quot;gps locate&amp;quot; )&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
local tArgs = { ... }&lt;br /&gt;
if #tArgs &amp;lt; 1 then&lt;br /&gt;
	printUsage()&lt;br /&gt;
	return&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
local function readNumber()&lt;br /&gt;
	local num = nil&lt;br /&gt;
	while num == nil do&lt;br /&gt;
		num = tonumber(read())&lt;br /&gt;
		if not num then&lt;br /&gt;
			write( &amp;quot;Not a number. Try again: &amp;quot; )&lt;br /&gt;
		end&lt;br /&gt;
	end&lt;br /&gt;
	return math.floor( num + 0.5 )&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
local function open()&lt;br /&gt;
	local bOpen, sFreeSide = false, nil&lt;br /&gt;
	for n,sSide in pairs(rs.getSides()) do	&lt;br /&gt;
		if peripheral.getType( sSide ) == &amp;quot;modem&amp;quot; then&lt;br /&gt;
			sFreeSide = sSide&lt;br /&gt;
			if rednet.isOpen( sSide ) then&lt;br /&gt;
				bOpen = true&lt;br /&gt;
				break&lt;br /&gt;
			end&lt;br /&gt;
		end&lt;br /&gt;
	end&lt;br /&gt;
	&lt;br /&gt;
	if not bOpen then&lt;br /&gt;
		if sFreeSide then&lt;br /&gt;
			print( &amp;quot;No modem active. Opening &amp;quot;..sFreeSide..&amp;quot; modem&amp;quot; )&lt;br /&gt;
			rednet.open( sFreeSide )&lt;br /&gt;
			return true&lt;br /&gt;
		else&lt;br /&gt;
			print( &amp;quot;No modem attached&amp;quot; )&lt;br /&gt;
			return false&lt;br /&gt;
		end&lt;br /&gt;
	end&lt;br /&gt;
	return true&lt;br /&gt;
end&lt;br /&gt;
	&lt;br /&gt;
local sCommand = tArgs[1]&lt;br /&gt;
if sCommand == &amp;quot;locate&amp;quot; then&lt;br /&gt;
	if open() then&lt;br /&gt;
		gps.locate( 2, true )&lt;br /&gt;
	end&lt;br /&gt;
	&lt;br /&gt;
elseif sCommand == &amp;quot;host&amp;quot; then&lt;br /&gt;
	if turtle then&lt;br /&gt;
		print( &amp;quot;Turtles cannot act as GPS hosts.&amp;quot; )&lt;br /&gt;
		return&lt;br /&gt;
	end&lt;br /&gt;
&lt;br /&gt;
	if open() then&lt;br /&gt;
		local x,y,z&lt;br /&gt;
		if #tArgs &amp;gt;= 4 then&lt;br /&gt;
			x = tonumber(tArgs[2])&lt;br /&gt;
			y = tonumber(tArgs[3])&lt;br /&gt;
			z = tonumber(tArgs[4])&lt;br /&gt;
			if x == nil or y == nil or z == nil then&lt;br /&gt;
				printUsage()&lt;br /&gt;
				return&lt;br /&gt;
			end&lt;br /&gt;
			print( &amp;quot;Position is &amp;quot;..x..&amp;quot;,&amp;quot;..y..&amp;quot;,&amp;quot;..z )&lt;br /&gt;
		else&lt;br /&gt;
			x,y,z = gps.locate( 2, true )&lt;br /&gt;
			if x == nil then&lt;br /&gt;
				print( &amp;quot;Run \&amp;quot;gps host &amp;lt;x&amp;gt; &amp;lt;y&amp;gt; &amp;lt;z&amp;gt;\&amp;quot; to set position manually&amp;quot; )&lt;br /&gt;
				return&lt;br /&gt;
			end&lt;br /&gt;
		end&lt;br /&gt;
	&lt;br /&gt;
		print( &amp;quot;Serving GPS requests&amp;quot; )&lt;br /&gt;
	&lt;br /&gt;
		local nServed = 0&lt;br /&gt;
		while true do&lt;br /&gt;
			sender,message,distance = rednet.receive()&lt;br /&gt;
			if message == &amp;quot;PING&amp;quot; then&lt;br /&gt;
				rednet.send(sender, textutils.serialize({x,y,z}))&lt;br /&gt;
				&lt;br /&gt;
				nServed = nServed + 1&lt;br /&gt;
				if nServed &amp;gt; 1 then&lt;br /&gt;
					local x,y = term.getCursorPos()&lt;br /&gt;
					term.setCursorPos(1,y-1)&lt;br /&gt;
				end&lt;br /&gt;
				print( nServed..&amp;quot; GPS Requests served&amp;quot; )&lt;br /&gt;
			end&lt;br /&gt;
		end&lt;br /&gt;
	end&lt;br /&gt;
	&lt;br /&gt;
else&lt;br /&gt;
	printUsage()&lt;br /&gt;
	return&lt;br /&gt;
end&lt;br /&gt;
&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
[[Category:Notable Programs]]&lt;/div&gt;</summary>
		<author><name>Luingar</name></author>	</entry>

	</feed>