Skip to content

Commit 0f082da

Browse files
committed
docs(wiki): add recipe data export
1 parent adcef9c commit 0f082da

File tree

788 files changed

+17688
-78
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

788 files changed

+17688
-78
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ build
2323

2424
# generated data
2525
/src/generated/resources/.cache/
26+
/src/generated/resources/.wiki_data/
2627

2728
# other
2829
run

build.gradle

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ sourceSets {
3131
resources {
3232
srcDir('src/generated/resources') // include resources generated by data generators
3333
exclude('.cache/') // exclude cache from data gen
34+
exclude(".wiki_data/") // exclude data gen for wiki
3435
}
3536
}
3637
datagen {}
@@ -348,6 +349,14 @@ tasks.register("cleanWikiData") {
348349
throw new GradleException("Failed to delete folder: $tagsFolder")
349350
}
350351
}
352+
353+
def recipeFolder = new File(namespaceFolder, "recipe")
354+
if (recipeFolder.exists()) {
355+
if (!recipeFolder.deleteDir()) {
356+
throw new GradleException("Failed to delete folder: $recipeFolder")
357+
}
358+
}
359+
351360
if (namespaceFolder.listFiles()?.length == 0) {
352361
if (!namespaceFolder.delete()) {
353362
throw new GradleException("Failed to delete folder: $namespaceFolder")
@@ -359,6 +368,7 @@ tasks.register("cleanWikiData") {
359368
}
360369

361370
tasks.register("copyDataToWiki", Copy) {
371+
dependsOn("runData")
362372
dependsOn("cleanWikiData")
363373

364374
def outputFolder = file("docs/.data")
@@ -367,6 +377,7 @@ tasks.register("copyDataToWiki", Copy) {
367377
from("build/resources/main/data") {
368378
include("**/tags/**/*.json")
369379
}
380+
from("src/generated/resources/.wiki_data")
370381
into(outputFolder)
371382
}
372383

@@ -376,4 +387,4 @@ tasks.named("runData") {
376387

377388
legacyForge {
378389
ideSyncTask tasks.named("copyDataToWiki")
379-
}
390+
}
640 Bytes
Loading
402 Bytes
Loading
513 Bytes
Loading
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
{
2+
"type": "biomancy:bio_brewing",
3+
"input": {
4+
"0": {
5+
"item": "biomancy:exotic_compound"
6+
},
7+
"1": {
8+
"item": "biomancy:healing_additive"
9+
},
10+
"2": {
11+
"item": "biomancy:exotic_dust"
12+
},
13+
"3": {
14+
"item": "biomancy:mineral_fragment"
15+
}
16+
},
17+
"output": {
18+
"0": {
19+
"item": "biomancy:absorption_boost"
20+
}
21+
}
22+
}
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
{
2+
"type": "biomancy:bio_brewing",
3+
"input": {
4+
"0": {
5+
"item": "biomancy:genetic_compound"
6+
},
7+
"1": {
8+
"item": "biomancy:nutrient_paste"
9+
},
10+
"2": {
11+
"item": "biomancy:mineral_fragment"
12+
},
13+
"3": {
14+
"item": "biomancy:decaying_additive"
15+
}
16+
},
17+
"output": {
18+
"0": {
19+
"item": "biomancy:ageing_serum"
20+
}
21+
}
22+
}
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
{
2+
"type": "biomancy:bio_brewing",
3+
"input": {
4+
"0": {
5+
"item": "biomancy:genetic_compound"
6+
},
7+
"1": {
8+
"item": "biomancy:nutrient_paste"
9+
},
10+
"2": {
11+
"tag": "minecraft:flowers"
12+
},
13+
"3": {
14+
"item": "biomancy:hormone_secretion"
15+
},
16+
"4": {
17+
"item": "minecraft:cocoa_beans"
18+
}
19+
},
20+
"output": {
21+
"0": {
22+
"item": "biomancy:breeding_stimulant"
23+
}
24+
}
25+
}
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
{
2+
"type": "biomancy:bio_brewing",
3+
"input": {
4+
"0": {
5+
"item": "biomancy:exotic_compound"
6+
},
7+
"1": {
8+
"item": "biomancy:decaying_additive"
9+
},
10+
"2": {
11+
"item": "biomancy:healing_additive"
12+
}
13+
},
14+
"output": {
15+
"0": {
16+
"item": "biomancy:cleansing_serum"
17+
}
18+
}
19+
}
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
{
2+
"type": "biomancy:bio_brewing",
3+
"input": {
4+
"0": {
5+
"item": "biomancy:organic_compound"
6+
},
7+
"1": {
8+
"item": "biomancy:withering_ooze"
9+
},
10+
"2": {
11+
"item": "biomancy:withering_ooze"
12+
}
13+
},
14+
"output": {
15+
"0": {
16+
"item": "biomancy:decaying_additive"
17+
}
18+
}
19+
}

0 commit comments

Comments
 (0)