Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- term.clear()
- term.setCursorPos(1,1)
- local rs = turtle.getItemCount(1)
- if rs ~=0 then
- local t = rs*6
- print("Converting "..rs.." Redstone into Obsidam!")
- print("Process will take approximately "..t.." seconds.")
- while true do
- turtle.select(1) -- Restone dust goes in slot 1
- turtle.place() -- Places dust
- sleep(.5)
- redstone.setOutput("top", true) -- pulses dispenser with lava bucket
- sleep(.5)
- redstone.setOutput("top", false)
- sleep(2.5) -- Waits for lava to fall and convert to Obsidian
- redstone.setOutput("top", true)
- sleep(.5)
- redstone.setOutput("top", false)
- turtle.select(2)
- turtle.dig() -- grabs obsidian
- turtle.dropDown() -- places obsidian in inventory below
- rs = rs - 1
- if rs ==0 then
- print("Finished!")
- print("Find your Obsidian below.")
- break
- end
- end
- else
- print("Please place Redstone in slot 1,")
- print("and re-run program.")
- end
Add Comment
Please, Sign In to add comment