-
-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: render pack name and description with jinja
- Loading branch information
Showing
12 changed files
with
76 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
{ | ||
"name": "thing", | ||
"version": "1.2.3", | ||
"description": "Something cool", | ||
"data_pack": { | ||
"description": [ | ||
{ "text": "{{ project_name | capitalize }} ", "color": "#9273ff" }, | ||
{ "text": "v{{ project_version }}\n", "color": "#66c546" }, | ||
{ "text": "{{ project_description }}", "color": "#00aced" } | ||
], | ||
"load": ["src"] | ||
} | ||
} |
1 change: 1 addition & 0 deletions
1
examples/load_render_description/src/data/demo/functions/foo.mcfunction
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
say hello |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
{ | ||
"name": "thing", | ||
"version": "1.2.3", | ||
"data_pack": { | ||
"name": "{{ project_name | capitalize }} {{ project_version }}", | ||
"load": ["src"] | ||
} | ||
} |
1 change: 1 addition & 0 deletions
1
examples/load_render_name/src/data/demo/functions/foo.mcfunction
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
say hello |
1 change: 1 addition & 0 deletions
1
...s/examples__build_load_render_description__0.data_pack/data/demo/functions/foo.mcfunction
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
say hello |
19 changes: 19 additions & 0 deletions
19
tests/snapshots/examples__build_load_render_description__0.data_pack/pack.mcmeta
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
{ | ||
"pack": { | ||
"pack_format": 6, | ||
"description": [ | ||
{ | ||
"text": "Thing ", | ||
"color": "#9273ff" | ||
}, | ||
{ | ||
"text": "v1.2.3\n", | ||
"color": "#66c546" | ||
}, | ||
{ | ||
"text": "Something cool", | ||
"color": "#00aced" | ||
} | ||
] | ||
} | ||
} |
6 changes: 6 additions & 0 deletions
6
tests/snapshots/examples__build_load_render_description__1.resource_pack/pack.mcmeta
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
{ | ||
"pack": { | ||
"pack_format": 6, | ||
"description": "Something cool\nVersion: 1.2.3" | ||
} | ||
} |
1 change: 1 addition & 0 deletions
1
...napshots/examples__build_load_render_name__0.data_pack/data/demo/functions/foo.mcfunction
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
say hello |
6 changes: 6 additions & 0 deletions
6
tests/snapshots/examples__build_load_render_name__0.data_pack/pack.mcmeta
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
{ | ||
"pack": { | ||
"pack_format": 6, | ||
"description": "Version: 1.2.3" | ||
} | ||
} |
6 changes: 6 additions & 0 deletions
6
tests/snapshots/examples__build_load_render_name__1.resource_pack/pack.mcmeta
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
{ | ||
"pack": { | ||
"pack_format": 6, | ||
"description": "Version: 1.2.3" | ||
} | ||
} |