Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --@Author: Zach Combs aka TehNoiseBomb
- --@Version: 1.1
- local inputs = {...}
- local seedData = ... --The data about the seed in the turtle's inventory
- --Turn left
- --Move forward three times
- turtle.turnLeft()
- for i = 0, 2 do
- turtle.forward()
- end
- --For each slot in the turtle's inventory:
- -- Check if the current slot is the seed slot, if it is not:
- -- Select the slot
- -- Drop the entire slot on/into the block below the turtle
- for i = 1, 16 do
- if i == seedData.slot then
- else
- turtle.select(i)
- turtle.dropDown()
- end
- end
- --If the seeds are not in the first inventory slot:
- -- Select the seeds
- -- Transfer the seeds to the first slot
- if seedData.slot > 1 then
- turtle.select(seedData.slot)
- turtle.transferTo(1)
- seedData.slot = 1
- end
- --Return the seedData table (to update the main program if the seeds we transferred to the first slot)
- return seedData
Add Comment
Please, Sign In to add comment