First, you need a ladder to get onto the first ledge.
Go back to the ant mound and retrieve the ladder.
Get the ladder after climbing onto the first ledge and use it again on the side of the water tank.
Now's the time for some cowboy action.