Skip to content

Commit 4650e6c

Browse files
committed
Move list to beet.yaml
1 parent 0d2b388 commit 4650e6c

File tree

2 files changed

+10
-14
lines changed

2 files changed

+10
-14
lines changed

gm4_lavish_livestock/beet.yaml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,14 @@ pipeline:
1616
- gm4.plugins.extend.module
1717

1818
meta:
19+
animals:
20+
- chicken
21+
- cow
22+
- hoglin
23+
- mooshroom
24+
- pig
25+
- rabbit
26+
- sheep
1927
gm4:
2028
versioning:
2129
schedule_loops: []

gm4_lavish_livestock/generate.py

Lines changed: 2 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -5,21 +5,9 @@
55
logger = logging.getLogger(__name__)
66

77
def beet_default(ctx: Context):
8-
# List of supported entities
9-
# This list is defined in 2 other places, translations.csv and the guidebook
10-
entity_ids = [
11-
"chicken",
12-
"cow",
13-
"hoglin",
14-
"mooshroom",
15-
"pig",
16-
"rabbit",
17-
"sheep"
18-
]
19-
ctx.meta['animals'] = entity_ids
20-
8+
# List of supported animals defined in beet.yaml as well as the guidebook page
219
# for each supported entity, render a copy of the "templates" directory with the appropriate entity-id
22-
for entity in entity_ids:
10+
for entity in ctx.meta['animals']:
2311
subproject_config = {
2412
"data_pack": {
2513
"load": [

0 commit comments

Comments
 (0)