Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local item
- print("nach welchem item soll gesucht werden?)
- item = read()
- function(item)
- Functionname=function(item)
- local cslot = 1
- local citem
- while citem ~= item do
- turtle.select(cslot)
- sleep (0.1)
- citem = turtle.getItemDetail(cslot)
- print("Item : ", citem.name, " found in slot : ", cslot)
- cslot = cslot + 1
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement