Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- mon = peripheral.wrap("left")
- os.loadAPI("bundleAPI")
- local x = true
- local y = true
- local z = true
- local a = true
- while true do
- event={os.pullEvent("monitor_touch")}
- local columnclicked = event[3]
- local rowclicked = event[4]
- local Reaktor = peripheral.wrap("BigReactors-Reactor_1")
- if columnclicked >= 1 and columnclicked <= 19 and rowclicked >= 1 and rowclicked <= 2 then
- -- Quarry AN/AUS
- bundleAPI.toggle("bottom", "white")
- elseif columnclicked >= 1 and columnclicked <= 19 and rowclicked >= 3 and rowclicked <= 4 then
- -- Reaktor AN/AUS
- if x == false then
- x = true
- Reaktor.setActive(true)
- elseif x == true then
- x = false
- Reaktor.setActive(false)
- end
- elseif columnclicked >= 1 and columnclicked <= 19 and rowclicked >= 5 and rowclicked <= 6 then
- -- Reaktorcomputer AN/AUS
- bundleAPI.toggle("bottom", "green")
- elseif columnclicked >= 1 and columnclicked <= 19 and rowclicked >= 7 and rowclicked <= 8 then
- bundleAPI.toggle("bottom", "blue")
- -- Farm AN/AUS
- elseif columnclicked >= 1 and columnclicked <= 19 and rowclicked >= 9 and rowclicked <= 10 then
- bundleAPI.toggle("bottom", "red")
- -- XP-Farm AN/AUS
- end
- sleep(1)
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement