Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function buildSend()
- modem.transmit(888, 887, input)
- print("Building...")
- side, channel, rreturn, junk, message = os.pullEvent("modem_message")
- if message == "done" then
- print("Finished building")
- print("Type "continue" in order to begin cleanup")
- input2 = read()
- if input2 == "continue" then
- cleanup(input)
- end
- end
- end
- function cleanup(buildType)
- modem.transmit(888, 887, buildType)
- print("Cleaning up...")
- side, channel, rreturn, junk, message = os.pullEvent("modem_message")
- if message == "done" then
- print("Finished cleaning up")
- end
- end
- modem = peripheral.wrap("top")
- modem.open(887)
- buildList = {"house", "platform", "pillar", "work"}
- while true do
- print("Please select build.")
- for i=1, #buildList do
- print(buildList[i])
- end
- input = read()
- if input == "work" then
- buildSend()
- else
- print("Please enter something from the build list.")
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement