You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+58-8Lines changed: 58 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -57,23 +57,41 @@ Finally, the server is stopped gracefully.
57
57
58
58
More examples can be found in the **examples** folder.
59
59
60
-
## Run tests locally
60
+
## Development environment setup
61
61
62
-
In order to run tests locally, there are a few things that have to be setup:
62
+
If you want to contribute to this project, you need to set up your local environment.
63
63
64
-
### Add credentials for testing
64
+
### Clone the repository
65
65
66
-
To simulate a player connecting ot the server, it needs to authenticate against microsofts servers. This means, that a microsoft account which owns Minecraft is needed. Don't worry, the credentials are only saved locally.
Create a new file named *password.txt* in the repository root and add the following content (without the brackets):
73
+
### Install pip packages
74
+
75
+
To install all optional as well as development python packages, run the following commands in the project root.
76
+
77
+
Windows:
78
+
```bash
79
+
py -m venv venv
80
+
venv\Scripts\activate.bat
81
+
pip install -r requirements.txt
69
82
```
70
-
(username-here)
71
-
(password-here)
83
+
84
+
Linux:
85
+
```bash
86
+
python3 -m venv venv
87
+
source venv/bin/activate
88
+
pip install -r requirements.txt
72
89
```
73
90
74
91
### Node
75
92
76
93
Node 20 is needed to use MineFlayer.
94
+
The install instructions can be found below:
77
95
78
96
#### Windows
79
97
@@ -98,9 +116,41 @@ To actually run a minecraft server, a Java 21 JRE needs to be installed and adde
98
116
99
117
Download it from (here)[https://adoptium.net/temurin/releases/].
100
118
119
+
### Add credentials for testing
120
+
121
+
To simulate a player connecting to the server, it needs to authenticate against microsofts servers. This means, that a microsoft account which owns Minecraft is needed. Don't worry, the credentials are only saved locally.
122
+
123
+
Create a new file named *password.txt* in the repository root and add the following content (without the brackets):
124
+
```
125
+
(username-here)
126
+
(password-here)
127
+
```
128
+
101
129
### Run tests
102
130
103
131
After installing all of the requirements, the tests can be ran using
0 commit comments