But my son is learning programming (started when he was 6, he just turned 8 recently).
He started by goofing off with some robots programmed in visual languages. Then moved to goofing off even more in Scratch. When pandemic started we found a school that teaches programming online and they used Scratch to program Minecraft which got my son hooked up -- he likes Minecraft a lot and having it do stuff that wouldn't otherwise be possible was a huge motivation for him to learn. He is now attending a second semester in that school and they are using Kodu for some more advanced, 3d goofing off.
My son became big fan of Undertale recently and he approached me to learn to make some fan content based on Undertale. We did some research and found Undertale was made in Game Maker -- a game engine for 2d games. So this is what we just recently started learning. He is excited to finally start learning something that can be used to make professionally looking games and says that if it was good enough to make Undertale it is good enough for him:)
He also just got his own Minecraft server (ehm... Raspberry Pi 4 with 8GB of RAM) and I am hoping that when he is bored with vanilla gameplay with his school friends he will want to start modding the game in some ways.