"""Bookshelf is a modular library for building Minecraft datapacks.

It provides a wide range of modules that can be used individually,
giving developers the flexibility to pick only the features they need.
"""

from __future__ import annotations

from .definitions import MC_VERSIONS, VERSION


def version() -> str:
    """Get the current version of Bookshelf."""
    return VERSION


def mc_versions() -> str:
    """Get Minecraft versions compatible with the current Bookshelf version."""
    return MC_VERSIONS[0] \
        if len(MC_VERSIONS) == 1 \
        else f"{MC_VERSIONS[0]}-{MC_VERSIONS[-1]}"
