Advertisement
BillBodkin

gameTime

Jan 4th, 2017
262
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.41 KB | None | 0 0
  1. --config
  2. url = "http://192.168.1.2:92/cc/variables/"
  3. --p=peripheral.wrap("right") -- keeps turtle loaded with the chunk loader mod
  4.  
  5. while true do
  6. local time = os.time()
  7. local formattedTime = textutils.formatTime(time, false)
  8. while type(http.get(url .. "altervariable.php?cmd=set&val=" .. formattedTime .. "&var=gameTime")) ~= "table" do
  9. sleep(1)
  10. end
  11. print("The time is " .. formattedTime)
  12. sleep(1)
  13. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement