daily pastebin goal
8%
SHARE
TWEET

Untitled

a guest Jan 22nd, 2019 51 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. term.clear()
  2. term.setCursorPos(1,1)
  3. local rs = turtle.getItemCount(1)
  4. if rs ~=0 then
  5.  local t = rs*6
  6.  print("Converting "..rs.." Redstone into Obsidam!")
  7.  print("Process will take approximately "..t.." seconds.")
  8.  while true do  
  9.    turtle.select(1) -- Restone dust goes in slot 1
  10.    turtle.place() -- Places dust
  11.    sleep(.5)
  12.    redstone.setOutput("top", true) -- pulses dispenser with lava bucket
  13.    sleep(.5)
  14.    redstone.setOutput("top", false)
  15.    sleep(2.5) -- Waits for lava to fall and convert to Obsidian
  16.    redstone.setOutput("top", true)
  17.    sleep(.5)
  18.    redstone.setOutput("top", false)
  19.    turtle.select(2)
  20.    turtle.dig() -- grabs obsidian
  21.    turtle.dropDown() -- places obsidian in inventory below
  22.   rs = rs - 1
  23.    if rs ==0 then
  24.     print("Finished!")
  25.     print("Find your Obsidian below.")
  26.     break
  27.    end
  28.  end
  29. else
  30.    print("Please place Redstone in slot 1,")
  31.    print("and re-run program.")
  32. end
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top