Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function centerText(text, y, color)
- -- mon.clear()
- mX = mon.getSize()
- x = math.floor(mX/2) - math.floor(string.len(text)/2)
- mon.setCursorPos(x, y)
- mon.setTextColor(color)
- mon.write(text)
- end
- mon = peripheral.wrap("right")
- mon.setTextScale(0.5)
- mon.setBackgroundColor(colors.blue)
- -- mon.clear()
- centerText("Warning", 1,16384)
- centerText("--------------", 2,1)
- centerText("Be aware of Golems and Turrets", 3,1)
- centerText("They will kill any player who enters the room", 4,1)
- centerText("Anything you lose wont be given back.", 5,1)
- centerText("radioactive zone!", 6,1)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement