Hi there! Making homemade computer games is completely legal and can actually be a great way to express creativity and learn programming skills. In order to distribute your game to others, you may need to consider copyright and licensing laws. It's always best to research and understand the laws in your area to ensure that you are compliant with them.
Regarding Minecraft, it's important to only download the game from reputable sources and obtain any necessary licenses if you plan to distribute or release it commercially. If you have any questions or concerns, it's always best to consult with a legal expert or the licensing company.