-
-
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.
fix: make it possible to use text components and override the descrip…
…tion in plugins
- Loading branch information
Showing
9 changed files
with
72 additions
and
17 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
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,3 @@ | ||
{ | ||
"pipeline": ["demo"] | ||
} |
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,10 @@ | ||
from beet import Context | ||
|
||
|
||
def beet_default(ctx: Context): | ||
ctx.project_name = "something_else" | ||
ctx.project_description = {"text": "bold description", "bold": True} | ||
ctx.project_author = "Fizzy" | ||
ctx.project_version = "1.2.3" | ||
|
||
ctx.data.description = ["override for ", {"text": "data pack", "color": "red"}] |
12 changes: 12 additions & 0 deletions
12
.../examples__build_code_description__0.data_pack/something_else_1.2.3_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,12 @@ | ||
{ | ||
"pack": { | ||
"pack_format": 6, | ||
"description": [ | ||
"override for ", | ||
{ | ||
"text": "data pack", | ||
"color": "red" | ||
} | ||
] | ||
} | ||
} |
13 changes: 13 additions & 0 deletions
13
...s__build_code_description__1.resource_pack/something_else_1.2.3_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,13 @@ | ||
{ | ||
"pack": { | ||
"pack_format": 6, | ||
"description": [ | ||
{ | ||
"text": "bold description", | ||
"bold": true | ||
}, | ||
"\n", | ||
"Author: Fizzy\nVersion: 1.2.3" | ||
] | ||
} | ||
} |