Skip to main content

Lib for create minecraft banner image

Project description

MineBannerLib

Python library for drawing banners.

How it works?

Draws a banner image from the received nbts. The flag will be saved to the buildbanner root folder.

Installation

pip install minebannerlib

or

python -m pip install minebannerlib

Create a banner

To do this, call the create_banner() function, to which you need to pass the NBTS, name of the flag and the base color

Example

from MineBannerLib import CreateBanner

banner = CreateBanner

nbts = '{BlockEntityTag:{Patterns:[{Color:14,Pattern:"cre"},{Color:4,Pattern:"sku"}]}}'
color_base = 15
name = 'test'

def main():
  banner.create_banner(name, nbts, color_base)

if __name__ == '__main__':
  main()

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

minebannerlib-0.0.3.tar.gz (3.3 kB view hashes)

Uploaded Source

Built Distribution

minebannerlib-0.0.3-py3-none-any.whl (4.5 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page