Updated:

Ocean: biome ID and commands

The biome ID for Ocean is minecraft:ocean. Use it to find the biome with /locate biome or to rewrite an area with /fillbiome.

Basic data

NameOcean
ID (Java Edition)minecraft:ocean
DimensionOverworld
Temperature0.5
PrecipitationRain

Commands you can copy

Find the nearest one (Java 1.19+)

/locate biome minecraft:ocean

Test whether you are in this biome (Java 1.19.3+)

/execute if biome ~ ~ ~ minecraft:ocean

Rewrite the area around you to this biome (Java 1.19.3+)

/fillbiome ~-8 ~-8 ~-8 ~8 ~8 ~8 minecraft:ocean

Notes

Questions

Why does it say it could not find the biome?

You are in another dimension, or none is close enough. Check the dimension, move and try again.

Related pages