As for MInecraft discussion this is like any game or activity. If you not engaged with your kid then they will end up doing things that you may see as a problem.
Minecraft as a single player game is great and very safe.
As soon as you start playing online then it will become complicated as the online servers are not managed by the creators of Minecraft. And “anything” can happen in them.
A good discussion with your child on online games is a good start. And this can lay a foundation going forward on how they play (if allowed) on other platforms as they get older.
Another solution is to pay a little extra for a “Realm” this is limited player Online server that you control and who has access to it. Making sure you child is only inviting friends you have pre-approved. This may be a solutions to some parents wanting to give freedom while developing trust.
Note my child hated Math and when he started coding in MInecraft, his interest in Math did a 180 as now he a reason to learn it.
I tell my kids this:
“Responsibility creates Trust,
Trust intern creates Freedom”
If they responsible they will eventually get more freedom.