A minecraft datapack that tracks and rewards mob kills.
- keep track of killed mobs
- receive advancements and rewards for killed mobs
- every player can view their own score with
/trigger mob_score
- admins can enable scoreboard with
/scoreboard objectives setdisplay sidebar mhr_score_total
- completely reset and uninstall with
/function mhr:_remove
- Download the latest datapack file mob-hunting-rewards.zip from the releases.
- Find the datapack folder of a world save.
- Copy the zip file into the datapack folder.
- run
/reload
- run
/function mhr:_remove
while the datapack is still loaded (this will remove all modification to the world save) - disable datapack or delete from datapack folder
The datapack can be used as is or reconfigured via the python script and the config file. Following configurations can be made:
- mobs that belong to the same tier
- rewards per tier, that are granted on each first kill of a mob of that tier
- tier icon, title and description, as well as the score points awarded
- title and description patterns of advancements
It is not necessary to generate any files. The .zip files under releases already come with the default configuration and all files already generated. If you want to run a custom configuration, you can
- navigate to the root directory of the repository
- run the python script with
python generate_files.py
- create the zipped datapack with
zip mob-hunting-rewards.zip -r data/ pack.mcmeta
(or equivalent tools or commands based on your OS) - possibly copy the created .zip file to another location as there are known issues when importing the datapack directly from the git repository
Generating and importing (drag & drop) from the git repository folder directly into Minecraft sometimes fails with "Non-pack entries: The following entries were not valid packs and were not copied: mob-hunting-rewards.zip". This can be worked around by copying the zip-file to another location outside the git repository and loading it from there instead.