Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- Made by Rnen10
- -- If problems/questions feel free to contact me
- -- https://twitter.com/Rnen10
- -- rnen. (Evan#7181) on discord
- -- Monitor display for the Iron golem counter: https://pastebin.com/bzqzsY8e
- local arg = { ... }
- local m = peripheral.wrap("monitor_0")
- if m == nil then
- return
- end
- local function CalcScreenTextPos(Str)
- return (10.5 - (math.floor(string.len(Str) / 2)))
- end
- if arg[1] == nil then
- arg[1] = "ERROR"
- end
- m.clear()
- local s1 = "I've currently"
- local s2 = "murdered"
- local s3 = "innocent"
- local s4 = "iron golems :'("
- m.setTextScale(2)
- m.setCursorPos(CalcScreenTextPos(s1),1)
- m.write(s1)
- m.setCursorPos(CalcScreenTextPos(s2),2)
- m.write(s2)
- --m.setTextScale(3.5)
- m.setCursorPos(CalcScreenTextPos(arg[1]),4)
- m.write(arg[1])
- m.setTextScale(2)
- m.setCursorPos(CalcScreenTextPos(s3),5)
- m.write(s3)
- m.setCursorPos(CalcScreenTextPos(s4),6)
- m.write(s4)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement