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 create banner from nbts
from MineBannerLib import *
nbts = '{BlockEntityTag:{Patterns:[{Color:14,Pattern:"cre"},{Color:4,Pattern:"sku"}]}}'
color_base = 15
name = 'test'
def main():
create_banner(name, nbts, color_base)
if __name__ == '__main__':
main()
You can create banner from list
You must pass the second argument to create_banner()
a list containing elements of type Layer
, as in the example below
from MineBannerLib import *
parts = [Layer('mc', 2), Layer('hh', 1)]
color_base = 15
name = 'test'
def main():
create_banner(name, parts, 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.1.0.tar.gz
(42.2 kB
view hashes)
Built Distribution
Close
Hashes for minebannerlib-0.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a46c1e57f40b362fd3eee3ab820fdd992c32650bd4af2e2dbce60c34c8e1e53b |
|
MD5 | 9b647d01c18f226601660afb3fa846b5 |
|
BLAKE2b-256 | f3faef62b2220cb2a0fd741be91fc3cf5d2ca54d050bf05daf61c53efad2a66a |