Difference between revisions of "Turtle.placeUp"
From ComputerCraft Wiki
(Created page with " {{lowercase}} {{Function |name=turtle.placeUp |args= |api=turtle |addon=ComputerCraft |desc=Places a Block of the selected Slot above |examples= {{Example |desc=Places a Bloc...") |
(Adding "see also" and making description clearer.) |
||
(5 intermediate revisions by 4 users not shown) | |||
Line 1: | Line 1: | ||
− | |||
{{lowercase}} | {{lowercase}} | ||
{{Function | {{Function | ||
Line 6: | Line 5: | ||
|api=turtle | |api=turtle | ||
|addon=ComputerCraft | |addon=ComputerCraft | ||
− | |desc=Places a Block of the selected Slot above | + | |desc=Places above a Block of the selected Slot. See function [[turtle.select]] for information on selecting a slot for placement. |
+ | |returns=[[boolean_(type)|boolean]] whether the turtle succeeded in placing the block. False if selected slot is empty, or if there is already a block above. | ||
|examples= | |examples= | ||
{{Example | {{Example | ||
|desc=Places a Block of the selected Slot above | |desc=Places a Block of the selected Slot above | ||
− | |code= | + | |code=turtle.placeUp() |
}} | }} | ||
}} | }} | ||
+ | |||
+ | ==See also== | ||
+ | *[[turtle.place]] | ||
+ | *[[turtle.placeDown]] | ||
+ | |||
+ | [[Category:Lua_Core_Functions]] |
Latest revision as of 18:02, 22 April 2015
Function turtle.placeUp | |
Places above a Block of the selected Slot. See function turtle.select for information on selecting a slot for placement. | |
Syntax | turtle.placeUp() |
Returns | boolean whether the turtle succeeded in placing the block. False if selected slot is empty, or if there is already a block above. |
Part of | ComputerCraft |
API | turtle |
Examples
Example | |
Places a Block of the selected Slot above | |
Code |
turtle.placeUp() |