Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function BlockVorTurtle()
- success, data = turtle.inspect()
- if success==true then
- --print("Block name: ", data.name)
- --print("Block metadata: ", data.metadata)
- return data.name
- else
- return false
- end
- end
- while true do
- --[[ local block = BlockVorTurtle()
- if block ~= false then
- --if block ==
- print(block)
- if(block == "glowstone" or block == "minecraft:glowstone" or block == "glass" or block == "minecraft:glass") then --block == "minecraft:dirt"
- turtle.dig()
- end
- else
- os.sleep(0.5)
- end
- ]]--
- os.sleep(4)
- local block = BlockVorTurtle()
- if block ~= false then
- -- if block ==
- -- print(block)
- print("feuer brennt noch")
- else
- turtle.select(1)
- if turtle.getItemCount(1) == 0 then
- turtle.turnRight()
- turtle.suck()
- turtle.turnLeft()
- end
- print("place")
- turtle.place()
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment