from typing import List
import logging


def get_mc_definitions(resource: str) -> List[str]:
    """ Load Minecraft values from the assets folder.

    :param resource: The resource to load from disk.
    :return: The lines of the file assets/minecraft_definitions/<resource>,
        without the line breaks.
    """
    logging.info(f"Loading definitions for '{resource}'")
    with open(f"assets/minecraft_definitions/{resource}.txt", "r") as f:
        return [line.rstrip("\n") for line in f.readlines() if line]