Create strip_miner.lua

Will help you strip mine what ever block is in slot 2, requires an ender chest placed in slot 1
when the block at slot 2 is found the turtle stops