Generate player head and body avatars with usernames using the Minecraft font for one player or multiple players at once based on a player list.
-
Install Python:
-
Install required libraries:
pip install requests pip install Pillow
-
Install Python:
-
Install required libraries:
pip3 install requests pip3 install Pillow
Edit players.txt
or create your own .txt
file:
- Open a text editor
- Add one Minecraft username per line
- Save the file
-
Open Command Prompt
-
Open Command Prompt and run
main.py
cd path\to\folder python main.py
-
Open Terminal
-
Open Terminal and run
main.py
cd path\to\folder python3 main.py
-
You can adjust the default font size by changing
DESIRED_FONT_SIZE
:FONT_SIZE_HEAD = 32 FONT_SIZE_BODY = 64
-
You can change the font by putting a new font inside the folder and changing:
font_path = Path("Minecraft.ttf")
- The script requires an internet connection to fetch avatars
- Processing time depends on the number of players
- Invalid usernames will be skipped with a warning message
- The font will automatically scale down for long usernames