Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function SetPeripheral(name)
- for key,direction in pairs(peripheral.getNames()) do
- if(peripheral.getType(direction)==name) then
- print("Peripheral "..key..":"..peripheral.getType(direction))
- return peripheral.wrap(direction)
- end
- end
- end
- local mon=setPeripheral("monitor")
- print("Redirecting output to monitor")
- term.redirect(mon)
- local ppl={daniel="awesome",notdaniel="faggot"}
- for people,info in pairs(ppl) do
- print(people..": "..info)
- end
Advertisement
Add Comment
Please, Sign In to add comment