Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- rednet.open("back")
- id = 28
- function GUI()
- term.clear()
- paintutils.drawFilledBox(1,2,6,4,colors.cyan)
- paintutils.drawFilledBox(1,7,6,9,colors.cyan)
- paintutils.drawFilledBox(10,2,19,4,colors.cyan)
- paintutils.drawFilledBox(7,5,13,7,colors.cyan)
- paintutils.drawFilledBox(16,5,22,7,colors.cyan)
- paintutils.drawFilledBox(10,8,19,10,colors.cyan)
- paintutils.drawFilledBox(1,12,6,13,colors.brown)
- paintutils.drawFilledBox(1,15,6,16,colors.brown)
- paintutils.drawFilledBox(1,18,6,19,colors.brown)
- paintutils.drawFilledBox(8,12,14,13,colors.green)
- paintutils.drawFilledBox(8,15,14,16,colors.green)
- paintutils.drawFilledBox(8,18,14,19,colors.green)
- paintutils.drawFilledBox(24,2,26,2,colors.blue)
- paintutils.drawFilledBox(25,3,26,18,colors.blue)
- paintutils.drawFilledBox(16,12,22,13,colors.red)
- paintutils.drawFilledBox(16,15,22,16,colors.red)
- paintutils.drawFilledBox(16,18,22,19,colors.red)
- term.setCursorPos(3,3)
- term.setBackgroundColor(colors.cyan)
- print("UP")
- term.setCursorPos(2,8)
- print("DOWN")
- term.setCursorPos(12,3)
- print("FORWARD")
- term.setCursorPos(9,6)
- print("LEFT")
- term.setCursorPos(17,6)
- print("RIGHT")
- term.setCursorPos(13,9)
- print("BACK")
- term.setBackgroundColor(colors.brown)
- term.setCursorPos(2,12)
- print("DIG")
- term.setCursorPos(3,13)
- print("UP")
- term.setCursorPos(2,16)
- print("DIG")
- term.setCursorPos(2,18)
- print("DIG")
- term.setCursorPos(2,19)
- print("DOWN")
- term.setBackgroundColor(colors.green)
- term.setCursorPos(9,12)
- print("PLACE")
- term.setCursorPos(11,13)
- print("UP")
- term.setCursorPos(9,16)
- print("PLACE")
- term.setCursorPos(9,18)
- print("PLACE")
- term.setCursorPos(10,19)
- print("DOWN")
- term.setBackgroundColor(colors.blue)
- term.setCursorPos(24,2)
- print("INV")
- term.setCursorPos(26,3)
- print("1")
- term.setCursorPos(26,4)
- print("2")
- term.setCursorPos(26,5)
- print("3")
- term.setCursorPos(26,6)
- print("4")
- term.setCursorPos(26,7)
- print("5")
- term.setCursorPos(26,8)
- print("6")
- term.setCursorPos(26,9)
- print("7")
- term.setCursorPos(26,10)
- print("8")
- term.setCursorPos(26,11)
- print("9")
- term.setCursorPos(25,12)
- print("10")
- term.setCursorPos(25,13)
- print("11")
- term.setCursorPos(25,14)
- print("12")
- term.setCursorPos(25,15)
- print("13")
- term.setCursorPos(25,16)
- print("14")
- term.setCursorPos(25,17)
- print("15")
- term.setCursorPos(25,18)
- print("16")
- term.setCursorPos(23,19)
- print("FUEL")
- term.setBackgroundColor(colors.red)
- term.setCursorPos(18,12)
- print("^^^")
- term.setCursorPos(18,13)
- print("|||")
- term.setCursorPos(18,15)
- print("RED")
- term.setCursorPos(17,16)
- print("STONE")
- term.setCursorPos(18,18)
- print("|||")
- term.setCursorPos(18,19)
- print("vvv")
- term.setBackgroundColor(colors.black)
- term.setCursorPos(2,17)
- local evnt = { os.pullEvent("mouse_click") }
- local x = evnt[3]
- local y = evnt[4]
- if y >= 1 and y <= 6 and x >= 2 and x <= 4 then
- rednet.send(id,"up")
- print("up")
- sleep(.5)
- end
- if y >= 7 and y <= 9 and x >= 1 and x <= 6 then
- rednet.send(id,"down")
- print("down")
- sleep(.5)
- end
- if y >= 2 and y <= 4 and x >= 10 and x <= 19 then
- rednet.send(id,"forward")
- print("forward")
- sleep(.5)
- end
- if y >= 5 and y <= 7 and x >= 7 and x <= 13 then
- rednet.send(id,"left")
- print("left")
- sleep(.5)
- end
- if y >= 5 and y <= 7 and x >= 16 and x <= 22 then
- rednet.send(id,"right")
- print("right")
- sleep(.5)
- end
- if y >= 8 and y <= 10 and x >= 10 and x <= 19 then
- rednet.send(id,"back")
- print("back")
- sleep(.5)
- end
- if y >= 12 and y <= 13 and x >= 1 and x <= 6 then
- rednet.send(id,"digup")
- print("digUp")
- sleep(.5)
- end
- if y >= 15 and y <= 16 and x >= 1 and x <= 6 then
- rednet.send(id,"dig")
- print("dig")
- sleep(.5)
- end
- if y >= 18 and y <= 19 and x >= 1 and x <= 6 then
- rednet.send(id,"digdown")
- print("DigDown")
- sleep(.5)
- end
- if y >= 12 and y <= 13 and x >= 8 and x <= 14 then
- rednet.send(id,"placeup")
- print("placeUp")
- sleep(.5)
- end
- if y >= 15 and y <= 16 and x >= 8 and x <= 14 then
- rednet.send(id,"place")
- print("place")
- sleep(.5)
- end
- if y >= 18 and y <= 19 and x >= 8 and x <= 14 then
- rednet.send(id,"placedown")
- print("placeDown")
- sleep(.5)
- end
- if y >= 3 and y <= 3 and x >= 25 and x <= 26 then
- rednet.send(id,"inv1")
- print("inv1")
- sleep(.5)
- end
- if y >= 4 and y <= 4 and x >= 25 and x <= 26 then
- rednet.send(id,"inv2")
- print("inv2")
- sleep(.5)
- end
- if y >= 5 and y <= 5 and x >= 25 and x <= 26 then
- rednet.send(id,"inv3")
- print("inv3")
- sleep(.5)
- end
- if y >= 6 and y <= 6 and x >= 25 and x <= 26 then
- rednet.send(id,"inv4")
- print("inv4")
- sleep(.5)
- end
- if y >= 7 and y <= 7 and x >= 25 and x <= 26 then
- rednet.send(id,"inv5")
- print("inv5")
- sleep(.5)
- end
- if y >= 8 and y <= 8 and x >= 25 and x <= 26 then
- rednet.send(id,"inv6")
- print("inv6")
- sleep(.5)
- end
- if y >= 9 and y <= 9 and x >= 25 and x <= 26 then
- rednet.send(id,"inv7")
- print("inv7")
- sleep(.5)
- end
- if y >= 10 and y <= 10 and x >= 25 and x <= 26 then
- rednet.send(id,"inv8")
- print("inv8")
- sleep(.5)
- end
- if y >= 11 and y <= 11 and x >= 25 and x <= 26 then
- rednet.send(id,"inv9")
- print("inv9")
- sleep(.5)
- end
- if y >= 12 and y <= 12 and x >= 25 and x <= 26 then
- rednet.send(id,"inv10")
- print("inv10")
- sleep(.5)
- end
- if y >= 13 and y <= 13 and x >= 25 and x <= 26 then
- rednet.send(id,"inv11")
- print("inv11")
- sleep(.5)
- end
- if y >= 14 and y <= 14 and x >= 15 and x <= 26 then
- rednet.send(id,"inv12")
- print("inv12")
- sleep(.5)
- end
- if y >= 15 and y <= 15 and x >= 25 and x <= 26 then
- rednet.send(id,"inv13")
- print("inv13")
- sleep(.5)
- end
- if y >= 16 and y <= 16 and x >= 25 and x <= 26 then
- rednet.send(id,"inv14")
- print("inv14")
- sleep(.5)
- end
- if y >= 17 and y <= 17 and x >= 25 and x <= 26 then
- rednet.send(id,"inv15")
- print("inv15")
- sleep(.5)
- end
- if y >= 19 and y <= 19 and x >= 23 and x <= 26 then
- rednet.send(id,"refuel")
- sleep(.5)
- end
- if y >= 18 and y <= 18 and x >= 25 and x <= 26 then
- rednet.send(id,"inv16")
- print("inv16")
- sleep(.5)
- end
- if y >= 12 and y <= 13 and x >= 16 and x <= 22 then
- rednet.send(id,"rsup")
- print("RedstoneUp")
- sleep(.5)
- end
- if y >= 15 and y <= 16 and x >= 16 and x <= 22 then
- rednet.send(id,"rsfront")
- print("RedstoneFront")
- sleep(.5)
- end
- if y >= 18 and y <= 19 and x >= 16 and x <= 22 then
- rednet.send(id,"rsdown")
- print("RedstoneDown")
- sleep(.5)
- end
- end
- while true do
- GUI()
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement