*If* you have the skills and tools to make a good job of it, a fine grained durable high density hardwood would make a vastly superior plug body to any thermal 3D printable plastic, as it wont melt if one of the contacts becomes slightly loose and overheats, and if the wood species and grain direction are well chosen, it is likely to be significantly stronger. Make the pin end and one side of the plug in one piece, drilled for the pin holes, then counter-bored from the back for the larger diameter for the contact sleeves, leaving enough at the pin end to retain them in their holes, and drill and groove the side near the back so a cable tie can be used for the cord grip. The rest of the plug body would be in the form of a close fitting partially hollowed out cover, with a ridge that partially obscures the contact holes so the contacts cant be pushed back as the plug is inserted, firmly screwed to the first part. Care should be taken to avoid a straight line path to any contact at the joint between the cover and the main part e.g. by putting a lip on the cover, so that conductive dirt buildup is unlikely to become a shock risk and to maximize the creepage distance.
Both parts should be made from kiln dried wood, and lacquered or preferably vacuum impregnated with epoxy or phenolic varnish to reduce the risk of moisture adsorption making the wood partially conductive, which could result in insulation breakdown, carbon tracking and possible fire.
I've made such connectors a couple of times for 12V applications, but am not sufficiently confident in my woodworking skills to attempt one for mains voltage use.