Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --local interface1 = peripheral.wrap("right")
- --local interface2 = peripheral.wrap("bottom")
- local autoClicker = peripheral.wrap("left")
- local changeTime = 0.5 - 0.05 -- Change to be able to be set later
- local dyes = { -- Maybe change this to a table with k, v of readable name, internal name (when i make the colour changing customizable)
- { right = 10},
- { right = 11},
- { right = 12},
- { right = 13},
- { right = 14},
- { right = 15},
- { right = 16},
- { right = 17},
- { right = 18},
- { bottom = 10},
- { bottom = 11},
- { bottom = 12},
- { bottom = 13},
- { bottom = 14},
- { bottom = 15},
- { bottom = 16}
- }
- local i = 1
- local last = ""
- while true do
- i = (i % #dyes) + 1
- local side, slot = next(dyes[i])
- if dyes[i] ~= last then
- if autoClicker.pullItems(side, slot, 1) > 0 then
- last = dyes[i]
- end
- end
- term.setCursorPos(1, 2)
- term.clearLine()
- term.write(side .. " : " .. slot)
- i = i + 1
- sleep(changeTime) -- Might need to do this differently to properly allow for inputs
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement