casting parts at home

@pishta , you may want to check out eBay, I have purchased one of these kits to pretty much repair what you are doing. Found a plastic gear that worked perfect for me.
Plastic Gears Kits Pulley Spindle Shaft Worm Bevel Gear Sleeve DIY for Toy Robot

gears.jpg