It’s not Minecraft especially, it’s the computer. I never played Minecraft so it may be suitable for a 7 yo (depending on the child), but at 5 no child should in my opinion play video games alone, only for small periods of time and always accompanied by an adult as their brain is not mature enough to grasp the concept of virtuality.
English is not my mother tongue, so yeah my word choice may be bad. But I said that children shouldn’t be allowed alone on computers before 6. Not only PCs, but all kinds of computers: PCs, smartphones, tablets, consoles, … However, for short periods of time and accompanied by an adult, they can use a computer.