Skip to content

Python scripts to fetch and display Minecraft players' advancements count via in-game scoreboard.

Notifications You must be signed in to change notification settings

W-s-SBCs-Servers/advancements-getter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Minecraft Advancements Getter

This repository contains two Python scripts for retrieving players' advancements in a Minecraft world and displaying or updating them in-game using a scoreboard.

Features

main.py

  • main.py retrieves players' advancements from JSON files and displays players' names along with the number of advancements achieved.

scoreboard.py

  • scoreboard.py updates players' scores in the game based on their progress in Minecraft advancements.

Prerequisites

  • Python 3.x
  • The requests library

Installing Dependencies

Dependencies can be installed by running the following command in the terminal:

pip install -r requirements.txt

Recommended Usage

For main.py:

python3 main.py "path/to/advancements/*.json" > output.txt

For scoreboard.py:

python3 scoreboard.py "input_files.txt" server_screen_name minecraft_score_name

Player Data Source

  • This project utilizes the playerdb.co API to retrieve player information. Ensure you have proper access to this API and follow their usage guidelines.

Contributions

Contributions are welcome. Please provide clear and concise explanations of your contributions in your Pull Requests.

Notes

  • The scoreboard.py script is currently designed to work only on Linux.

About

Python scripts to fetch and display Minecraft players' advancements count via in-game scoreboard.

Topics

Resources

Stars

Watchers

Forks

Languages