my nephews asked for it. it was Minecraft that got them into it. unfortunately that also meant that they wanted to learn Java, so they will probably be put off for life.
My son, who is not yet 6, will watch YouTube videos about creating something in Minecraft and then build it almost exactly to spec later, not while watching the video. This includes some redstone contraptions. It’s pretty mind-blowing to watch him.
The educational versions of minecraft (e.g. the raspi version) integrate python scripting directly.
Microsoft forked a "bedrock" version of minecraft that I'm not as familiar with and that has a different plugin ecosystem. The Java-based version still has all the same plugin capabilities it always has.