Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function rotateToRed(side)
- while(redstone.getInput(side)==false)do
- turtle.turnLeft()
- end
- end
- function numCraftToSlot(n)
- slot=n
- if(n>3)then slot=slot+1 end
- if(n>6)then slot=slot+1 end
- return slot
- end
- function suck(slot,count)
- turtle.select(slot)
- turtle.suck()
- if(turtle.getItemCount(slot)-count>0)then
- turtle.drop(turtle.getItemCount(slot)-count)
- end
- end
- function suckUp(slot,count)
- turtle.select(slot)
- turtle.suckUp()
- if(turtle.getItemCount(slot)-count>0)then
- turtle.dropUp(turtle.getItemCount(slot)-count)
- end
- end
- function suckDown(slot,count)
- turtle.select(slot)
- turtle.suckDown()
- if(turtle.getItemCount(slot)-count>0)then
- turtle.dropDown(turtle.getItemCount(slot)-count)
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement