Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- rednet.open("top")
- term.setCursorPos(1,1)
- print("What item would you like?")
- item = read()
- shell.run("clear")
- term.setCursorPos(1,1)
- print("You asked for " ..item.. ".")
- print("How many would you like?")
- amount = read()
- shell.run("clear")
- term.setCursorPos(1,1)
- quantity = tostring(amount)
- if item == "cobblestone" then
- rednet.send(36,quantity)
- elseif item == "dirt" then
- rednet.send(35,quantity)
- end
- print("Fetching " ..amount.. " " ..item)
- print("Your items are in the chest.")
- sleep(2)
- shell.run("reboot")
Advertisement
Add Comment
Please, Sign In to add comment