This API can be integrated with any application, plugin or other software. I personally use this with the DiscordSRV plugin on my server, to provide mob faces to show when an entity dies and this gets reported to Discord.
The API has a very simple syntax, as seen below:
https://pixelface.dedyn.io/faces/[nameofentity]
For example, to download the image of a zombie using cURL, use:
$ curl -o zombie.png https://pixelface.dedyn.io/faces/zombiePixelFace can easily be hosted by yourself. You can either do this by manually installing Node.js, cloning the Git repository and then run the project. For the least hassle, I'd recommend using the Docker image I provide here.
Using the Docker image, you can get the API quickly up and running.
$ docker run -d -p 3000:3000 --name pixelface minionguyjpro/pixelface:latestversion: "3.8"
services:
pixelface:
image: minionguyjpro/pixelface:latest
container_name: pixelface
ports:
- "3000:3000"
restart: unless-stoppedContributions to this project are more than welcome! Any new features or improvements to come would be great. To contribute to this project, first clone the repository and go into the working directory:
# Clone the repository locally
$ git clone https://github.com/Minionguyjpro/PixelFace
# Change into the working directory
$ cd PixelFaceNow make your changes to your fork of the repository. Finally, commit and push the changes:
# Track all changes and files
$ git add -A
# Commit the changes
$ git commit -asm "<Your commit message here>"
# Push the changes to your fork
$ git push origin