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
mbl = CreateBanner
nbts = '{BlockEntityTag:{Patterns:[{Color:14,Pattern:"cre"},{Color:4,Pattern:"sku"}]}}'
color_base = 15
name = 'test'
def main():
mbl.create_banner(name, nbts, color_base)
if __name__ == '__main__':
main()
Project details
Release history Release notifications | RSS feed
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.5.tar.gz
(3.3 kB
view hashes)