mc-utils
mc-utils copied to clipboard
[New Util]: Custom Heads Database
This Pull Request was made to add a new util, #183. The utility in question is basically a place for people to find for custom heads they can then use in their worlds.
It looks something like this:
Features
- You can switch categories
- Only 20 heads are loaded initially, then you can load more by clicking on the button below the heads
- You can search for heads
- You can copy the head
/give
commands
Code Changes/Additions
- Fetch all head json data through custom api
- Variable
heads
= current heads being displayed - Variable
totalHeads
= hold all the heads fetched
API
- Added an api you can use instead of using headdb.org
- Returns a json document with:
- Head name
- Head UUID that headdb.org uses
- Head url for the minecraft texture
- Head category, such as Blocks, Characters, etc.
- Head
/give
command, 1.20+ commands
- It gets the categories by fetching through all the api's individually
Aditional information
All the information is fetched from headdb.org. It only contains 900 heads, sadly, but for now it's the only option. In the meantime, @stephendotgg is currently contacting the people from https://minecraft-heads.com/ to see if we can use it's api, which has 50.000+ heads.
Please do let me know if I have to change anything! Sorry in advance if this is a little scuffed, I made this in a hurry.