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
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.3.tar.gz
(3.3 kB
view hashes)
Built Distribution
Close
Hashes for minebannerlib-0.0.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1a4fdbb2d761d47da0c08d06cb101a041095dad31b020b8f082b3a16fd335343 |
|
MD5 | 444aeb8e8a1e754025e3c347fa58d19d |
|
BLAKE2b-256 | 5f77222247a8b49c53b3b3314ca29a5d8572524a0c056f7e556b2a1bd0cd0c33 |