Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --NOTE this is a computercraft code for 2 computers to control the MFR auto-spawners--
- --THIS omputer needs to be an ADVANCED one the SECOND one DOSEN'T--
- --NOTE in order for this to work you also need to dowlodad controler Beta (second computer)--
- --http://pastebin.com/ept1tUZQ--
- local ID2 = <ID> --Put in the ID of the other computer>
- local function GUI()
- term.clear()
- term.setCursorPos(1, 1)
- term.setTextColor(colors.lime)
- print(" Auto-spawner controler 2.1 by gril002")
- term.setTextColor(colors.green)
- print("###################################################")
- print("#### ####")
- print("#### esence enderman custom ####") --i know essence its spelled wrong but its for visual purposes--
- print("#### ####")
- print("#### ####")
- print("###################################################")
- term.setTextColor(colors.lime)
- print(" Type in the name of the spawner to turn it ON/OFF")
- term.setCursorPos(25, 5)
- if enderman1 == "ON" then
- term.setTextColor(colors.lime)
- term.write(enderman1)
- term.setTextColor(colors.white) else
- term.setTextColor(colors.red)
- term.write(enderman1)
- term.setTextColor(colors.white)
- end
- term.setCursorPos(13, 5)
- if essence2 == "ON" then
- term.setTextColor(colors.lime)
- term.write(essence2)
- term.setTextColor(colors.white) else
- term.setTextColor(colors.red)
- term.write(essence2)
- term.setTextColor(colors.white)
- end
- term.setCursorPos(37, 5)
- if custom3 == "ON" then
- term.setTextColor(colors.lime)
- term.write(custom3)
- term.setCursorPos(1, 9)
- term.setTextColor(colors.white) else
- term.setTextColor(colors.red)
- term.write(custom3)
- term.setTextColor(colors.white)
- term.setCursorPos(1, 9)
- end
- end
- local function update()
- rednet.open("back")
- while true do
- local input = read()
- if input == "enderman" then
- if enderman1 == "ON" then
- rednet.send(1418, "enderman")
- enderman1 = "OFF"
- GUI() else
- rednet.send(ID2, "enderman")
- enderman1 = "ON"
- GUI()
- end
- elseif input == "esence" then
- if essence2 == "ON" then
- rednet.send(ID2, "essence")
- essence2 = "OFF"
- GUI() else
- rednet.send(ID2, "essence")
- essence2 = "ON"
- GUI()
- end
- elseif input == "custom" then
- if custom3 == "ON" then
- rednet.send(ID2, "custom")
- custom3 = "OFF"
- GUI() else
- rednet.send(ID2, "custom")
- custom3 = "ON"
- GUI()
- end
- else
- print("invalid command")
- end
- end
- end
- enderman1 = "OFF"
- essence2 = "OFF"
- custom3 = "OFF"
- GUI()
- update()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement