Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- rednet.open("left")
- turtle.select(1)
- if turtle.suckDown(1) then
- bottom_item = turtle.getItemDetail().name
- turtle.dropDown(1)
- end
- while true do
- sender, command, protocol = rednet.receive()
- if protocol == "commands" then
- if command.name == "search" then
- if not (bottom_item == nil) then
- if bottom_item.find(command.item_name) then
- rednet.send(sender, command.item_name, "search")
- end
- end
- end
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement