Skip to content
This repository was archived by the owner on Dec 8, 2025. It is now read-only.
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6,320 changes: 6,320 additions & 0 deletions mecha/resources/1_14.json

Large diffs are not rendered by default.

6,320 changes: 6,320 additions & 0 deletions mecha/resources/1_14_1.json

Large diffs are not rendered by default.

6,320 changes: 6,320 additions & 0 deletions mecha/resources/1_14_2.json

Large diffs are not rendered by default.

6,331 changes: 6,331 additions & 0 deletions mecha/resources/1_14_3.json

Large diffs are not rendered by default.

6,335 changes: 6,335 additions & 0 deletions mecha/resources/1_14_4.json

Large diffs are not rendered by default.

7,307 changes: 7,307 additions & 0 deletions mecha/resources/1_15.json

Large diffs are not rendered by default.

7,307 changes: 7,307 additions & 0 deletions mecha/resources/1_15_1.json

Large diffs are not rendered by default.

7,329 changes: 7,329 additions & 0 deletions mecha/resources/1_15_2.json

Large diffs are not rendered by default.

366 changes: 262 additions & 104 deletions mecha/resources/1_16.json

Large diffs are not rendered by default.

7,535 changes: 7,535 additions & 0 deletions mecha/resources/1_16_1.json

Large diffs are not rendered by default.

7,549 changes: 7,549 additions & 0 deletions mecha/resources/1_16_2.json

Large diffs are not rendered by default.

7,549 changes: 7,549 additions & 0 deletions mecha/resources/1_16_3.json

Large diffs are not rendered by default.

7,549 changes: 7,549 additions & 0 deletions mecha/resources/1_16_4.json

Large diffs are not rendered by default.

7,549 changes: 7,549 additions & 0 deletions mecha/resources/1_16_5.json

Large diffs are not rendered by default.

352 changes: 262 additions & 90 deletions mecha/resources/1_17.json

Large diffs are not rendered by default.

7,768 changes: 7,768 additions & 0 deletions mecha/resources/1_17_1.json

Large diffs are not rendered by default.

453 changes: 333 additions & 120 deletions mecha/resources/1_18.json

Large diffs are not rendered by default.

7,781 changes: 7,781 additions & 0 deletions mecha/resources/1_18_1.json

Large diffs are not rendered by default.

7,740 changes: 7,740 additions & 0 deletions mecha/resources/1_18_2.json

Large diffs are not rendered by default.

3,462 changes: 599 additions & 2,863 deletions mecha/resources/1_19.json

Large diffs are not rendered by default.

7,876 changes: 7,876 additions & 0 deletions mecha/resources/1_19_1.json

Large diffs are not rendered by default.

7,876 changes: 7,876 additions & 0 deletions mecha/resources/1_19_2.json

Large diffs are not rendered by default.

8,008 changes: 8,008 additions & 0 deletions mecha/resources/1_19_3.json

Large diffs are not rendered by default.

10,344 changes: 10,344 additions & 0 deletions mecha/resources/1_19_4.json

Large diffs are not rendered by default.

1,081 changes: 344 additions & 737 deletions mecha/resources/1_20.json

Large diffs are not rendered by default.

10,084 changes: 10,084 additions & 0 deletions mecha/resources/1_20_1.json

Large diffs are not rendered by default.

10,257 changes: 10,257 additions & 0 deletions mecha/resources/1_20_2.json

Large diffs are not rendered by default.

10,514 changes: 10,514 additions & 0 deletions mecha/resources/1_20_3.json

Large diffs are not rendered by default.

10,514 changes: 10,514 additions & 0 deletions mecha/resources/1_20_4.json

Large diffs are not rendered by default.

10,693 changes: 10,693 additions & 0 deletions mecha/resources/1_20_5.json

Large diffs are not rendered by default.

10,693 changes: 10,693 additions & 0 deletions mecha/resources/1_20_6.json

Large diffs are not rendered by default.

1,239 changes: 107 additions & 1,132 deletions mecha/resources/1_21.json

Large diffs are not rendered by default.

10,684 changes: 10,684 additions & 0 deletions mecha/resources/1_21_1.json

Large diffs are not rendered by default.

11,778 changes: 11,778 additions & 0 deletions mecha/resources/1_21_10.json

Large diffs are not rendered by default.

10,791 changes: 10,791 additions & 0 deletions mecha/resources/1_21_2.json

Large diffs are not rendered by default.

10,791 changes: 10,791 additions & 0 deletions mecha/resources/1_21_3.json

Large diffs are not rendered by default.

10,795 changes: 10,795 additions & 0 deletions mecha/resources/1_21_4.json

Large diffs are not rendered by default.

11,421 changes: 11,421 additions & 0 deletions mecha/resources/1_21_5.json

Large diffs are not rendered by default.

11,709 changes: 11,709 additions & 0 deletions mecha/resources/1_21_6.json

Large diffs are not rendered by default.

11,709 changes: 11,709 additions & 0 deletions mecha/resources/1_21_7.json

Large diffs are not rendered by default.

11,709 changes: 11,709 additions & 0 deletions mecha/resources/1_21_8.json

Large diffs are not rendered by default.

11,778 changes: 11,778 additions & 0 deletions mecha/resources/1_21_9.json

Large diffs are not rendered by default.

9 changes: 8 additions & 1 deletion mecha/resources/patches.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,13 @@
[
{
"versions": ["1.16", "1.17", "1.18", "1.19", "1.20", "1.21"],
"versions": [
"1.16", "1.16.1", "1.16.2", "1.16.3", "1.16.4", "1.16.5",
"1.17", "1.17.1",
"1.18", "1.18.1", "1.18.2",
"1.19", "1.19.1", "1.19.2", "1.19.3", "1.19.4",
"1.20", "1.20.1", "1.20.2", "1.20.3", "1.20.4", "1.20.5", "1.20.6",
"1.21", "1.21.1", "1.21.2", "1.21.3", "1.21.4", "1.21.5", "1.21.6", "1.21.7", "1.21.8", "1.21.9", "1.21.10"
],
"config": {
"type": "root",
"children": {
Expand Down
32 changes: 32 additions & 0 deletions scripts/generate_command_tree.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
"""
Script that downloads all commands trees from the mcmeta repository
"""

if not __name__ == "__main__":
raise RuntimeError(
"This script is not meant to be imported, run it directly to download command trees."
)

URL = "https://raw.githubusercontent.com/misode/mcmeta/refs/tags/{version}-summary/commands/data.json"

from beet.resources.pack_format_registry import pack_format_registry
from beet.core.utils import split_version
import requests
from importlib.resources import files


for version in pack_format_registry:
if version.type != "release":
continue
version_name = "_".join(map(str, split_version(version.id)))
try:
r = requests.get(URL.format(version=version.id))
r.raise_for_status()
path = str(files("mecha.resources").joinpath(f"{version_name}.json"))

with open(path, "w") as f:
f.write(r.text)
except BaseException as e:
print(f"Failed to download command tree for version {version_name}.")
print(f"Error: {e}")
continue
2 changes: 1 addition & 1 deletion tests/snapshots/examples__build_basic_1_18__0.pack.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
```json
{
"pack": {
"pack_format": 9,
"pack_format": 8,
"description": ""
}
}
Expand Down
9 changes: 8 additions & 1 deletion tests/snapshots/examples__build_basic_1_20__0.pack.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,14 @@
```json
{
"pack": {
"pack_format": 48,
"min_format": [
88,
0
],
"max_format": [
88,
0
],
"description": ""
}
}
Expand Down
9 changes: 8 additions & 1 deletion tests/snapshots/examples__build_basic_1_21_8__0.pack.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,14 @@
```json
{
"pack": {
"pack_format": 48,
"min_format": [
88,
0
],
"max_format": [
88,
0
],
"description": ""
}
}
Expand Down
9 changes: 8 additions & 1 deletion tests/snapshots/examples__build_basic__0.pack.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,14 @@
```json
{
"pack": {
"pack_format": 48,
"min_format": [
88,
0
],
"max_format": [
88,
0
],
"description": ""
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,14 @@
```json
{
"pack": {
"pack_format": 48,
"min_format": [
88,
0
],
"max_format": [
88,
0
],
"description": ""
}
}
Expand Down
9 changes: 8 additions & 1 deletion tests/snapshots/examples__build_basic_bake_macros__0.pack.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,14 @@
```json
{
"pack": {
"pack_format": 48,
"min_format": [
88,
0
],
"max_format": [
88,
0
],
"description": ""
}
}
Expand Down
9 changes: 8 additions & 1 deletion tests/snapshots/examples__build_basic_debug__0.pack.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,14 @@
```json
{
"pack": {
"pack_format": 48,
"min_format": [
88,
0
],
"max_format": [
88,
0
],
"description": ""
}
}
Expand Down
9 changes: 8 additions & 1 deletion tests/snapshots/examples__build_basic_embed__0.pack.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,14 @@
```json
{
"pack": {
"pack_format": 48,
"min_format": [
88,
0
],
"max_format": [
88,
0
],
"description": ""
}
}
Expand Down
9 changes: 8 additions & 1 deletion tests/snapshots/examples__build_basic_formatting__0.pack.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,14 @@
```json
{
"pack": {
"pack_format": 48,
"min_format": [
88,
0
],
"max_format": [
88,
0
],
"description": ""
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,14 @@
```json
{
"pack": {
"pack_format": 48,
"min_format": [
88,
0
],
"max_format": [
88,
0
],
"description": ""
}
}
Expand Down
9 changes: 8 additions & 1 deletion tests/snapshots/examples__build_basic_json__0.pack.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,14 @@
```json
{
"pack": {
"pack_format": 48,
"min_format": [
88,
0
],
"max_format": [
88,
0
],
"description": ""
}
}
Expand Down
9 changes: 8 additions & 1 deletion tests/snapshots/examples__build_basic_lint__0.pack.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,14 @@
```json
{
"pack": {
"pack_format": 48,
"min_format": [
88,
0
],
"max_format": [
88,
0
],
"description": ""
}
}
Expand Down
9 changes: 8 additions & 1 deletion tests/snapshots/examples__build_basic_macro_line__0.pack.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,14 @@
```json
{
"pack": {
"pack_format": 48,
"min_format": [
88,
0
],
"max_format": [
88,
0
],
"description": ""
}
}
Expand Down
9 changes: 8 additions & 1 deletion tests/snapshots/examples__build_basic_messages__0.pack.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,14 @@
```json
{
"pack": {
"pack_format": 48,
"min_format": [
88,
0
],
"max_format": [
88,
0
],
"description": ""
}
}
Expand Down
9 changes: 8 additions & 1 deletion tests/snapshots/examples__build_basic_multiline__0.pack.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,14 @@
```json
{
"pack": {
"pack_format": 48,
"min_format": [
88,
0
],
"max_format": [
88,
0
],
"description": ""
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,14 @@
```json
{
"pack": {
"pack_format": 48,
"min_format": [
88,
0
],
"max_format": [
88,
0
],
"description": ""
}
}
Expand Down
18 changes: 16 additions & 2 deletions tests/snapshots/examples__build_basic_nested_resources__0.pack.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,14 @@
```json
{
"pack": {
"pack_format": 48,
"min_format": [
88,
0
],
"max_format": [
88,
0
],
"description": ""
}
}
Expand Down Expand Up @@ -59,7 +66,14 @@ say world
```json
{
"pack": {
"pack_format": 34,
"min_format": [
69,
0
],
"max_format": [
69,
0
],
"description": ""
}
}
Expand Down
9 changes: 8 additions & 1 deletion tests/snapshots/examples__build_basic_nested_test__0.pack.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,14 @@
```json
{
"pack": {
"pack_format": 48,
"min_format": [
88,
0
],
"max_format": [
88,
0
],
"description": ""
}
}
Expand Down
9 changes: 8 additions & 1 deletion tests/snapshots/examples__build_basic_nested_yaml__0.pack.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,14 @@
```json
{
"pack": {
"pack_format": 48,
"min_format": [
88,
0
],
"max_format": [
88,
0
],
"description": ""
}
}
Expand Down
9 changes: 8 additions & 1 deletion tests/snapshots/examples__build_basic_nesting__0.pack.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,14 @@
```json
{
"pack": {
"pack_format": 48,
"min_format": [
88,
0
],
"max_format": [
88,
0
],
"description": ""
}
}
Expand Down
9 changes: 8 additions & 1 deletion tests/snapshots/examples__build_basic_overlay__0.pack.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,14 @@
```json
{
"pack": {
"pack_format": 48,
"min_format": [
88,
0
],
"max_format": [
88,
0
],
"description": ""
}
}
Expand Down
Loading
Loading