Florian86

Grains Of Infinity

Mar 10th, 2022
1,030
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 1.00 KB | None | 0 0
  1. function BlockVorTurtle()
  2.     success, data = turtle.inspect()
  3.     if success==true then
  4.       --print("Block name: ", data.name)
  5.       --print("Block metadata: ", data.metadata)
  6.       return data.name
  7.     else
  8.       return false
  9.     end
  10. end
  11.  
  12.  
  13. while true do
  14.     --[[ local block = BlockVorTurtle()
  15.     if block ~= false then
  16.         --if block ==
  17.         print(block)
  18.         if(block == "glowstone" or block == "minecraft:glowstone" or block == "glass" or block == "minecraft:glass") then --block == "minecraft:dirt"
  19.             turtle.dig()
  20.         end
  21.     else
  22.         os.sleep(0.5)
  23.     end
  24.     ]]--
  25.     os.sleep(4)
  26.     local block = BlockVorTurtle()
  27.     if block ~= false then
  28.         -- if block ==
  29.         -- print(block)
  30.         print("feuer brennt noch")
  31.     else
  32.         turtle.select(1)
  33.         if turtle.getItemCount(1) == 0 then
  34.             turtle.turnRight()
  35.             turtle.suck()
  36.             turtle.turnLeft()
  37.         end
  38.        
  39.         print("place")
  40.         turtle.place()
  41.     end
  42. end
Advertisement
Add Comment
Please, Sign In to add comment