Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function placetorch()
- selslot = 0
- for i=1,16 do
- selslot = selslot+1
- turtle.select(selslot)
- icount = turtle.getItemCount()
- if icount >= 1 == true then
- local item = turtle.getItemDetail()
- if item.name == "minecraft:torch" then
- turtle.turnLeft()
- turtle.turnLeft()
- turtle.place()
- turtle.turnLeft()
- turtle.turnLeft()
- break
- end
- end
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement