Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function iron ()
- turtle.down()
- turtle.down()
- turtle.down()
- turtle.drop()
- turtle.up()
- turtle.up()
- turtle.up()
- end
- function gold ()
- turtle.down()
- turtle.down()
- turtle.down()
- turtle.down()
- turtle.drop()
- turtle.up()
- turtle.up()
- turtle.up()
- turtle.up()
- end
- while true do
- data = turtle.getItemDetail()
- print(data.name)
- sleep(1)
- if (data.name=="minecraft:gold_ingot") then
- gold()
- end
- if (data.name=="minecraft:iron_ingot") then
- iron()
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement