Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- bacon = true
- sign = peripheral.wrap("top")
- term.clear()
- term.setCursorPos(1,1)
- term.write("Enter Player Name: ")
- name = read()
- term.clear()
- term.setCursorPos(1,1)
- term.write("Press any key to exit")
- function endit()
- os.pullEvent("key")
- bacon = false
- end
- function signdist()
- sleep(0.1)
- p = peripheral.wrap("left")
- local data = p.getPlayerData(name)
- local yaw = data["yaw"]
- sign.setLine(1, name .. "'s")
- sign.setLine(2, "yaw is")
- sign.setLine(3, math.ceil(yaw))
- end
- while bacon == true do
- parallel.waitForAny(function() signdist() end, function() return endit() end)
- end
- shell.run("yaw")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement