Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local names = peripheral.getNames()
- local mon -- Monitor (50 X 19) 5 X 3
- local ticket -- Ticketmachiene
- local label -- Zielbahnhof
- local i
- local j
- local p
- ---------------------------------------------
- -- peripheral wrap
- ---------------------------------------------
- for i,j in pairs(names) do
- p = peripheral.getType(j)
- if p == "monitor" then
- mon = peripheral.wrap(j)
- end
- if p == "openperipheral_ticketmachine" then
- ticket = peripheral.wrap(j)
- end
- end
- ----------------------------------------------
- ----------------------------------------------
- local function drucken()
- ticket.createTicket(label)
- sleep(1)
- redstone.setOutput("top", true)
- sleep(1)
- redstone.setOutput("top", false)
- end
- ----------------------------------------------
- local function startbild()
- mon.clear()
- mon.setCursorPos(1,6)
- mon.write(" _____ _ _ _")
- mon.setCursorPos(1,7)
- mon.write(" | ___|_ _| |__ _ __| | ____ _ _ __| |_ ___ _ __")
- mon.setCursorPos(1,8)
- mon.write(" | |_ / _` | '_ \| '__| |/ / _` | '__| __/ _ \ '_ \")
- mon.setCursorPos(1,9)
- mon.write(" | _| (_| | | | | | | < (_| | | | || __/ | | |")
- mon.setCursorPos(1,10)
- mon.write(" |_| \__,_|_| |_|_| |_|\_\__,_|_| \__\___|_| |_|")
- mon.setCursorPos(1,13)
- mon.write(" _ _ _")
- mon.setCursorPos(1,14)
- mon.write(" / \ _ _| |_ ___ _ __ ___ __ _| |_")
- mon.setCursorPos(1,15)
- mon.write(" / _ \| | | | __/ _ \| '_ ` _ \ / _` | __|")
- mon.setCursorPos(1,16)
- mon.write(" / ___ \ |_| | || (_) | | | | | | (_| | |_")
- mon.setCursorPos(1,17)
- mon.write(" /_/ \_\__,_|\__\___/|_| |_| |_|\__,_|\__|")
- mon.setCursorPos(26,23)
- mon.write("klick to continue")
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement