Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- os.loadAPI("m")
- -------------------
- if fs.exists("m") then
- --fs.delete("m")
- --shell.run("pastebin get nXvVUSuw m")
- term.clear()
- term.setCursorPos(1, 1)
- else
- shell.run("pastebin get nxvvusuw m")
- term.clear()
- term.write("Downloading Text API.")
- sleep(1)
- term.write(".")
- sleep(1)
- term.write(".")
- sleep(1)
- term.write(" Success")
- term.setCursorPos(1, 2)
- os.loadAPI("m")
- shell.run("m")
- end
- shell.run("m")
- -------------
- mon = peripheral.wrap("left")
- monX, monY = mon.getSize()
- mon.setTextScale(1)
- -------------------
- mon2 = peripheral.wrap("monitor_5")
- function page1()
- m.clearScreen(colors.black, colors.black)
- m.drawBars(colors.blue, 1)
- m.drawBars(colors.blue, monY)
- m.writeText(monX/2-8, 1, colors.blue, colors.white, "Jobs Plugin Tutorial")
- m.writeText(2, 3, colors.black, colors.lime, "What is it? -")
- m.writeText(16, 3, colors.black, colors.white, "Jobs is a awesome plugin which")
- m.writeText(3, 4, colors.black, colors.white, "lets you earn money doing things you already")
- m.writeText(3, 5, colors.black, colors.white, "do all the in Minecraft, such as Mining,")
- m.writeText(3, 6, colors.black, colors.white, "Hunting, Farming, Fishing, Enchanting,")
- m.writeText(3, 7, colors.black, colors.white, "Brewing, and Building! You can have up to 3")
- m.writeText(3, 8, colors.black, colors.white, "jobs!")
- m.writeText(2, 9, colors.black, colors.lime, "Experience - ")
- m.writeText(15, 9, colors.black, colors.white, "As you work, you gain experience.")
- m.writeText(3, 10, colors.black, colors.white, "Once you level up, you start making more money!")
- m.writeText(2, 11, colors.black, colors.lime, "Limits - ")
- m.writeText(3, 12, colors.black, colors.white, "To balance the economy, there has to be a limit")
- m.writeText(3, 13, colors.black, colors.white, "on the amount of experience and money you can")
- m.writeText(3, 14, colors.black, colors.white, "earn in a certain amount of time. This limit")
- m.writeText(3, 15, colors.black, colors.white, "resets every hour, and the amount you can earn")
- m.writeText(3, 16, colors.black, colors.white, "increases at every level.")
- --------------------------
- monx, mony = mon2.getSize()
- mon2.setBackgroundColor(colors.black)
- mon2.clear()
- mon2.setTextColor(colors.white)
- mon2.setTextScale(1)
- mon2.setCursorPos(1, 1)
- mon2.setBackgroundColor(colors.gray)
- mon2.write(string.rep(" ", monx))
- mon2.setCursorPos(1, mony)
- mon2.write(string.rep(" ", monx))
- mon2.setBackgroundColor(colors.black)
- mon2.setTextColor(colors.red)
- mon2.setCursorPos(1, 3)
- mon2.write("------>")
- event, side, xpos, ypos = os.pullEvent("monitor_touch")
- if side == "monitor_5" then
- page2()
- else
- page1()
- end
- end
- function page2()
- m.clearScreen(colors.black, colors.black)
- m.drawBars(colors.blue, 1)
- m.drawBars(colors.blue, monY)
- m.writeText(monX/2-7, 1, colors.blue, colors.white, "Jobs Comannds")
- m.writeText(2, 3, colors.black, colors.lightGray, "Commands: ")
- m.writeText(3, 5, colors.black, colors.lime, "Browse Jobs: ")
- m.writeText(16, 5, colors.black, colors.white, "/jobs browse")
- m.writeText(3, 6, colors.black, colors.lime, "Join Jobs: ")
- m.writeText(14, 6, colors.black, colors.white, "/jobs join <jobname>")
- m.writeText(3, 7, colors.black, colors.lime, "Check Limit: ")
- m.writeText(16, 7, colors.black, colors.white, "/jobs limit")
- m.writeText(3, 8, colors.black, colors.lime, "Check Stats: ")
- m.writeText(16, 8, colors.black, colors.white, "/jobs stats or /jobs stats <name>")
- m.writeText(3, 9, colors.black, colors.lime, "Leave a Job:")
- m.writeText(15, 9, colors.black, colors.white, " /jobs leave <jobs>")
- monx, mony = mon2.getSize()
- mon2.setBackgroundColor(colors.black)
- mon2.clear()
- mon2.setTextColor(colors.white)
- mon2.setTextScale(1)
- mon2.setCursorPos(1, 1)
- mon2.setBackgroundColor(colors.gray)
- mon2.write(string.rep(" ", monx))
- mon2.setCursorPos(1, mony)
- mon2.write(string.rep(" ", monx))
- mon2.setBackgroundColor(colors.black)
- mon2.setTextColor(colors.red)
- mon2.setCursorPos(1, 3)
- mon2.write("------>")
- event, side, xpos, ypos = os.pullEvent("monitor_touch")
- if side == "monitor_5" then
- page1()
- else
- page2()
- end
- end
- page1()
Add Comment
Please, Sign In to add comment