Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --[[ T U R T L E S H O R T E N
- C O M M A N D S
- ComputerCraft Turtles API
- created by sysPL ]]--
- --On the start of your program code,
- --type os.loadApi("turtleShortenCommands")
- --API Functions
- --Craft (for crafty turtles)
- function craft(quantity)
- turtle.craft(quantity)
- end
- --Fwd (for all turtles)
- function fwd()
- turtle.forward()
- end
- --Up (for all turtles)
- function up()
- turtle.up()
- end
- --Dwn (for all turtles)
- function dwn()
- turtle.down()
- end
- --L (for all turtles)
- function l()
- turtle.turnLeft()
- end
- --R (for all turtles)
- function r()
- turtle.turnRight()
- end
- --Sel (for all turtles)
- function select(slot)
- turtle.select(slot)
- end
- --El (for all turtles)
- function el()
- turtle.equipLeft()
- end
- --Er (for all turtles)
- function er()
- turtle.equipRight()
- end
- --Atk (any tool)
- function atk()
- turtle.attack()
- end
- --Dig (Mining, felling, digging, farming OR with equipped item)
- function dig()
- turtle.dig()
- end
- --Dup (like dig)
- function dup()
- turtle.digUp()
- end
- --Ddwn (like dig)
- function ddwn()
- turtle.digDown()
- end
- --Place (all turtles)
- function place()
- turtle.place()
- end
- --Pup (all turtles)
- function pup()
- turtle.placeUp()
- end
- --Pdwn (all turtles)
- function pdwn()
- turtle.placeDown()
- end
- --Drop (all turtles)
- function drop(dquantity)
- turtle.drop(dquantity)
- end
- --Refuel (all turtles)
- function refuel(rquantity)
- turtle.refuel(rquantity)
- end
- --All commands wrote by sysPL.
- --Use it for free in your applications.
- --Commands shorten from CC - Turtle API.
- --They are not by me.
- -- Cheers - sysPL/syseQ
Advertisement
Add Comment
Please, Sign In to add comment