Aarondmorgan

HQ Comp v1

Feb 13th, 2013
70
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.53 KB | None | 0 0
  1. rednet.open("top")
  2. term.setCursorPos(1,1)
  3. print("What item would you like?")
  4. item = read()
  5. shell.run("clear")
  6. term.setCursorPos(1,1)
  7. print("You asked for " ..item.. ".")
  8. print("How many would you like?")
  9. amount = read()
  10. shell.run("clear")
  11. term.setCursorPos(1,1)
  12. quantity = tostring(amount)
  13. if item == "cobblestone" then
  14. rednet.send(36,quantity)
  15. elseif item == "dirt" then
  16. rednet.send(35,quantity)
  17. end
  18. print("Fetching " ..amount.. " " ..item)
  19. print("Your items are in the chest.")
  20. sleep(2)
  21. shell.run("reboot")
Advertisement
Add Comment
Please, Sign In to add comment