Renderer CLI

For more help, run renderer <task> -h

usage: __main__.py [-h]
                   {info,nodebuilder,compbuilder,validate,vdir,render,merge}
                   ...

positional arguments:
  {info,nodebuilder,compbuilder,validate,vdir,render,merge}
                        task to run
    info                view info about the renderer
    nodebuilder         launch the node builder
    compbuilder         launch the component builder
    validate            validate a JSON file
    vdir                validate a directory of JSON files
    render              render tiles
    merge               merge tiles

optional arguments:
  -h, --help            show this help message and exit
renderer nodebuilder

Run the node builder for Minecraft.

usage: __main__.py nodebuilder [-h]

optional arguments:
  -h, --help  show this help message and exit
renderer compbuilder

Run the component builder for nodes.

usage: __main__.py compbuilder [-h]

optional arguments:
  -h, --help  show this help message and exit
renderer validate

Validate a single JSON file.

usage: __main__.py validate [-h] [-c Path] -n Path

optional arguments:
  -h, --help            show this help message and exit
  -c Path, --components Path
                        component JSON file to validate
  -n Path, --nodes Path
                        node JSON file to validate
renderer vdir

Validate a folder of JSON files.

usage: __main__.py vdir [-h] [-c Path] -n Path [-cs str] [-ns str]

optional arguments:
  -h, --help            show this help message and exit
  -c Path, --components Path
                        directory of folder of component JSON files to
                        validate
  -n Path, --nodes Path
                        directory of folder of node JSON files to validate
  -cs str, --components_suffix str
                        The suffix for component files' names
  -ns str, --nodes_suffix str
                        The suffix for node files' names
renderer render

Render from JSON files.

usage: __main__.py render [-h] -c str -n str -min int -max int -r float
                          [-s str] [-d Path] [-m int] [-t list] [-o tuple]

optional arguments:
  -h, --help            show this help message and exit
  -c str, --components str
                        the component JSON file directory
  -n str, --nodes str   the node JSON file directory
  -min int, --min_zoom int
                        minimum zoom value
  -max int, --max_zoom int
                        maximum zoom value
  -r float, --max_zoom_range float
                        range of coordinates covered by a tile in the maximum
                        zoom
  -s str, --skin str    the name of the skin to use
  -d Path, --save_dir Path
                        the directory to save tiles in
  -m int, --processes int
                        the amount of processes to run for rendering
  -t list, --tiles list
                        a list of tiles to render, given in tuples of (z,x,y)
  -o tuple, --offset tuple
                        the offset of node coordinates, given as (x,y)
renderer merge

Merge tiles.

usage: __main__.py merge [-h] [-i Path] [-s Path] [-z [int [int ...]]]

optional arguments:
  -h, --help            show this help message and exit
  -i Path, --image_dir Path
                        the directory of tiles
  -s Path, --save_dir Path
                        the directory to save the merged image to
  -z [int [int ...]], --zoom [int [int ...]]
                        the zoom levels to merge