As accelerated storm flooding, erosion and rising sea levels pose real threats to coastal communities around the commonwealth, state grants were announced this week that will aid 16 towns now working against the clock to plan for the impacts of climate change — including three in Dukes County.

Coastal resiliency projects in Edgartown, Tisbury and Gosnold were all awarded grants as part of a $4 million investment by the Baker administration through its Coastal Zone Management agency.

In Edgartown, $240,674 will go toward a bathhouse reolocation and dune restoration project at South Beach. The town and Trustees of Reservations, who manage Norton Point beach, have been working for some time on a project to relocate the beach bathhouse 50 feet landward, remove an asphalt surface and restore the primary coastal dune on both South Beach and Norton Point, using dredge material and native plants. An over-sand vehicle trail running through a dune overwash area will be relocated as well.

In Tisbury $169,272 will go toward what is being termed permit level plan preparation along the Vineyard Haven harbor shoreline. Flood protection for downtown Vineyard Haven, beach and dune nourishment, roadway elevation and berms are all under discussion in the Island’s main port town.

In the town of Gosnold (the Elizabeth islands), $212,000 will go toward designing, permitting and installing an avove-ground fuel storage facility on tiny Cuttyhunk island at the western end of the archipelago. Underground tanks were recently removed on the tiny island at the western tip of the Elizabeths archipelago.

Other towns receiving grant money included Ipswich, Hull, Marblehead, Marion, Mattapoisett, Chatham and Falmouth. A grant was also awarded to the Woods Hole Oceanographic Institution.

Liz Durkee, climate change planner for the Martha’s Vineyard Commission, said the projects are all badly needed, as broader planning efforts get under way to create an Islandwide climate action plan.

“The CZM grants are critical for the towns to be able to address projects like the ones in Edgartown, Tisbury and Gosnold and it’s great that they were funded because the competition is severe,” Ms. Durkee said, adding: “There were several other projects that didn’t get funded on this round, and it’s unfortunate that the towns compete with each other on this. But Tisbury has gotten more than one grant . . . and persistence is a big part of it.”

The Vineyard regional climate action plan now under way is also supported by a state grant, and is expected to take a year to complete, Ms. Durkee said.