Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- altar = peripheral.wrap("front")
- whle true do
- os.sleep(1)
- if(turtle.suckUp(1)) then
- oldItem = getItemDetail(1).name
- print("Old item: " .. oldItem)
- turtle.drop(1)
- while true do
- os.sleep(0.5)
- currentItem = altar.getAllStacks()[1]
- print("Current Item: " .. currentItem)
- if(oldItem ~= currentItem) then
- print("Finisched!")
- turle.suck(1)
- trurtle.turnLeft()
- turtle.drop()
- turtle.turnRight()
- break
- end
- end
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement