-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfig.py
34 lines (26 loc) · 1.62 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
33
# 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] = (["E:/my_folders/advanced_desktop/python_datapack/src/python_datapack/dependencies/datapack/SmartOreGeneration.zip"], []) # Can be empty lists if you don't want to copy the generated files
# 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 = "SmartOreGeneration" # Name of the datapack, used for messages and items lore
VERSION: str = "1.7.1" # Datapack version in the following mandatory format: major.minor.patch, ex: 1.0.0 or 1.21.615
NAMESPACE: str = "smart_ore_generation" # Used to namespace functions, tags, etc. Should be the same you use in the merge folder.
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,
}