Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --Ticketautomat Version: 3.1.2
- --Menu! yea. now. here.
- --here we are loading some api things
- os.loadAPI("menu")
- --now we are stetting stuff up
- local ticket = peripheral.wrap("back")
- --functions here
- function pT(dest)
- ticket.setSelectedTicket(dest)
- ticket.printTicket()
- os.sleep(3)
- redstone.setOutput("bottom", true)
- os.sleep(0.5)
- redstone.setOutput("bottom", false)
- end
- local m = menu.new()
- --draw a menu
- m:addScreen("MainMenu",
- [[
- Flitzer Bahn Service
- Welcome to the Flitzer Bahn Service!
- Select u r ticket:
- Alpha @Alpha
- Bravo @Bravo
- Charlie @Charlie
- Delta @Delta
- ]])
- m:addFunc("Alpha", pT, 1)
- m:addFunc("Bravo", pT, 2)
- m:addFunc("Charlie", pT, 3)
- m:addFunc("Delta", pT, 4)
- --m:displayScreen("MainMenu")()
- while true do
- local f
- f = m:displayScreen("MainMenu")
- f()
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement