Clockwork/Impactotron

Redstone sensor that detects blocks in front of it and, on a ship, blocks in its predicted path.