minecraft-datapack-language 15.1.82__py3-none-any.whl → 15.1.84__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.
- minecraft_datapack_language/_version.py +2 -2
- minecraft_datapack_language/cli_build.py +13 -3
- {minecraft_datapack_language-15.1.82.dist-info → minecraft_datapack_language-15.1.84.dist-info}/METADATA +1 -1
- {minecraft_datapack_language-15.1.82.dist-info → minecraft_datapack_language-15.1.84.dist-info}/RECORD +8 -8
- {minecraft_datapack_language-15.1.82.dist-info → minecraft_datapack_language-15.1.84.dist-info}/WHEEL +0 -0
- {minecraft_datapack_language-15.1.82.dist-info → minecraft_datapack_language-15.1.84.dist-info}/entry_points.txt +0 -0
- {minecraft_datapack_language-15.1.82.dist-info → minecraft_datapack_language-15.1.84.dist-info}/licenses/LICENSE +0 -0
- {minecraft_datapack_language-15.1.82.dist-info → minecraft_datapack_language-15.1.84.dist-info}/top_level.txt +0 -0
@@ -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.1.
|
32
|
-
__version_tuple__ = version_tuple = (15, 1,
|
31
|
+
__version__ = version = '15.1.84'
|
32
|
+
__version_tuple__ = version_tuple = (15, 1, 84)
|
33
33
|
|
34
34
|
__commit_id__ = commit_id = None
|
@@ -477,7 +477,7 @@ def _generate_function_file(ast: Dict[str, Any], output_dir: Path, namespace: st
|
|
477
477
|
if function_commands:
|
478
478
|
# Only add armor stand setup to main functions that need it
|
479
479
|
# Don't add to helper functions or functions in the "other" namespace
|
480
|
-
|
480
|
+
should_add_armor_stand = (namespace != "other" and
|
481
481
|
(func_name in ["main", "init", "load"] or
|
482
482
|
any(cmd for cmd in function_commands if "scoreboard" in cmd or "tellraw" in cmd)))
|
483
483
|
|
@@ -616,15 +616,21 @@ def _process_while_loop_recursion(while_statement, namespace: str, function_name
|
|
616
616
|
condition = while_statement['condition']
|
617
617
|
body = while_statement['body']
|
618
618
|
|
619
|
+
print(f"DEBUG: _process_while_loop_recursion called with namespace={namespace}, function_name={function_name}, statement_index={statement_index}")
|
620
|
+
|
619
621
|
# Generate unique function names
|
620
|
-
loop_func_name = f"{
|
621
|
-
loop_body_func_name = f"{
|
622
|
+
loop_func_name = f"test_{function_name}_while_{statement_index}"
|
623
|
+
loop_body_func_name = f"test_{function_name}_while_{statement_index}"
|
624
|
+
|
625
|
+
print(f"DEBUG: Generated function names: loop_func_name={loop_func_name}, loop_body_func_name={loop_body_func_name}")
|
622
626
|
|
623
627
|
# Process loop body
|
624
628
|
body_commands = []
|
625
629
|
for i, stmt in enumerate(body):
|
626
630
|
body_commands.extend(_process_statement(stmt, namespace, loop_body_func_name, i, is_tag_function, selector, variable_scopes, build_context))
|
627
631
|
|
632
|
+
print(f"DEBUG: Generated body_commands: {body_commands}")
|
633
|
+
|
628
634
|
# Write loop body function
|
629
635
|
if body_commands:
|
630
636
|
# Use the output directory from build context
|
@@ -633,6 +639,7 @@ def _process_while_loop_recursion(while_statement, namespace: str, function_name
|
|
633
639
|
else:
|
634
640
|
func_dir = Path(f"data/{namespace}/function")
|
635
641
|
ensure_dir(str(func_dir))
|
642
|
+
print(f"DEBUG: Writing loop body function to: {func_dir / f'{loop_body_func_name}.mcfunction'}")
|
636
643
|
with open(func_dir / f"{loop_body_func_name}.mcfunction", 'w', encoding='utf-8') as f:
|
637
644
|
f.write('\n'.join(body_commands))
|
638
645
|
|
@@ -643,7 +650,10 @@ def _process_while_loop_recursion(while_statement, namespace: str, function_name
|
|
643
650
|
f"execute if {minecraft_condition} run function {namespace}:{loop_func_name}"
|
644
651
|
]
|
645
652
|
|
653
|
+
print(f"DEBUG: Generated loop_commands: {loop_commands}")
|
654
|
+
|
646
655
|
# Write loop function
|
656
|
+
print(f"DEBUG: Writing loop function to: {func_dir / f'{loop_func_name}.mcfunction'}")
|
647
657
|
with open(func_dir / f"{loop_func_name}.mcfunction", 'w', encoding='utf-8') as f:
|
648
658
|
f.write('\n'.join(loop_commands))
|
649
659
|
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.4
|
2
2
|
Name: minecraft-datapack-language
|
3
|
-
Version: 15.1.
|
3
|
+
Version: 15.1.84
|
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,8 +1,8 @@
|
|
1
1
|
minecraft_datapack_language/__init__.py,sha256=i-qCchbe5b2Fshgc6yCU9mddOLs2UBt9SAcLqfUIrT0,606
|
2
|
-
minecraft_datapack_language/_version.py,sha256=
|
2
|
+
minecraft_datapack_language/_version.py,sha256=9IGsKl9Nfk56n5Vj7avPO825ifXP9Zpg4tEW-loWUEY,708
|
3
3
|
minecraft_datapack_language/ast_nodes.py,sha256=pgjI2Nlap3ixFPgWqGSkqncG9zB91h5BKgRjtcJqMew,2118
|
4
4
|
minecraft_datapack_language/cli.py,sha256=p5A_tEEXugN2NhQFbbgfwi4FxbWYD91RWeKR_A3Vuec,6263
|
5
|
-
minecraft_datapack_language/cli_build.py,sha256=
|
5
|
+
minecraft_datapack_language/cli_build.py,sha256=EyY1Zeb4X-XRAR64L-S3t8nSPqrl30WbUi1scnvWXc0,42816
|
6
6
|
minecraft_datapack_language/cli_check.py,sha256=bPq9gHsxQ1CIiftkrAtRCifWkVAyjp5c8Oay2NNQ1qs,6277
|
7
7
|
minecraft_datapack_language/cli_help.py,sha256=jUTHUQBONAZKVTdQK9tNPXq4c_6xpsafNOvHDjkEldg,12243
|
8
8
|
minecraft_datapack_language/cli_new.py,sha256=uaKH0VBC43XBt_Hztc35-BfC9bYlsDdLbAfe_42rrtI,8235
|
@@ -16,9 +16,9 @@ minecraft_datapack_language/mdl_linter.py,sha256=z85xoAglENurCh30bR7kEHZ_JeMxcYa
|
|
16
16
|
minecraft_datapack_language/mdl_parser_js.py,sha256=4VMWx6O7A10afTzjGnnwL_Sh52osIO84ObqHp8KoDZw,38677
|
17
17
|
minecraft_datapack_language/pack.py,sha256=nYiXQ3jgJlDfc4m-65f7C2LFhDRioaUU_XVy6Na4SJI,34625
|
18
18
|
minecraft_datapack_language/utils.py,sha256=Aq0HAGlXqj9BUTEjaEilpvzEW0EtZYYMMwOqG9db6dE,684
|
19
|
-
minecraft_datapack_language-15.1.
|
20
|
-
minecraft_datapack_language-15.1.
|
21
|
-
minecraft_datapack_language-15.1.
|
22
|
-
minecraft_datapack_language-15.1.
|
23
|
-
minecraft_datapack_language-15.1.
|
24
|
-
minecraft_datapack_language-15.1.
|
19
|
+
minecraft_datapack_language-15.1.84.dist-info/licenses/LICENSE,sha256=OXLcl0T2SZ8Pmy2_dmlvKuetivmyPd5m1q-Gyd-zaYY,35149
|
20
|
+
minecraft_datapack_language-15.1.84.dist-info/METADATA,sha256=CFo2IUJtWUICMy-RLYX-V2nyJpYVQ04zAJsCGcmfvmg,35230
|
21
|
+
minecraft_datapack_language-15.1.84.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
22
|
+
minecraft_datapack_language-15.1.84.dist-info/entry_points.txt,sha256=c6vjBeCiyQflvPHBRyBk2nJCSfYt3Oc7Sc9V87ySi_U,108
|
23
|
+
minecraft_datapack_language-15.1.84.dist-info/top_level.txt,sha256=ADtFI476tbKLLxEAA-aJQAfg53MA3k_DOb0KTFiggfw,28
|
24
|
+
minecraft_datapack_language-15.1.84.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|