Skip to content

GGServers/MinecraftBanner

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Minecraft Banner Generator

docker

About

Uses Node.js to generate Minecraft server banners.

Running

There is an official Docker image available here: gmem/minecraftbanner.

Or you can do:

git clone git@github.com:GGServers/MinecraftBanner.git

cd MinecraftBanner/src/

npm install

npm start

Creating your own banner template

A banner template consists of two things:

  1. A .png of the background
  2. A .json telling the script how to render text
  3. (Optional) A GIMP/Photoshop file for the image
  4. (Optional) Font file for image

Both files should be named the same thing with their respective file extensions.

The .png background does not need to be specific dimensions, however it is favorable to display them as rectangles.

Example image

Example

JSON

The JSON file is where you can specify the location for text to go.

{
    "name": "classic",
    "width": "500",
    "height": "200",
    "font": "Titillium-Web.ttf",
    "ip": {
        "x": 10,
        "y": 40,
        "size":40,
        "r":255,
        "g":255,
        "b":255
    },
    "status": {
        "x": 20,
        "y": 110,
        "size":40,
        "r":0,
        "g":0,
        "b":0
    },
    "players": {
        "x": 20,
        "y": 160,
        "size":25,
        "r":255,
        "g":255,
        "b":255
    }
}

Name is (currently) optional, width and height are to be used. Font tells the script which font family to use, the specific .ttf file should be located in the template/fonts folder.

Each "section" block tells the script where to render the text, the size (in px), and the color in which to do it (RGB).

About

Minecraft server banner generator.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published