First of all, thank you for choosing an interesting set of examples. Second of all, I would like to make a distinction between evil actions (such as murder) and judicial punishment. I believe that God is as he describes himself to be in Exodus 34, “The Lord, the Lord, the compassionate and gracious God, slow to anger, abounding in love and faithfulness, 7 maintaining love to thousands, and forgiving wickedness, rebellion and sin. Yet he does not leave the guilty unpunished; he punishes the children and their children for the sin of the parents to the third and fourth generation.”
As against that you have ─
God's rules for how to sell your daughter (Exodus 21:7)
God's rules for the massacre of surrendered populations eg Numbers 31:9-17
and Joshua 6:17, 6:21 (Jericho)
God's rules for mass rape of the young females (the same, Numbers 31:9-17)
God's affection for human sacrifice ─
of the firstborn Exodus 22:29-30
of Jephthah's daughter Judges 11:30-39
of the descendants of Saul, by impalement 2 Samuel 21
and of course with Jesus in the NT.
God's view of infanticide and abortion Hosea 13:16
and of course more.
Many of the examples that you mentioned are examples of judicial punishment, God serving justice to those who committed evil against God and others.
Yeah, but [he] would say that, wouldn't [he]. This is the God who sent [his] own son on a suicide mission to die by crucifixion, and why a benevolent and just God would do that when [he] can have anything [he] likes with one snap of those omnipotent fingers. escapes me altogether.
The method chosen was also mindbogglingly inefficient ─ two thousand years later there are still people on earth who've never heard of Jesus. Nothing stopped [him] from saying to the entire world, Hey, everyone, I've decided to forgive you your sins!
*fingersnap*
For example, according to Genesis 6:5-7 the flood was a judgement against mankind because they were filled with evil, and God took no joy in carrying this punishment out.
But that's only folktale, and what God was particularly cross about was that the person who screwed everything up was [him].
Eve, as the first and most important representative of womankind had the punishment for her actions visited upon those she represented.
Why should Eve be punished for anything? At the time she ate the fruit, God had specifically denied her knowledge of good and evil, therefore it was impossible for her to intend to do wrong, therefore it was impossible for her to sin. Same for Adam.
And of course, if you ever get round to actually reading the Garden story, you'll find that it
never mentions sin, not even once. The reason ─ the
only reason ─ God pitched them out of the Garden was to protect [his] own position, as [he] frankly states in Genesis 3:22-3.
Oh, and on top of that, as Ezekiel 18 makes clear, not least in Ezekiel 18:20, sin is NOT inheritable. To which you should say, Of course not! What kind of dingbat God would punish B for the crimes of A, for goodness' sake!
AND further to the Garden story, although it's only a story, aren't you glad that ─ thanks to Eve ─ humans can tell right from wrong? And if you are, doesn't that make Eve a wonderful symbolic figure for humanity? Prometheus only brought us fire, but Eve's gift is the basis of all humanity and decency and benevolence.
When Pharaoh (through the people of Egypt) mistreated God's people and then repeatedly refused God's command to let them go, God visited Pharaoh's punishment against those under his rule. Part of being a leader is knowing that those you lead can (and will) suffer for your mistakes.
No, you're being unfair. The text is specific (Exodus 7:3-4, 7:13), that it was God who hardened Pharaoh's heart and made him forbid the Exodus. God for some deviant reason was using Pharaoh as a puppet. Fortunately that too is only a story, but the moral is again grossly offensive.