Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local monitor = peripheral.wrap("right")
- local width, height = monitor.getSize()
- print(width, " ", height)
- function draw(x, y)
- monitor.setCursorPos(x, y)
- monitor.write("#")
- end
- while redstone.getInput("left")
- local event, side, y = os.pullEvent("monitor_touch")
- draw(x, y)
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement