Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- glass = peripheral.wrap("right")
- glass.clear()
- function welcome()
- whitebox = glass.addBox(20, 20, 200, 60, 0xFFFFFF, 0.7)
- header = glass.addText(45, 23, "Welcome to Inkubu's extractor!", 0x8A1220)
- line1 = glass.addText(22, 33, "Drop your ore into the Hungry Chest", 0x0B3D07)
- line2 = glass.addText(22, 43, "and type $$start in chat", 0x0B3D07)
- line3 = glass.addText(22, 53, "to start the process", 0x0B3D07)
- line4 = glass.addText(22, 63, "", 0x0B3D07)
- while true do
- local e, msg = os.pullEvent("chat_command")
- if msg == "start" then
- print("starting extraction")
- --text = glass.addText(45, 23, "Welcome to Inkubu's extractor!", 0x8A1220)
- --whitebox = glass.addBox(20, 20, 200, 60, 0xFFFFFF, 0.7)
- header.setText("Extracting ore...")
- line1.setText("")
- line2.setTExt("")
- line3.setText("")
- line4.setTExt("")
- os.sleep(5)
- header.setText("Extracting Complete")
- line1.setText("your flakes will be dropped")
- line2.setText("in front of the computer")
- line3.setText("")
- line4.setTExt("")
- elseif msg == "no" then
- print("no")
- glass.clear()
- else
- print("not a correct command")
- end
- end
- end
- welcome()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement