The Flood was mentioned above as a proof text for God not loving the world and it fails. Keep in mind that after the waters recede, God makes a new
covenant with Noah and humanity that shows his love for mankind. Then to show his love even more he gave the Abrahamic Covenant that is an unconditional covenant. God’s solitary action indicates that the covenant is principally His promise. He binds Himself to the covenant. God determined to call out a special people for Himself, and through that special people He would bless and love the whole world.
God promised that the number of Abraham’s children would rival that of “the dust of the earth.” This is an example of God's love for the world.
The flood was a whole different story...
The earth was depraved and putrid in God’s sight, and the land was filled with violence (desecration, infringement, outrage, assault, and lust for power).
12 And God looked upon the world and saw how degenerate, debased, and vicious it was, for all humanity had corrupted their way upon the earth and lost their true direction.
13 God said to Noah, I intend to make an end of all flesh, for through men the land is filled with violence; and behold, I will destroy them and the land.
Genesis 6:11–13
15 And God spoke to Noah, saying,
16 Go forth from the ark, you and your wife and your sons and their wives with you.
17 Bring forth every living thing that is with you of all flesh—birds and beasts and every creeping thing that creeps on the ground—that they may breed abundantly on the land and be fruitful and multiply upon the earth.
18 And Noah went forth, and his wife and his sons and their wives with him [after being in the ark one year and ten days].
19 Every beast, every creeping thing, every bird—and whatever moves on the land—went forth by families out of the ark.
20 And Noah built an altar to the Lord and took of every clean [four-footed] animal and of every clean fowl or bird and offered burnt offerings on the altar.
21 When the Lord smelled the pleasing odor [a scent of satisfaction to His heart], the Lord said to Himself, I will never again curse the ground because of man, for the imagination (the strong desire) of man’s heart is evil and wicked from his youth; neither will I ever again smite and destroy every living thing, as I have done.
22 While the earth remains, seedtime and harvest, cold and heat, summer and winter, and day and night shall not cease.
Genesis 8:15–22.