for i = 1, 5 do
;go
end
while ;detect do
;gol
end
Basic movement:
- ;go - turtle.forward()
- ;back - turtle.back()
- ;left or ;l - turtle.turnLeft()
- ;right or ;r - turtle.turnRight()
- ;up - turtle.up()
- ;down - turtle.down()
"l" at the end stands for "Loop"
- ;gol - while not turtle.forward() do sleep(0.8) end
- ;backl - while not turtle.back() do sleep(0.8) end
- ;upl - while not turtle.up() do sleep(0.8) end
- ;doenl - while not turtle.down() do sleep(0.8) end
- ;dig - turtle.dig()
- ;digup - turtle.dugUp()
- ;digdown - turtle.digdown()
"d" at the end stands for "dig"
- ;god - while not turtle.forward() do turtle.dig() end
- ;backd - turtle.turnLeft() turtle.turnLeft() while not turtle.forward() do turtle.dig() end turtle.turnLeft() turtle.turnLeft()
- ;upd - while not turtle.up() do turtle.digUp() end
- ;downd - while not turtle.down() do turtle.digDown() end
- ;suck - turtle.suck()
- ;suckup - turtle.suckUp()
- ;suckdown - turtle.suckDown()
- ;sucka - turtle.suck() turtle.suckUp() turtle.suckDown()
- ;att - turtle.attack()
- ;attup - turtle.attackUp()
- ;attdown - turtle.attackDown()
"s" stands for "suck"
- ;atts - turtle.attack() turtle.suck()
- ;attups - turtle.attackUp() turtle.suckUp()
- ;attdowns - turtle.attackDown() turtle.suckDown()
- ;detect - turtle.detect()
- ;detectup - turtle.detectUp()
- ;detectdown - turtle.detectDown()
- ;pl - turtle.place()
- ;plup - turtle.placeUp()
- ;pldown - turtle.placeDown()
- ;comp - turtle.compare()
- ;compup - turtle.compareUp()
- ;compdown - turtle.compareDown()
- ;compto <slot> - turtle.compareTo(<slot>)
- ;fuel - turtle.getFuelLevel()
- ;refuel slot - turtle.refuel(<slot>)
- ;sel <slot> - turtle.select(<slot>)
- ;count <slot> - turtle.getItemCount(<slot>)
- ;space <slot> - turtle.getItemSpace(<slot>)
- ;transfer <slot> <qty> - turtle.transferTo(<slot>, <qty>)
- ;craft <qty> - turtle.craft(<qty>)
- ;drop <qty> - turtle.drop(<qty>)
- ;dropup <qty> - turtle.dropUp(<qty>)
- ;dropdown <qty> - turtle.dropDown(<qty>)
Spoiler
µTurtle
Copyright © 2013 Jesusthekiller
This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program. If not, see <http://www.gnu.org/licenses/>.