minecraft-datapack-language 17.0.11__py3-none-any.whl → 17.0.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.
- minecraft_datapack_language/_embedded/docs/_data/version.yml +3 -3
- minecraft_datapack_language/_embedded/docs/_docs/cli-reference.md +52 -4
- minecraft_datapack_language/_version.py +2 -2
- minecraft_datapack_language/cli.py +18 -4
- {minecraft_datapack_language-17.0.11.dist-info → minecraft_datapack_language-17.0.13.dist-info}/METADATA +1 -1
- {minecraft_datapack_language-17.0.11.dist-info → minecraft_datapack_language-17.0.13.dist-info}/RECORD +10 -10
- {minecraft_datapack_language-17.0.11.dist-info → minecraft_datapack_language-17.0.13.dist-info}/WHEEL +0 -0
- {minecraft_datapack_language-17.0.11.dist-info → minecraft_datapack_language-17.0.13.dist-info}/entry_points.txt +0 -0
- {minecraft_datapack_language-17.0.11.dist-info → minecraft_datapack_language-17.0.13.dist-info}/licenses/LICENSE +0 -0
- {minecraft_datapack_language-17.0.11.dist-info → minecraft_datapack_language-17.0.13.dist-info}/top_level.txt +0 -0
@@ -1,3 +1,3 @@
|
|
1
|
-
current: "17.0.
|
2
|
-
tag: "v17.0.
|
3
|
-
updated_at: "2025-09-
|
1
|
+
current: "17.0.11"
|
2
|
+
tag: "v17.0.11"
|
3
|
+
updated_at: "2025-09-11T00:02:50Z"
|
@@ -124,16 +124,24 @@ mdl new adventure_map
|
|
124
124
|
mdl new projects/survival_plus
|
125
125
|
```
|
126
126
|
|
127
|
-
**What it creates:**
|
128
|
-
The new command generates a
|
127
|
+
**What it creates (by default):**
|
128
|
+
The new command generates a project structure with:
|
129
129
|
- `README.md` - Quick start with build instructions
|
130
130
|
- `main.mdl` - Hello world (pack, namespace, simple function, on_load)
|
131
|
+
- `docs/` - A literal copy of the MDL documentation for offline/local browsing
|
132
|
+
- `serve_docs.sh` and `serve_docs.ps1` - Convenience scripts to serve docs locally
|
131
133
|
|
132
|
-
**Generated project structure:**
|
134
|
+
**Generated project structure (default):**
|
133
135
|
```
|
134
136
|
my_awesome_pack/
|
135
137
|
├── README.md
|
136
|
-
|
138
|
+
├── main.mdl
|
139
|
+
├── docs/
|
140
|
+
│ ├── index.md
|
141
|
+
│ ├── _config.yml
|
142
|
+
│ └── ...
|
143
|
+
├── serve_docs.sh
|
144
|
+
└── serve_docs.ps1
|
137
145
|
```
|
138
146
|
|
139
147
|
**Template content includes:**
|
@@ -167,6 +175,46 @@ my_awesome_pack/
|
|
167
175
|
| Option | Description | Example |
|
168
176
|
|--------|-------------|---------|
|
169
177
|
| `<project_name>` | Name of the new project to create | `mdl new my_pack` |
|
178
|
+
| `--pack-name <name>` | Override datapack name used in `pack.mcmeta` | `--pack-name Adventure` |
|
179
|
+
| `--pack-format <num>` | Pack format number (defaults to modern value) | `--pack-format 82` |
|
180
|
+
| `--output <dir>` | Directory to create the project in | `--output ./projects` |
|
181
|
+
| `--exclude-local-docs` | Do not copy the MDL docs into `docs/` | `--exclude-local-docs` |
|
182
|
+
|
183
|
+
By default, `mdl new` includes a full `docs/` folder in your project so new users have local docs offline. Use `--exclude-local-docs` to skip this step.
|
184
|
+
|
185
|
+
Serve the docs quickly with the generated scripts:
|
186
|
+
|
187
|
+
```bash
|
188
|
+
# Bash/Git Bash
|
189
|
+
./serve_docs.sh
|
190
|
+
|
191
|
+
# PowerShell
|
192
|
+
./serve_docs.ps1
|
193
|
+
```
|
194
|
+
|
195
|
+
Both scripts prefer Jekyll (if `bundle` and a `Gemfile` are present), otherwise they fall back to a simple Python web server.
|
196
|
+
|
197
|
+
You can also serve docs via the CLI:
|
198
|
+
|
199
|
+
```bash
|
200
|
+
mdl docs serve --dir docs --port 8000
|
201
|
+
```
|
202
|
+
|
203
|
+
This starts a local web server for the `docs/` directory.
|
204
|
+
|
205
|
+
## Completion Command
|
206
|
+
|
207
|
+
Install shell autocompletion so you can type `mdl bui<Tab>` and get `build`:
|
208
|
+
|
209
|
+
```bash
|
210
|
+
mdl completion install # auto-detects your shell
|
211
|
+
mdl completion install bash # explicit shell
|
212
|
+
mdl completion uninstall zsh # remove
|
213
|
+
mdl completion print fish # print script for manual use/CI
|
214
|
+
mdl completion doctor # basic diagnostics
|
215
|
+
```
|
216
|
+
|
217
|
+
Supported shells: Bash (incl. Git Bash), Zsh, Fish, and PowerShell.
|
170
218
|
|
171
219
|
## Error Handling
|
172
220
|
|
@@ -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 = '17.0.
|
32
|
-
__version_tuple__ = version_tuple = (17, 0,
|
31
|
+
__version__ = version = '17.0.13'
|
32
|
+
__version_tuple__ = version_tuple = (17, 0, 13)
|
33
33
|
|
34
34
|
__commit_id__ = commit_id = None
|
@@ -92,11 +92,11 @@ Examples:
|
|
92
92
|
return 0
|
93
93
|
|
94
94
|
if not args.command:
|
95
|
+
parser.print_help()
|
96
|
+
print("")
|
95
97
|
print("Tip: Create a new project with: mdl new <project_name>")
|
96
98
|
print(" After creating a project, you can serve local docs with: mdl docs serve --dir docs")
|
97
99
|
print(" Or run the generated scripts: ./serve_docs.sh (bash) or ./serve_docs.ps1 (PowerShell)")
|
98
|
-
print("")
|
99
|
-
parser.print_help()
|
100
100
|
return 0
|
101
101
|
|
102
102
|
try:
|
@@ -366,6 +366,7 @@ def copy_packaged_docs_into(project_dir: Path) -> bool:
|
|
366
366
|
Raises FileExistsError if destination exists.
|
367
367
|
"""
|
368
368
|
embedded_root = importlib_resources_files("minecraft_datapack_language").joinpath("_embedded", "docs")
|
369
|
+
embedded_site = importlib_resources_files("minecraft_datapack_language").joinpath("_embedded", "docs_site")
|
369
370
|
try:
|
370
371
|
# Some importlib.resources implementations require as_file for files; for dirs, check existence
|
371
372
|
if not Path(str(embedded_root)).exists():
|
@@ -373,10 +374,19 @@ def copy_packaged_docs_into(project_dir: Path) -> bool:
|
|
373
374
|
except Exception:
|
374
375
|
return False
|
375
376
|
|
377
|
+
# Copy raw docs
|
376
378
|
dest = project_dir / "docs"
|
377
379
|
if dest.exists():
|
378
380
|
raise FileExistsError("docs directory already exists")
|
379
381
|
shutil.copytree(str(embedded_root), str(dest))
|
382
|
+
# Copy prebuilt HTML site if available
|
383
|
+
try:
|
384
|
+
if Path(str(embedded_site)).exists():
|
385
|
+
site_dest = project_dir / "docs_site"
|
386
|
+
if not site_dest.exists():
|
387
|
+
shutil.copytree(str(embedded_site), str(site_dest))
|
388
|
+
except Exception:
|
389
|
+
pass
|
380
390
|
return True
|
381
391
|
|
382
392
|
|
@@ -386,7 +396,10 @@ def create_docs_serve_scripts(project_dir: Path) -> None:
|
|
386
396
|
bash_script.write_text("""#!/usr/bin/env bash
|
387
397
|
set -e
|
388
398
|
PORT=${PORT:-8000}
|
389
|
-
DIR=${1:-
|
399
|
+
DIR=${1:-}
|
400
|
+
if [ -z "$DIR" ]; then
|
401
|
+
if [ -d docs_site ]; then DIR=docs_site; else DIR=docs; fi
|
402
|
+
fi
|
390
403
|
if [ ! -d "$DIR" ]; then
|
391
404
|
echo "Error: docs directory '$DIR' not found"; exit 1
|
392
405
|
fi
|
@@ -406,8 +419,9 @@ fi
|
|
406
419
|
ps1_script.write_text("""
|
407
420
|
param(
|
408
421
|
[int]$Port = 8000,
|
409
|
-
[string]$Dir = "
|
422
|
+
[string]$Dir = ""
|
410
423
|
)
|
424
|
+
if (-not $Dir) { if (Test-Path 'docs_site') { $Dir = 'docs_site' } else { $Dir = 'docs' } }
|
411
425
|
if (-not (Test-Path $Dir)) { Write-Host "Error: docs directory '$Dir' not found"; exit 1 }
|
412
426
|
# Prefer Jekyll if available and Gemfile exists
|
413
427
|
$gemfile = (Test-Path (Join-Path $Dir 'Gemfile')) -or (Test-Path 'Gemfile')
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.4
|
2
2
|
Name: minecraft-datapack-language
|
3
|
-
Version: 17.0.
|
3
|
+
Version: 17.0.13
|
4
4
|
Summary: Compile MDL language with explicit scoping 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,7 +1,7 @@
|
|
1
1
|
minecraft_datapack_language/__init__.py,sha256=0KVXBE4ScRaRUrf83aA2tVB-y8A_jplyaxVvtHH6Uw0,1199
|
2
|
-
minecraft_datapack_language/_version.py,sha256=
|
2
|
+
minecraft_datapack_language/_version.py,sha256=GPSstnQDn_-Sa-bWyjdBVUBYrZ2l-Pj6XNIJ0_QZ0KA,708
|
3
3
|
minecraft_datapack_language/ast_nodes.py,sha256=L5izavSeXDr766vsfRvJrcnflXNJyXcy0WSfyJPq2ZA,4484
|
4
|
-
minecraft_datapack_language/cli.py,sha256=
|
4
|
+
minecraft_datapack_language/cli.py,sha256=PY_89LAZVpYWOZb7HGfkpKWNM1-LqpYRcuosRRL-Y_k,23203
|
5
5
|
minecraft_datapack_language/dir_map.py,sha256=HmxFkuvWGkzHF8o_GFb4BpuMCRc6QMw8UbmcAI8JVdY,1788
|
6
6
|
minecraft_datapack_language/mdl_compiler.py,sha256=Cs3fXtIAG4_Johp7h3BeYOs9RNUogkvYsR8Dvt7Ek1E,70720
|
7
7
|
minecraft_datapack_language/mdl_errors.py,sha256=r0Gu3KhoX1YLPAVW_iO7Q_fPgaf_Dv9tOGSOdKNSzmw,16114
|
@@ -17,8 +17,8 @@ minecraft_datapack_language/_embedded/docs/_config.yml,sha256=wx1F7KonP5t0fvF8ow
|
|
17
17
|
minecraft_datapack_language/_embedded/docs/docs.md,sha256=odOG-EryTrvQFaAEbcqEbtqmPVR1xzQQf5Yc0S0zwFY,4042
|
18
18
|
minecraft_datapack_language/_embedded/docs/downloads.md,sha256=Lp4ShcqCuDoGypswm5sGYORCOYVwGDmVLEz-5NyKndQ,10250
|
19
19
|
minecraft_datapack_language/_embedded/docs/index.md,sha256=lyUqzvaeQhTZdir_6lpEMExWBUFlLcti7KoJVzQ_57Q,9855
|
20
|
-
minecraft_datapack_language/_embedded/docs/_data/version.yml,sha256=
|
21
|
-
minecraft_datapack_language/_embedded/docs/_docs/cli-reference.md,sha256=
|
20
|
+
minecraft_datapack_language/_embedded/docs/_data/version.yml,sha256=BR5CMdoU-1_4u_Sz5hoFLflEucNupYJoLRn0mb7zZ28,70
|
21
|
+
minecraft_datapack_language/_embedded/docs/_docs/cli-reference.md,sha256=yrZW8pp6T124XCUKuG-59S5YDY0WevaIQ7SwfXQ_Irw,11922
|
22
22
|
minecraft_datapack_language/_embedded/docs/_docs/contributing.md,sha256=Qs-AHky6G9P4L0siMg3l9dAO8I8AzSGW-htEaM_C-Gg,9434
|
23
23
|
minecraft_datapack_language/_embedded/docs/_docs/docs-hub.md,sha256=b0oyaoYkEeKOjG2bRWm4MUnrd03tznKPcECIkhS1sUw,7464
|
24
24
|
minecraft_datapack_language/_embedded/docs/_docs/documentation.md,sha256=zVpFf5X-fLAd7QDOK5x4Nk546vgJr7dw5XGyXCrUw5w,4074
|
@@ -48,9 +48,9 @@ minecraft_datapack_language/completions/mdl.bash,sha256=mlRdQ1PwoFwl7Fw5j7u0mhsN
|
|
48
48
|
minecraft_datapack_language/completions/mdl.fish,sha256=ReWjaqUwjQni-hUZfVQG2CsI5fE7uJpoywiKrQhtcFw,1923
|
49
49
|
minecraft_datapack_language/completions/mdl.ps1,sha256=b2A1sFCtY23sv1-LILhPu0lphnZqzVjl__AtvCUMWtU,1744
|
50
50
|
minecraft_datapack_language/completions/mdl.zsh,sha256=Pdx6yuSFaK2-UIsriVoJJacuWnw2f9DOWrVhPJLBAwo,633
|
51
|
-
minecraft_datapack_language-17.0.
|
52
|
-
minecraft_datapack_language-17.0.
|
53
|
-
minecraft_datapack_language-17.0.
|
54
|
-
minecraft_datapack_language-17.0.
|
55
|
-
minecraft_datapack_language-17.0.
|
56
|
-
minecraft_datapack_language-17.0.
|
51
|
+
minecraft_datapack_language-17.0.13.dist-info/licenses/LICENSE,sha256=OXLcl0T2SZ8Pmy2_dmlvKuetivmyPd5m1q-Gyd-zaYY,35149
|
52
|
+
minecraft_datapack_language-17.0.13.dist-info/METADATA,sha256=OziLRMkb_tobvTT69PSWoD5PdB4HTBQBWLJwtkhM9yM,8418
|
53
|
+
minecraft_datapack_language-17.0.13.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
54
|
+
minecraft_datapack_language-17.0.13.dist-info/entry_points.txt,sha256=c6vjBeCiyQflvPHBRyBk2nJCSfYt3Oc7Sc9V87ySi_U,108
|
55
|
+
minecraft_datapack_language-17.0.13.dist-info/top_level.txt,sha256=ADtFI476tbKLLxEAA-aJQAfg53MA3k_DOb0KTFiggfw,28
|
56
|
+
minecraft_datapack_language-17.0.13.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|