Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --Make two variables for your two colors
- for i=1, 10 do --go 10 times
- if turtle.compareDown()== true then
- --If the block below matches the block in your inventory add one to that variable
- else
- -- if it doesn't match the block below add one to your second variable
- end
- -- Go forward
- end
- --replace Red and Green with the names of your variables
- print("Red = "..red.. " Green = ".. green)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement