Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --Blackjack Mirror version 0.1--
- os.pullEvent = os.pullEventRaw
- --Made by Mavric--
- --Code on https://pastebin.com/u/MavricMC--
- local modem = peripheral.wrap("back")
- local mainC = 5
- local playerC = 10
- modem.open(playerC)
- while true do
- local eventData = {os.pullEvent()}
- if eventData[1] == "modem_message" then
- if eventData[5][1] == "clear" then
- term.clear()
- elseif eventData[5][1] == "line" then
- term.clearLine(eventData[5][2])
- elseif eventData[5][1] == "background" then
- term.setBackgroundColor(eventData[5][2])
- elseif eventData[5][1] == "cursor" then
- term.setCursorPos(eventData[5][2], eventData[5][3])
- elseif eventData[5][1] == "text" then
- term.setTextColor(eventData[5][2])
- elseif eventData[5][1] == "write" then
- term.write(eventData[5][2])
- elseif eventData[5][1] == "pic" then
- if eventData[5][2] == "logo" then
- local pic = paintutils.loadImage("logo.nfp")
- paintutils.drawImage(pic, eventData[5][3], eventData[5][4])
- elseif eventData[5][2] == "card" then
- local pic = paintutils.loadImage("card.nfp")
- paintutils.drawImage(pic, eventData[5][3], eventData[5][4])
- elseif eventData[5][2] == "back" then
- local pic = paintutils.loadImage("cardBack.nfp")
- paintutils.drawImage(pic, eventData[5][3], eventData[5][4])
- end
- end
- elseif eventData[1] == "terminate" then
- if (redstone.getInput("bottom")) then
- error("You found the lever didnt you")
- else
- print("Did you think Im that stupid?")
- end
- else
- modem.transmit(mainC, playerC, eventData)
- end
- end
Add Comment
Please, Sign In to add comment