-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfig.py
33 lines (26 loc) · 1.58 KB
/
config.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
# Imports
import os
ROOT: str = os.path.dirname(os.path.realpath(__file__)).replace("\\", "/")
IGNORE_UNSET: bool = True # If True, the program will ignore unset optionnal values in the configuration dictionnary
# Folders
ASSETS_FOLDER: str = f"{ROOT}/assets" # Folder where the assets are stored
BUILD_FOLDER: str = f"{ROOT}/build" # Folder where the final datapack and resource pack are built
BUILD_COPY_DESTINATIONS: tuple[list, list] = (["D:/latest_snapshot/world/datapacks"], ["D:/minecraft/snapshot/resourcepacks"]) # Can be empty lists if you don't want to copy the generated files to other folders.
# Datapack related constants
AUTHOR: str = "Stoupy51" # Author(s) name(s) displayed in pack.mcmeta, also used to add convention.debug tag to the players of the same name(s) <-- showing additionnal displays like datapack loading
PROJECT_NAME: str = "MoreApples" # Name of the datapack, used for messages and items lore
VERSION: str = "1.2.1" # Datapack version in the following mandatory format: major.minor.patch, ex: 1.0.0 or 1.21.615
NAMESPACE: str = "more_apples" # Should be the same you use in the merge folder. Used to namespace functions, tags, etc.
DESCRIPTION = f"{PROJECT_NAME} [{VERSION}] by {AUTHOR}" # Pack description displayed in pack.mcmeta
# Configuration dictionnary
configuration = {
"ignore_unset": IGNORE_UNSET,
"assets_folder": ASSETS_FOLDER,
"build_folder": BUILD_FOLDER,
"build_copy_destinations": BUILD_COPY_DESTINATIONS,
"author": AUTHOR,
"project_name": PROJECT_NAME,
"version": VERSION,
"namespace": NAMESPACE,
"description": DESCRIPTION,
}