minecraft-datapack-language 15.4.3__py3-none-any.whl → 15.4.5__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -28,7 +28,7 @@ version_tuple: VERSION_TUPLE
28
28
  commit_id: COMMIT_ID
29
29
  __commit_id__: COMMIT_ID
30
30
 
31
- __version__ = version = '15.4.3'
32
- __version_tuple__ = version_tuple = (15, 4, 3)
31
+ __version__ = version = '15.4.5'
32
+ __version_tuple__ = version_tuple = (15, 4, 5)
33
33
 
34
34
  __commit_id__ = commit_id = None
@@ -5,7 +5,7 @@ CLI Help System - Comprehensive help documentation for MDL CLI
5
5
  from .cli_colors import (
6
6
  print_header, print_title, print_section, print_separator,
7
7
  print_success, print_warning, print_info, print_bullet,
8
- print_code, print_command, print_option, color
8
+ print_code, color
9
9
  )
10
10
 
11
11
 
@@ -27,15 +27,15 @@ def show_main_help():
27
27
  print_section("Available Commands")
28
28
  print()
29
29
 
30
- print_command("build")
30
+ print_code("build")
31
31
  print_info(" - Compile MDL files into a Minecraft datapack")
32
32
  print()
33
33
 
34
- print_command("check")
34
+ print_code("check")
35
35
  print_info(" - Validate MDL files for syntax and semantic errors")
36
36
  print()
37
37
 
38
- print_command("new")
38
+ print_code("new")
39
39
  print_info(" - Create a new MDL project with template files")
40
40
  print()
41
41
 
@@ -110,12 +110,12 @@ def show_build_help():
110
110
  print_section("Arguments")
111
111
  print()
112
112
 
113
- print_option("--mdl, -m <input>")
113
+ print_code("--mdl, -m <input>")
114
114
  print_info(" Input MDL file or directory containing .mdl files")
115
115
  print_info(" Examples: --mdl project.mdl, --mdl src/, --mdl .")
116
116
  print()
117
117
 
118
- print_option("-o, --output <output>")
118
+ print_code("-o, --output <output>")
119
119
  print_info(" Output directory for the generated datapack")
120
120
  print_info(" Example: -o dist, -o build/my_pack")
121
121
  print()
@@ -123,22 +123,22 @@ def show_build_help():
123
123
  print_section("Options")
124
124
  print()
125
125
 
126
- print_option("--verbose, -v")
126
+ print_code("--verbose, -v")
127
127
  print_info(" Enable verbose output with detailed build information")
128
128
  print_info(" Shows file parsing, function generation, and progress")
129
129
  print()
130
130
 
131
- print_option("--pack-format <number>")
131
+ print_code("--pack-format <number>")
132
132
  print_info(" Override the pack format number (default: 82)")
133
133
  print_info(" Higher numbers support newer Minecraft versions")
134
134
  print()
135
135
 
136
- print_option("--wrapper <name>")
136
+ print_code("--wrapper <name>")
137
137
  print_info(" Create a zip file with the specified name")
138
138
  print_info(" Example: --wrapper my_pack.zip")
139
139
  print()
140
140
 
141
- print_option("--ignore-warnings")
141
+ print_code("--ignore-warnings")
142
142
  print_info(" Suppress warning messages during build")
143
143
  print_info(" Only errors will be shown")
144
144
  print()
@@ -189,7 +189,7 @@ def show_check_help():
189
189
  print_section("Arguments")
190
190
  print()
191
191
 
192
- print_option("<input>")
192
+ print_code("<input>")
193
193
  print_info(" Input MDL file or directory to check")
194
194
  print_info(" Examples: project.mdl, src/, .")
195
195
  print()
@@ -197,12 +197,12 @@ def show_check_help():
197
197
  print_section("Options")
198
198
  print()
199
199
 
200
- print_option("--verbose, -v")
200
+ print_code("--verbose, -v")
201
201
  print_info(" Enable verbose output with detailed validation information")
202
202
  print_info(" Shows parsing steps, variable analysis, and scope checking")
203
203
  print()
204
204
 
205
- print_option("--ignore-warnings")
205
+ print_code("--ignore-warnings")
206
206
  print_info(" Suppress warning messages during check")
207
207
  print_info(" Only errors will be shown")
208
208
  print()
@@ -266,7 +266,7 @@ def show_new_help():
266
266
  print_section("Arguments")
267
267
  print()
268
268
 
269
- print_option("<project_name>")
269
+ print_code("<project_name>")
270
270
  print_info(" Name for the new project (will create project_name/ directory)")
271
271
  print_info(" Examples: my_datapack, adventure_pack, minigame")
272
272
  print()
@@ -274,12 +274,12 @@ def show_new_help():
274
274
  print_section("Options")
275
275
  print()
276
276
 
277
- print_option("--pack-name <name>")
277
+ print_code("--pack-name <name>")
278
278
  print_info(" Custom pack name (default: same as project name)")
279
279
  print_info(" This appears in the pack.mcmeta file")
280
280
  print()
281
281
 
282
- print_option("--pack-format <number>")
282
+ print_code("--pack-format <number>")
283
283
  print_info(" Pack format number (default: 82)")
284
284
  print_info(" Higher numbers support newer Minecraft versions")
285
285
  print_info(" Common values: 15 (1.17+), 26 (1.18+), 82 (1.20+)")
@@ -21,3 +21,18 @@ def ns_path(namespace: str, path: str) -> str:
21
21
  if path.startswith("/"):
22
22
  path = path[1:]
23
23
  return f"{namespace}/{path}"
24
+
25
+ def find_mdl_files(directory: Path) -> list[Path]:
26
+ """Find all .mdl files in a directory recursively.
27
+
28
+ Args:
29
+ directory: Directory to search in
30
+
31
+ Returns:
32
+ List of Path objects for .mdl files
33
+ """
34
+ mdl_files = []
35
+ for item in directory.rglob("*.mdl"):
36
+ if item.is_file():
37
+ mdl_files.append(item)
38
+ return sorted(mdl_files)
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: minecraft-datapack-language
3
- Version: 15.4.3
3
+ Version: 15.4.5
4
4
  Summary: Compile JavaScript-style MDL language or Python API into a Minecraft datapack (1.21+ ready). Features variables, control flow, error handling, and VS Code extension.
5
5
  Project-URL: Homepage, https://www.mcmdl.com
6
6
  Project-URL: Documentation, https://www.mcmdl.com/docs
@@ -1,11 +1,11 @@
1
1
  minecraft_datapack_language/__init__.py,sha256=i-qCchbe5b2Fshgc6yCU9mddOLs2UBt9SAcLqfUIrT0,606
2
- minecraft_datapack_language/_version.py,sha256=TWxTg6FF2asyPjeyhUrfqiyvE3AJnzMlsJoqmuMDSQU,706
2
+ minecraft_datapack_language/_version.py,sha256=Zxfq99u22jZB71sDMEEPEvR-RO6FyKTaD89o-xqeg3Y,706
3
3
  minecraft_datapack_language/ast_nodes.py,sha256=pgjI2Nlap3ixFPgWqGSkqncG9zB91h5BKgRjtcJqMew,2118
4
4
  minecraft_datapack_language/cli.py,sha256=p5A_tEEXugN2NhQFbbgfwi4FxbWYD91RWeKR_A3Vuec,6263
5
5
  minecraft_datapack_language/cli_build.py,sha256=hbBqAI0VeoffF2EPaZu0HSCRfFBsEnjpwSZm0PNCfDE,9023
6
6
  minecraft_datapack_language/cli_check.py,sha256=bPq9gHsxQ1CIiftkrAtRCifWkVAyjp5c8Oay2NNQ1qs,6277
7
7
  minecraft_datapack_language/cli_colors.py,sha256=Ims0KbdYpsiwoqv96Y_g89uOB5l1qdETm_P51rkljfk,7884
8
- minecraft_datapack_language/cli_help.py,sha256=n2cJLYlKRz0umCgWuKrZm2Il0qEAkOloSUOcZvPa4Qk,13186
8
+ minecraft_datapack_language/cli_help.py,sha256=w8u8eeLhDCR_Jw4rfcMcCyY3rfOnQh-LUMZPg1WndrA,13124
9
9
  minecraft_datapack_language/cli_new.py,sha256=Uw-xuW6KTTRTeOsnS3wgoZnna7xA203SM8qvUUDFHTk,8112
10
10
  minecraft_datapack_language/cli_utils.py,sha256=nl22j96vpCW0XRMpD_zjwamnMU4e4LXEjACsnwiFGzs,9931
11
11
  minecraft_datapack_language/dir_map.py,sha256=HmxFkuvWGkzHF8o_GFb4BpuMCRc6QMw8UbmcAI8JVdY,1788
@@ -16,10 +16,10 @@ minecraft_datapack_language/mdl_lexer_js.py,sha256=VvbhKm727khdSAABxa03hoIIA7H3h
16
16
  minecraft_datapack_language/mdl_linter.py,sha256=z85xoAglENurCh30bR7kEHZ_JeMxcYaLDcGNRAl-RAI,17253
17
17
  minecraft_datapack_language/mdl_parser_js.py,sha256=SQzc67pKls3NVnQaT0xIILGqpZYAmcZn78TQ0KIM4TE,40216
18
18
  minecraft_datapack_language/pack.py,sha256=nYiXQ3jgJlDfc4m-65f7C2LFhDRioaUU_XVy6Na4SJI,34625
19
- minecraft_datapack_language/utils.py,sha256=Aq0HAGlXqj9BUTEjaEilpvzEW0EtZYYMMwOqG9db6dE,684
20
- minecraft_datapack_language-15.4.3.dist-info/licenses/LICENSE,sha256=OXLcl0T2SZ8Pmy2_dmlvKuetivmyPd5m1q-Gyd-zaYY,35149
21
- minecraft_datapack_language-15.4.3.dist-info/METADATA,sha256=fwKp0v5RagXdPoDFgzN1mZWRvCgGKdWNC-GQLGtCPqA,35229
22
- minecraft_datapack_language-15.4.3.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
23
- minecraft_datapack_language-15.4.3.dist-info/entry_points.txt,sha256=c6vjBeCiyQflvPHBRyBk2nJCSfYt3Oc7Sc9V87ySi_U,108
24
- minecraft_datapack_language-15.4.3.dist-info/top_level.txt,sha256=ADtFI476tbKLLxEAA-aJQAfg53MA3k_DOb0KTFiggfw,28
25
- minecraft_datapack_language-15.4.3.dist-info/RECORD,,
19
+ minecraft_datapack_language/utils.py,sha256=LauI6WqNys1F9R6j-TaMVDsTBXzpDxDb5snHYJT8NZo,1074
20
+ minecraft_datapack_language-15.4.5.dist-info/licenses/LICENSE,sha256=OXLcl0T2SZ8Pmy2_dmlvKuetivmyPd5m1q-Gyd-zaYY,35149
21
+ minecraft_datapack_language-15.4.5.dist-info/METADATA,sha256=cl3gAuSE8F9RnGk5cTkdKAiHo4Xam1rs5wQsVFN0d4M,35229
22
+ minecraft_datapack_language-15.4.5.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
23
+ minecraft_datapack_language-15.4.5.dist-info/entry_points.txt,sha256=c6vjBeCiyQflvPHBRyBk2nJCSfYt3Oc7Sc9V87ySi_U,108
24
+ minecraft_datapack_language-15.4.5.dist-info/top_level.txt,sha256=ADtFI476tbKLLxEAA-aJQAfg53MA3k_DOb0KTFiggfw,28
25
+ minecraft_datapack_language-15.4.5.dist-info/RECORD,,