Skip to content

Commit adcef9c

Browse files
committed
docs(wiki): add tags data to wiki
1 parent c576203 commit adcef9c

File tree

97 files changed

+1768
-1
lines changed

Some content is hidden

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

97 files changed

+1768
-1
lines changed

build.gradle

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -335,3 +335,45 @@ wiki {
335335
}
336336
}
337337
//TODO: install https://github.com/Sinytra/WikiDataExporter when on minecraft 1.21.1
338+
339+
tasks.register("cleanWikiData") {
340+
def root = file("docs/.data")
341+
342+
doLast {
343+
root.listFiles()?.each { namespaceFolder ->
344+
if (namespaceFolder.isDirectory()) {
345+
def tagsFolder = new File(namespaceFolder, "tags")
346+
if (tagsFolder.exists()) {
347+
if (!tagsFolder.deleteDir()) {
348+
throw new GradleException("Failed to delete folder: $tagsFolder")
349+
}
350+
}
351+
if (namespaceFolder.listFiles()?.length == 0) {
352+
if (!namespaceFolder.delete()) {
353+
throw new GradleException("Failed to delete folder: $namespaceFolder")
354+
}
355+
}
356+
}
357+
}
358+
}
359+
}
360+
361+
tasks.register("copyDataToWiki", Copy) {
362+
dependsOn("cleanWikiData")
363+
364+
def outputFolder = file("docs/.data")
365+
includeEmptyDirs = false
366+
367+
from("build/resources/main/data") {
368+
include("**/tags/**/*.json")
369+
}
370+
into(outputFolder)
371+
}
372+
373+
tasks.named("runData") {
374+
finalizedBy("copyDataToWiki")
375+
}
376+
377+
legacyForge {
378+
ideSyncTask tasks.named("copyDataToWiki")
379+
}
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"values": [
3+
"biomancy:primordial_flesh_blob",
4+
"biomancy:primordial_hungry_flesh_blob",
5+
"biomancy:flesh_chicken"
6+
]
7+
}
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"values": [
3+
"biomancy:mascot_base",
4+
"biomancy:mascot_accent",
5+
"biomancy:mascot_outline"
6+
]
7+
}
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
{
2+
"values": [
3+
"#minecraft:leaves",
4+
"minecraft:moss_block",
5+
"minecraft:moss_carpet",
6+
"minecraft:vine",
7+
"#minecraft:flowers"
8+
]
9+
}
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
{
2+
"values": [
3+
"#minecraft:leaves",
4+
"#minecraft:fences",
5+
"#minecraft:fence_gates",
6+
"#minecraft:anvil",
7+
"minecraft:bell"
8+
]
9+
}
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"values": [
3+
"minecraft:dirt_path",
4+
"minecraft:farmland",
5+
"minecraft:vine"
6+
]
7+
}
Lines changed: 78 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,78 @@
1+
{
2+
"values": [
3+
"biomancy:malignant_flesh_veins",
4+
"biomancy:malignant_flesh",
5+
"biomancy:malignant_flesh_slab",
6+
"biomancy:malignant_flesh_stairs",
7+
"biomancy:malignant_flesh_wall",
8+
"biomancy:primal_bloom",
9+
"biomancy:bloomlight",
10+
"biomancy:primal_orifice",
11+
"biomancy:primal_permeable_membrane",
12+
"biomancy:primal_permeable_membrane_pane",
13+
"biomancy:primal_flesh",
14+
"biomancy:primal_flesh_slab",
15+
"biomancy:primal_flesh_stairs",
16+
"biomancy:primal_flesh_wall",
17+
"biomancy:smooth_primal_flesh",
18+
"biomancy:smooth_primal_flesh_slab",
19+
"biomancy:smooth_primal_flesh_stairs",
20+
"biomancy:smooth_primal_flesh_wall",
21+
"biomancy:fibrous_primal_flesh",
22+
"biomancy:fibrous_primal_flesh_slab",
23+
"biomancy:fibrous_primal_flesh_stairs",
24+
"biomancy:fibrous_primal_flesh_wall",
25+
"biomancy:porous_primal_flesh",
26+
"biomancy:porous_primal_flesh_slab",
27+
"biomancy:porous_primal_flesh_stairs",
28+
"biomancy:porous_primal_flesh_wall",
29+
"#minecraft:leaves",
30+
"#minecraft:saplings",
31+
"#minecraft:flowers",
32+
"#minecraft:crops",
33+
"#minecraft:cave_vines",
34+
"minecraft:grass",
35+
"minecraft:fern",
36+
"minecraft:dead_bush",
37+
"minecraft:vine",
38+
"minecraft:glow_lichen",
39+
"minecraft:tall_grass",
40+
"minecraft:large_fern",
41+
"minecraft:hanging_roots",
42+
"minecraft:moss_block",
43+
"minecraft:moss_carpet",
44+
"minecraft:spore_blossom",
45+
"minecraft:pumpkin",
46+
"minecraft:carved_pumpkin",
47+
"minecraft:jack_o_lantern",
48+
"minecraft:melon",
49+
"minecraft:attached_pumpkin_stem",
50+
"minecraft:attached_melon_stem",
51+
"minecraft:sugar_cane",
52+
"minecraft:cocoa",
53+
"minecraft:sweet_berry_bush",
54+
"minecraft:big_dripleaf",
55+
"minecraft:big_dripleaf_stem",
56+
"minecraft:small_dripleaf",
57+
"minecraft:lily_pad",
58+
"minecraft:brown_mushroom",
59+
"minecraft:brown_mushroom_block",
60+
"minecraft:red_mushroom",
61+
"minecraft:red_mushroom_block",
62+
"minecraft:mushroom_stem",
63+
"minecraft:nether_wart",
64+
"minecraft:warped_fungus",
65+
"minecraft:warped_roots",
66+
"minecraft:nether_sprouts",
67+
"minecraft:crimson_fungus",
68+
"minecraft:weeping_vines",
69+
"minecraft:weeping_vines_plant",
70+
"minecraft:twisting_vines",
71+
"minecraft:twisting_vines_plant",
72+
"minecraft:crimson_roots",
73+
"minecraft:seagrass",
74+
"minecraft:tall_seagrass",
75+
"minecraft:chorus_plant",
76+
"minecraft:chorus_flower"
77+
]
78+
}
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"values": [
3+
"biomancy:primal_bloom",
4+
"biomancy:primal_permeable_membrane"
5+
]
6+
}

0 commit comments

Comments
 (0)