Difference between revisions of "Turtle.detectDown"

From ComputerCraft Wiki
Jump to: navigation, search
(anh em may cung nhau xem di)
(Adding "see also".)
 
(5 intermediate revisions by 3 users not shown)
Line 1: Line 1:
Hello my friend heres my new gig easy as it looks Ill send u a total of 5350++ backlinks to your website in 2 tiers. This gig its for 1 website and up to 5 keywords. First tier to your main website 350 page rank 1-5 and the the second tier of 5000 profile backlinks pointing to your first tier.Ill send u a report in a txt file in less than 48 hours.Any question just send me a private message
+
{{lowercase}}
 +
{{Function
 +
|name=turtle.detectDown
 +
|args=
 +
|api=turtle
 +
|returns={{type|boolean}} If turtle has detected a block below.
 +
|addon=ComputerCraft
 +
|desc=Detects if there is a Block Below.
 +
|examples=
 +
{{Example
 +
|desc=Displays whether or not there is a block under the turtle.
 +
|code=if turtle.detectDown() then
 +
  print("There is a block under me!")
 +
else
 +
  print("There isn't a block under me!")
 +
end
 +
|output=A message on the turtle screen telling if a block is under the turtle.
 +
}}
 +
}}
 +
 
 +
==See also==
 +
*[[turtle.detect]]
 +
*[[turtle.detectUp]]
 +
 
 +
[[Category:Lua_Core_Functions]]

Latest revision as of 17:59, 22 April 2015


Grid Redstone.png  Function turtle.detectDown
Detects if there is a Block Below.
Syntax turtle.detectDown()
Returns boolean If turtle has detected a block below.
Part of ComputerCraft
API turtle

Examples

Grid paper.png  Example
Displays whether or not there is a block under the turtle.
Code
if turtle.detectDown() then
  print("There is a block under me!")
else
  print("There isn't a block under me!")
end
Output A message on the turtle screen telling if a block is under the turtle.


See also