Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- pastebin get PRXT4dBc placeScaff
- local selected = 1
- local itemCount = turtle.getItemCount(selected)
- turtle.select(selected)
- os.startTimer(1)
- while true do
- redstone.setOutput("left", false)
- -- Check item count
- if itemCount == 0 then
- -- Out of items; Switch cells
- selected = selected + 1
- turtle.select(selected)
- end
- if turtle.detectDown() == false then
- -- Place scaffold and signal activator
- turtle.placeDown()
- redstone.setOutput("left", true)
- end
- os.pullEvent("timer")
- os.startTimer(1)
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement