Advertisement
Alakazard12

Lava Place

Aug 2nd, 2016
127
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.45 KB | None | 0 0
  1. local function place()
  2.     local suc, data = turtle.inspect()
  3.     if suc then
  4.         if data.name == "minecraft:flowing_lava" then
  5.             return
  6.         end
  7.     end
  8.  
  9.     for i = 1, 16 do
  10.         local det = turtle.getItemDetail(i)
  11.         if det and det.name == "minecraft:lava_bucket" then
  12.             turtle.select(i)
  13.             turtle.place()
  14.             return
  15.         end
  16.     end
  17. end
  18.  
  19. while true do
  20.     place()
  21.     sleep(360)
  22. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement