minecraft-py / minecraft

A Minecraft-like game written in python3
GNU General Public License v3.0
157 stars 25 forks source link

what is mcpypath #4

Closed BhavayJ closed 3 years ago

BhavayJ commented 3 years ago

bro, I am a programmer and I cant understand what you mean by mcpypath also it is showing error in minecraft/source.py that mcpypath is not defined. so what is that please tell or please change the source.py

ismaelxyz commented 3 years ago

MCPYPATH (Not mcpypath ) is an environment variable that you have to declare, the way you declare an environment variable varies according to your operating system.

In the path linked to MCPYPATH are saved files of a lot of value for the good functioning of the programme.

The value of MCPYPATH should be the place where you can save these important files in my case $HOME/PyMinecr (I use Deepin OS)

If you tell me what your operating system is, I can explain in detail how to create an environment variable.

ismaelxyz commented 3 years ago

This issues was solved, the user can create an environment variable with the name MCPYPATH and it value will be the path to a directory or let the game assign it a default one.

This folder will be used by Minecraft for complex operations.

zhengxyz123 commented 3 years ago

I have read the code recently. Now set MCPYPATH isn't a necessary installation step.