Can anyone help me,
I am trying to do the same thing but am having a bit of a hard time.
I have tried
local monitorSide = "top" -- the side the monitor is on
if peripheral.isPresent(monitorSide) and peripheral.getType(monitorSide) == "monitor" then
term.redirect(peripheral.wrap(monitorSide))
else
print("No monitor found")
return
end
local w,h = term.getSize()
term.clear()
term.setCursorPos(1,1)
local function printCenter(line)
local width = string.len(line)
if width < w then
local x,y = term.getCursorPos()
term.setCursorPos(w/2 - width/2,y)
end
print(line)
end
printCenter 'RULES'
print [[
1) No griefing*, if you are caught griefing you will be banned.
2) No client hacks or mods.
3) Do not argue with, lie to or otherwise disrespect staff members.
4) No offensive behaviour, swearing, talking in all caps, skins or usernames.
5) Do not ask staff members to give you anything.
6) Do not engage in exploitative behaviour.
7) Do not engage in general misbehaviour.
8) Do not hide behind the rules.
9) Do not advertise other servers, or advertise our server to others without consent.
10) Leaking machines will be destroyed.
]]
printCenter 'Full list of rules with explanations and '
printCenter 'definitions are viewable at'
printCenter 'www.techgalaxyminecraft.com'
term.restore()
shell.run("monitor","top","rules")
that displayed the rules until the chunk was unloaded
I have also tried
local w,h = term.getSize()
term.clear()
term.setCursorPos(1,1)
local function printCenter(line)
local width = string.len(line)
if width < w then
local x,y = term.getCursorPos()
term.setCursorPos(w/2 - width/2,y)
end
print(line)
end
printCenter 'RULES'
print [[
1) No griefing*, if you are caught griefing you will be banned.
2) No client hacks or mods.
3) Do not argue with, lie to or otherwise disrespect staff members.
4) No offensive behaviour, swearing, talking in all caps, skins or usernames.
5) Do not ask staff members to give you anything.
6) Do not engage in exploitative behaviour.
7) Do not engage in general misbehaviour.
8) Do not hide behind the rules.
9) Do not advertise other servers, or advertise our server to others without consent.
10) Leaking machines will be destroyed.
]]
printCenter 'Full list of rules with explanations and '
printCenter 'definitions are viewable at'
printCenter 'www.techgalaxyminecraft.com'
with the same startup code but I just cant get it to load when the chunk is reloaded/entered. if you could help that would be fantastic
Sorry for the necromancer act. I thought it better to post on a topic already than to start a whole new one for the same thing