Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --This program scans the slot for
- --item Name and Damage, then inputs it into itemcheck
- while true do
- x = turtle.getItemDetail()
- if x then
- print(x.name)
- print(x.damage)
- end
- print("Would you like to add this item to the")
- print("Sorting program? (Y/N)")
- choice = read()
- if choice == 'Y' or choice == 'y' then
- shell.run("dir /path")
- print("what is the item-path name?")
- bunnypath = read()
- file = fs.open("itemcheck",'a')
- file.write("if itemID then")
- file.write("if itemID.name == "..x.name.." and itemID.damage == "..x.damage.." then"
- file.write("shell.run("("/path/"..bunnypath)")")
- file.write("end")
- file.close()
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement