My 12-year-old and his 10yo brother (they're both Minecraft fans, the younger one likes coding) both still play a lot with their "inventor center", which is a large bin full of assorted junk like boxes, paper towel tubes, 2-liter bottles, string, duck tape, bouncy balls, binder clips, etc. They've made games, buildings for toys, forts, vehicles, weapons, helmets and other armor, Rube Goldberg machines, a rope ladder, balls, etc. It's very messy but I think it kind of scratches the same itch for them that Minecraft does. They're very proud of what they make.

All of the little coding fans I've known have liked strategy games, like Machi Koro, Dominion, Carcasonne, etc. In Roborally you have to "program" your little robot. If he doesn't like to compete, there are cooperative games like Forbidden Island, Pandemic, Castle Panic.