Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ----------------------------------------------------------
- -- Automatic Terra Steel Example --
- -- --
- -- Minecraft FTB Infinity Evolved Episode 75 --
- -- https://www.youtube.com/watch?v=E68iCWUE9FE --
- -- --
- -- YouTube Channel http://youtube.com/hypnotizd --
- ----------------------------------------------------------
- local function checkManaPoolLevel()
- local right = rs.getAnalogInput("right")
- local result = false
- if (right == 15) then
- result = true
- end
- return result
- end
- local function makeTS(count)
- if (type(count) == "number") then
- while (count > 0) do
- --Take 1 of each item and pepare to drop
- rs.setBundledOutput("back", colors.blue)
- os.sleep(1)
- --Drop prepared items
- rs.setBundledOutput("back", colors.purple)
- os.sleep(5)
- count = count - 1
- end
- end
- end
- local function takeItemsFromBarrel()
- rs.setBundledOutput("back", colors.red)
- end
- local function sendItemsToTopChest()
- rs.setBundledOutput("back", colors.green)
- end
- local function init()
- rs.setBundledOutput("back", 0)
- end
- init()
- while true do
- if (checkManaPoolLevel()) then
- takeItemsFromBarrel()
- os.sleep(10)
- sendItemsToTopChest()
- os.sleep(10)
- makeTS(32)
- end
- os.sleep(30)
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement