Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- g = peripheral.wrap("right")
- m = peripheral.wrap("left")
- m.open(20)
- while true do
- g.clear()
- g.addBox(5,5,75,60,0xFFFFFF,0.5)
- local event, mSide, sCh, rCh, msg, d = os.pullEvent("modem_message")
- print("Name: "..msg.name.." x: "..msg.X.." y: "..msg.Y.." z: "..msg.Z)
- g.addText(10,10,"Koordinaten", 0xFF0066)
- g.addText(10,20,msg.name,0xFFFF00)
- g.addText(10,30,"x: "..msg.X,0x101010)
- g.addText(10,40,"y: "..msg.Y,0x101010)
- g.addText(10,50,"z: "..msg.Z,0x101010)
- g.sync()
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement