minecraft-datapack-language 15.3.11__py3-none-any.whl → 15.3.13__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.3.11'
32
- __version_tuple__ = version_tuple = (15, 3, 11)
31
+ __version__ = version = '15.3.13'
32
+ __version_tuple__ = version_tuple = (15, 3, 13)
33
33
 
34
34
  __commit_id__ = commit_id = None
@@ -314,6 +314,7 @@ def _process_statement(statement: Any, namespace: str, function_name: str, state
314
314
  # Convert say command to tellraw command
315
315
  content = command[4:] # Remove "say " prefix
316
316
  print(f"DEBUG: Say command content: {repr(content)}")
317
+ print(f"DEBUG: Raw command from AST: {repr(statement['command'])}")
317
318
  # Convert to Minecraft tellraw format
318
319
  processed_command = _process_say_command_with_variables(content, selector, variable_scopes)
319
320
  print(f"DEBUG: Processed say command: {repr(processed_command)}")
@@ -499,7 +499,7 @@ class MDLLexer:
499
499
  self.column += 1
500
500
  self.current += 1
501
501
 
502
- # Scan content until we find a semicolon
502
+ # Scan content until we find a semicolon, but preserve $variable$ syntax
503
503
  content_parts = []
504
504
  while self.current < len(source):
505
505
  char = source[self.current]
@@ -508,6 +508,35 @@ class MDLLexer:
508
508
  # Found the end of the say command
509
509
  break
510
510
 
511
+ # Check for variable substitution syntax
512
+ if char == '$':
513
+ # This might be the start of a variable substitution
514
+ # Look ahead to see if it's a valid variable name
515
+ temp_current = self.current + 1
516
+ temp_column = self.column + 1
517
+ variable_name = ""
518
+
519
+ # Scan potential variable name
520
+ while (temp_current < len(source) and
521
+ (source[temp_current].isalnum() or source[temp_current] == '_')):
522
+ variable_name += source[temp_current]
523
+ temp_current += 1
524
+
525
+ # Check if we have a valid variable substitution
526
+ if (variable_name and
527
+ temp_current < len(source) and
528
+ source[temp_current] == '$' and
529
+ (not variable_name[0].isdigit())):
530
+ # This is a valid variable substitution, preserve the $variable$ syntax
531
+ content_parts.append(char)
532
+ content_parts.append(variable_name)
533
+ content_parts.append('$')
534
+
535
+ # Update position
536
+ self.current = temp_current + 1
537
+ self.column = temp_current + 1
538
+ continue
539
+
511
540
  # Add character to content
512
541
  content_parts.append(char)
513
542
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: minecraft-datapack-language
3
- Version: 15.3.11
3
+ Version: 15.3.13
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=wty85STj39LbQK_ZS5i7nysrTGZlh7A4qzbRAjbOAog,708
2
+ minecraft_datapack_language/_version.py,sha256=fsv8gSjbJBOIzWGPPUp0moMUQelRJsUyTgniMb7owWE,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=NLgpYfXCKiZhWD_8K_GKLvUmUlQvFNTVwQ_hCHoodhY,46785
5
+ minecraft_datapack_language/cli_build.py,sha256=0k5h64D3rOXtuVCr9XctuKjzAl7bFhzyDaexLpmMeK8,46865
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
@@ -11,14 +11,14 @@ minecraft_datapack_language/dir_map.py,sha256=HmxFkuvWGkzHF8o_GFb4BpuMCRc6QMw8Ub
11
11
  minecraft_datapack_language/expression_processor.py,sha256=GN6cuRNvgI8TrV6YnEHrA9P0X-ACTT7rCBh4WlOPjSI,20140
12
12
  minecraft_datapack_language/linter.py,sha256=7UqbygC5JPCGg-BSOq65NB2xEJBu_OUOYIIgmHItO2M,16567
13
13
  minecraft_datapack_language/mdl_errors.py,sha256=a_-683gjF3gfGRpDMbRgCXmXD9_aYYBmLodNH6fe29A,11596
14
- minecraft_datapack_language/mdl_lexer_js.py,sha256=F8I6A2CjV1sGn8a7OgG66nRKm-0jKxQpOq3fkUgkYlA,26201
14
+ minecraft_datapack_language/mdl_lexer_js.py,sha256=UfIYPPDlRG0n4g8sqwhN2H2sJWh2e6k-ORsU55MZ8R0,27607
15
15
  minecraft_datapack_language/mdl_linter.py,sha256=z85xoAglENurCh30bR7kEHZ_JeMxcYaLDcGNRAl-RAI,17253
16
16
  minecraft_datapack_language/mdl_parser_js.py,sha256=Ap7EDpC5wbu1qFmC8htzd8rRqSyYugt58h0AppfDD6s,40171
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.3.11.dist-info/licenses/LICENSE,sha256=OXLcl0T2SZ8Pmy2_dmlvKuetivmyPd5m1q-Gyd-zaYY,35149
20
- minecraft_datapack_language-15.3.11.dist-info/METADATA,sha256=cZYXpnKp5sARVj6FAhyNxQrLdM8Yp4xjiogmh6R7548,35230
21
- minecraft_datapack_language-15.3.11.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
22
- minecraft_datapack_language-15.3.11.dist-info/entry_points.txt,sha256=c6vjBeCiyQflvPHBRyBk2nJCSfYt3Oc7Sc9V87ySi_U,108
23
- minecraft_datapack_language-15.3.11.dist-info/top_level.txt,sha256=ADtFI476tbKLLxEAA-aJQAfg53MA3k_DOb0KTFiggfw,28
24
- minecraft_datapack_language-15.3.11.dist-info/RECORD,,
19
+ minecraft_datapack_language-15.3.13.dist-info/licenses/LICENSE,sha256=OXLcl0T2SZ8Pmy2_dmlvKuetivmyPd5m1q-Gyd-zaYY,35149
20
+ minecraft_datapack_language-15.3.13.dist-info/METADATA,sha256=CvH3G47WwCyaQOoMyrmbby8cZH06qGiuzDGTVoEB2J0,35230
21
+ minecraft_datapack_language-15.3.13.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
22
+ minecraft_datapack_language-15.3.13.dist-info/entry_points.txt,sha256=c6vjBeCiyQflvPHBRyBk2nJCSfYt3Oc7Sc9V87ySi_U,108
23
+ minecraft_datapack_language-15.3.13.dist-info/top_level.txt,sha256=ADtFI476tbKLLxEAA-aJQAfg53MA3k_DOb0KTFiggfw,28
24
+ minecraft_datapack_language-15.3.13.dist-info/RECORD,,