Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- bacon = true
- sign = peripheral.wrap("top")
- signtwo = peripheral.wrap("right")
- 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
- signtwo.setLine(1, name)
- function signdist()
- sleep(0.1)
- p = peripheral.wrap("left")
- local data = p.getPlayerData(name)
- local helmet = data["armor"]["helmet"]["name"]
- local chestplate = data["armor"]["chestplate"]["name"]
- local leggings = data["armor"]["leggings"]["name"]
- local boots = data["armor"]["boots"]["name"]
- sign.setLine(1, helmet)
- sign.setLine(2, chestplate)
- sign.setLine(3, leggings)
- sign.setLine(4, boots)
- end
- while bacon == true do
- parallel.waitForAny(function() signdist() end, function() return endit() end)
- end
- shell.run("armor")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement