minecraft-datapack-language 15.4.9__py3-none-any.whl → 15.4.10__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_help.py +158 -1
- {minecraft_datapack_language-15.4.9.dist-info → minecraft_datapack_language-15.4.10.dist-info}/METADATA +1 -1
- {minecraft_datapack_language-15.4.9.dist-info → minecraft_datapack_language-15.4.10.dist-info}/RECORD +8 -8
- {minecraft_datapack_language-15.4.9.dist-info → minecraft_datapack_language-15.4.10.dist-info}/WHEEL +0 -0
- {minecraft_datapack_language-15.4.9.dist-info → minecraft_datapack_language-15.4.10.dist-info}/entry_points.txt +0 -0
- {minecraft_datapack_language-15.4.9.dist-info → minecraft_datapack_language-15.4.10.dist-info}/licenses/LICENSE +0 -0
- {minecraft_datapack_language-15.4.9.dist-info → minecraft_datapack_language-15.4.10.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.4.
|
32
|
-
__version_tuple__ = version_tuple = (15, 4,
|
31
|
+
__version__ = version = '15.4.10'
|
32
|
+
__version_tuple__ = version_tuple = (15, 4, 10)
|
33
33
|
|
34
34
|
__commit_id__ = commit_id = None
|
@@ -291,7 +291,164 @@ For more information, visit: https://www.mcmdl.com/docs/cli-reference#check
|
|
291
291
|
|
292
292
|
def show_new_help():
|
293
293
|
"""Display detailed help for the new command."""
|
294
|
-
|
294
|
+
try:
|
295
|
+
from .cli_colors import color, print_header, print_title, print_section, print_separator, print_info, print_bullet, print_code
|
296
|
+
|
297
|
+
# Header
|
298
|
+
print()
|
299
|
+
print_header("MDL New Command - Create New MDL Projects")
|
300
|
+
print_separator("=", 65)
|
301
|
+
print()
|
302
|
+
|
303
|
+
# Description
|
304
|
+
print(color.info("The new command creates a new MDL project with template files and proper"))
|
305
|
+
print(color.info("structure to get you started quickly."))
|
306
|
+
print()
|
307
|
+
|
308
|
+
# Usage
|
309
|
+
print_section("Usage")
|
310
|
+
print()
|
311
|
+
print(f" {color.code('mdl new <project_name> [options]')}")
|
312
|
+
print()
|
313
|
+
|
314
|
+
# Arguments
|
315
|
+
print_section("Arguments")
|
316
|
+
print()
|
317
|
+
print(f" {color.highlight('<project_name>')} Name for your new MDL project")
|
318
|
+
print(f" This will be used for the project directory and pack name")
|
319
|
+
print(f" Example: {color.code('my_awesome_pack')}, {color.code('hello_world')}, {color.code('magic_system')}")
|
320
|
+
print()
|
321
|
+
|
322
|
+
# Options
|
323
|
+
print_section("Options")
|
324
|
+
print()
|
325
|
+
print(f" {color.command('--pack-name')} {color.highlight('<name>')} Custom name for the datapack (defaults to project name)")
|
326
|
+
print(f" This appears in the pack.mcmeta description")
|
327
|
+
print(f" Example: {color.code('--pack-name "My Awesome Magic Pack"')}")
|
328
|
+
print()
|
329
|
+
print(f" {color.command('--pack-format')} {color.highlight('<num>')} Pack format number for Minecraft version compatibility")
|
330
|
+
print(f" Default: {color.highlight('82')} (Minecraft 1.20+)")
|
331
|
+
print(f" Example: {color.code('--pack-format 15')} (for older versions)")
|
332
|
+
print()
|
333
|
+
|
334
|
+
# Examples
|
335
|
+
print_section("Examples")
|
336
|
+
print()
|
337
|
+
print(f"1. Create a basic project:")
|
338
|
+
print(f" {color.code('mdl new hello_world')}")
|
339
|
+
print()
|
340
|
+
print(f"2. Create project with custom pack name:")
|
341
|
+
print(f" {color.code('mdl new magic_system --pack-name "Epic Magic Pack"')}")
|
342
|
+
print()
|
343
|
+
print(f"3. Create project for older Minecraft version:")
|
344
|
+
print(f" {color.code('mdl new retro_pack --pack-format 15')}")
|
345
|
+
print()
|
346
|
+
print(f"4. Create project with all custom options:")
|
347
|
+
print(f" {color.code('mdl new my_project --pack-name "My Project" --pack-format 82')}")
|
348
|
+
print()
|
349
|
+
|
350
|
+
# Generated Structure
|
351
|
+
print_section("Generated Structure")
|
352
|
+
print()
|
353
|
+
print(color.info("The new command creates a complete project structure:"))
|
354
|
+
print()
|
355
|
+
print(f" {color.file_path('<project_name>/')}")
|
356
|
+
print(f" ├── {color.file_path('README.md')} # Project documentation")
|
357
|
+
print(f" └── {color.file_path('<project_name>.mdl')} # Main MDL file with template code")
|
358
|
+
print()
|
359
|
+
|
360
|
+
# Template Content
|
361
|
+
print_section("Template Content")
|
362
|
+
print()
|
363
|
+
print(color.info("The generated MDL file includes:"))
|
364
|
+
print()
|
365
|
+
|
366
|
+
print_section("Pack Declaration")
|
367
|
+
print(f"{color.code('pack {')}")
|
368
|
+
print(f"{color.code(' name: "project_name"')}")
|
369
|
+
print(f"{color.code(' format: 82')}")
|
370
|
+
print(f"{color.code(' description: "Generated by MDL CLI"')}")
|
371
|
+
print(f"{color.code('}')}")
|
372
|
+
print()
|
373
|
+
|
374
|
+
print_section("Example Functions")
|
375
|
+
print(f"{color.code('function main {')}")
|
376
|
+
print(f"{color.code(' say "Hello from MDL!"')}")
|
377
|
+
print(f"{color.code(' ')}")
|
378
|
+
print(f"{color.code(' // Variable example')}")
|
379
|
+
print(f"{color.code(' score = 10')}")
|
380
|
+
print(f"{color.code(' say "Score: $score$"')}")
|
381
|
+
print(f"{color.code(' ')}")
|
382
|
+
print(f"{color.code(' // Conditional example')}")
|
383
|
+
print(f"{color.code(' if (score > 5) {')}")
|
384
|
+
print(f"{color.code(' say "High score!"')}")
|
385
|
+
print(f"{color.code(' } else {')}")
|
386
|
+
print(f"{color.code(' say "Try again!"')}")
|
387
|
+
print(f"{color.code(' }')}")
|
388
|
+
print(f"{color.code('}')}")
|
389
|
+
print()
|
390
|
+
print(f"{color.code('function load {')}")
|
391
|
+
print(f"{color.code(' // This function runs when the datapack loads')}")
|
392
|
+
print(f"{color.code(' say "Datapack loaded successfully!"')}")
|
393
|
+
print(f"{color.code('}')}")
|
394
|
+
print()
|
395
|
+
|
396
|
+
# Features
|
397
|
+
print_section("Features")
|
398
|
+
print()
|
399
|
+
print_bullet("Complete project setup - Ready-to-use structure")
|
400
|
+
print_bullet("Template code - Working examples to learn from")
|
401
|
+
print_bullet("Proper pack metadata - Correct pack.mcmeta configuration")
|
402
|
+
print_bullet("Documentation - README with usage instructions")
|
403
|
+
print_bullet("Best practices - Follows MDL conventions")
|
404
|
+
print()
|
405
|
+
|
406
|
+
# Getting Started
|
407
|
+
print_section("Getting Started")
|
408
|
+
print()
|
409
|
+
print(color.info("After creating a new project:"))
|
410
|
+
print()
|
411
|
+
print(f"1. Navigate to the project directory:")
|
412
|
+
print(f" {color.code('cd <project_name>')}")
|
413
|
+
print()
|
414
|
+
print(f"2. Edit the MDL file:")
|
415
|
+
print(f" # Edit {color.file_path('<project_name>.mdl')} with your code")
|
416
|
+
print()
|
417
|
+
print(f"3. Build the datapack:")
|
418
|
+
print(f" {color.code('mdl build --mdl <project_name>.mdl -o dist')}")
|
419
|
+
print()
|
420
|
+
print(f"4. Check for errors:")
|
421
|
+
print(f" {color.code('mdl check <project_name>.mdl')}")
|
422
|
+
print()
|
423
|
+
print(f"5. Load in Minecraft:")
|
424
|
+
print(f" # Copy the dist folder to your world's datapacks directory")
|
425
|
+
print()
|
426
|
+
|
427
|
+
# Tips
|
428
|
+
print_section("Tips")
|
429
|
+
print()
|
430
|
+
print_bullet("Use descriptive project names - They become your namespace")
|
431
|
+
print_bullet("Start with the template code - It demonstrates key MDL features")
|
432
|
+
print_bullet("Check your code regularly - Use `mdl check` during development")
|
433
|
+
print_bullet("Use version control - Git is great for tracking changes")
|
434
|
+
print_bullet("Read the documentation - Learn about all available features")
|
435
|
+
print()
|
436
|
+
|
437
|
+
# Next Steps
|
438
|
+
print_section("Next Steps")
|
439
|
+
print()
|
440
|
+
print_bullet(f"Language Reference: {color.file_path('https://www.mcmdl.com/docs/language-reference')}")
|
441
|
+
print_bullet(f"Examples: {color.file_path('https://www.mcmdl.com/docs/examples')}")
|
442
|
+
print_bullet(f"CLI Reference: {color.file_path('https://www.mcmdl.com/docs/cli-reference')}")
|
443
|
+
print()
|
444
|
+
|
445
|
+
# More Info
|
446
|
+
print(color.info(f"For more information, visit: {color.file_path('https://www.mcmdl.com/docs/cli-reference#new')}"))
|
447
|
+
print()
|
448
|
+
|
449
|
+
except ImportError:
|
450
|
+
# Fallback if colors aren't available
|
451
|
+
print("""
|
295
452
|
[NEW] MDL New Command - Create New MDL Projects
|
296
453
|
============================================
|
297
454
|
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.4
|
2
2
|
Name: minecraft-datapack-language
|
3
|
-
Version: 15.4.
|
3
|
+
Version: 15.4.10
|
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=
|
2
|
+
minecraft_datapack_language/_version.py,sha256=cN8Qz2SE9HNDCFADbKt3o7ZvmS_hj6_eJvAzyyGe6Rs,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
5
|
minecraft_datapack_language/cli_build.py,sha256=HvrQdINx8EmF4OW6IZCx_S6Rs4NZQ-eB1PSlcDMnCmA,47939
|
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=
|
8
|
+
minecraft_datapack_language/cli_help.py,sha256=UPTqSOzLFQ0YA-KLVvRmRQRKzUq6aByxfk-53J2WnRY,19242
|
9
9
|
minecraft_datapack_language/cli_new.py,sha256=_pj5EeXESAG00C80_os9jONIXAMcsu2eoR8xVJWDw6g,9347
|
10
10
|
minecraft_datapack_language/cli_utils.py,sha256=nl22j96vpCW0XRMpD_zjwamnMU4e4LXEjACsnwiFGzs,9931
|
11
11
|
minecraft_datapack_language/dir_map.py,sha256=HmxFkuvWGkzHF8o_GFb4BpuMCRc6QMw8UbmcAI8JVdY,1788
|
@@ -17,9 +17,9 @@ minecraft_datapack_language/mdl_linter.py,sha256=z85xoAglENurCh30bR7kEHZ_JeMxcYa
|
|
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
19
|
minecraft_datapack_language/utils.py,sha256=Aq0HAGlXqj9BUTEjaEilpvzEW0EtZYYMMwOqG9db6dE,684
|
20
|
-
minecraft_datapack_language-15.4.
|
21
|
-
minecraft_datapack_language-15.4.
|
22
|
-
minecraft_datapack_language-15.4.
|
23
|
-
minecraft_datapack_language-15.4.
|
24
|
-
minecraft_datapack_language-15.4.
|
25
|
-
minecraft_datapack_language-15.4.
|
20
|
+
minecraft_datapack_language-15.4.10.dist-info/licenses/LICENSE,sha256=OXLcl0T2SZ8Pmy2_dmlvKuetivmyPd5m1q-Gyd-zaYY,35149
|
21
|
+
minecraft_datapack_language-15.4.10.dist-info/METADATA,sha256=qVhn42e9bWfB6g87XbxHUCbr8OPjsfw9XlugRsmrkW0,35230
|
22
|
+
minecraft_datapack_language-15.4.10.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
23
|
+
minecraft_datapack_language-15.4.10.dist-info/entry_points.txt,sha256=c6vjBeCiyQflvPHBRyBk2nJCSfYt3Oc7Sc9V87ySi_U,108
|
24
|
+
minecraft_datapack_language-15.4.10.dist-info/top_level.txt,sha256=ADtFI476tbKLLxEAA-aJQAfg53MA3k_DOb0KTFiggfw,28
|
25
|
+
minecraft_datapack_language-15.4.10.dist-info/RECORD,,
|
{minecraft_datapack_language-15.4.9.dist-info → minecraft_datapack_language-15.4.10.dist-info}/WHEEL
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|