Skip to content

Commit

Permalink
Make advancements not all challenges. Closes #21
Browse files Browse the repository at this point in the history
  • Loading branch information
JT122406 committed Aug 1, 2024
1 parent f090652 commit 4e74337
Show file tree
Hide file tree
Showing 10 changed files with 19 additions and 21 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
"description": {
"translate": "advancements.biomeswevegone.adventure.inside_quicksand.description"
},
"frame": "challenge",
"frame": "task",
"hidden": false,
"icon": {
"item": "biomeswevegone:quicksand"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
"description": {
"translate": "advancements.biomeswevegone.adventure.little_house_on_the_prairie.description"
},
"frame": "challenge",
"frame": "task",
"hidden": false,
"icon": {
"item": "biomeswevegone:prairie_grass"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -840,7 +840,7 @@
"description": {
"translate": "advancements.biomeswevegone.adventure.root.description"
},
"frame": "challenge",
"frame": "task",
"hidden": false,
"icon": {
"item": "biomeswevegone:bwg_logo"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
"description": {
"translate": "advancements.biomeswevegone.husbandry.berrily_alive.description"
},
"frame": "challenge",
"frame": "task",
"hidden": false,
"icon": {
"item": "biomeswevegone:blueberries"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
"description": {
"translate": "advancements.biomeswevegone.husbandry.forager.description"
},
"frame": "challenge",
"frame": "task",
"hidden": false,
"icon": {
"item": "biomeswevegone:white_puffball_cap"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
"description": {
"translate": "advancements.biomeswevegone.husbandry.granny_smith.description"
},
"frame": "challenge",
"frame": "task",
"hidden": false,
"icon": {
"item": "biomeswevegone:green_apple"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
"description": {
"translate": "advancements.biomeswevegone.husbandry.hot_diggity_not_dog.description"
},
"frame": "challenge",
"frame": "task",
"hidden": false,
"icon": {
"item": "biomeswevegone:cattail_sprout"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@
"description": {
"translate": "advancements.biomeswevegone.husbandry.johnny_appleseed.description"
},
"frame": "challenge",
"frame": "task",
"hidden": false,
"icon": {
"item": "minecraft:golden_apple"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
"description": {
"translate": "advancements.biomeswevegone.husbandry.just_like_grandmas.description"
},
"frame": "challenge",
"frame": "goal",
"hidden": false,
"icon": {
"item": "biomeswevegone:green_apple_pie"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ public void generate(HolderLookup.@NotNull Provider arg, @NotNull Consumer<Advan
translateAble("adventure.root.title"),
translateAble("adventure.root.description"),
BiomesWeveGone.id("textures/block/lush_dirt.png"),
FrameType.CHALLENGE, false, false, false
FrameType.TASK, false, false, false
).save(consumer, BiomesWeveGone.id(BiomesWeveGone.MOD_ID + "/adventure/root"), existingFileHelper);

VanillaAdventureAdvancements.addBiomes(Advancement.Builder.advancement(), BWGBiomes.BIOME_FACTORIES.keySet().stream().sorted().toList())
Expand All @@ -70,10 +70,8 @@ public void generate(HolderLookup.@NotNull Provider arg, @NotNull Consumer<Advan
translateAble("adventure.inside_quicksand.title"),
translateAble("adventure.inside_quicksand.description"),
BiomesWeveGone.id("textures/block/lush_dirt.png"),
FrameType.CHALLENGE,
true,
true,
false
FrameType.TASK,
true, true, false
)
.save(consumer, BiomesWeveGone.id(BiomesWeveGone.MOD_ID + "/adventure/inside_quicksand"), existingFileHelper);

Expand All @@ -87,7 +85,7 @@ public void generate(HolderLookup.@NotNull Provider arg, @NotNull Consumer<Advan
translateAble("adventure.little_house_on_the_prairie.title"),
translateAble("adventure.little_house_on_the_prairie.description"),
BiomesWeveGone.id("textures/block/lush_dirt.png"),
FrameType.CHALLENGE, true, true, false
FrameType.TASK, true, true, false
)
.save(consumer, BiomesWeveGone.id(BiomesWeveGone.MOD_ID + "/adventure/little_house_on_the_prairie"), existingFileHelper);

Expand All @@ -109,7 +107,7 @@ public void generate(HolderLookup.@NotNull Provider arg, @NotNull Consumer<Advan
BWGItems.GREEN_APPLE.get(),
translateAble("husbandry.granny_smith.title"),
translateAble("husbandry.granny_smith.description"),
null, FrameType.CHALLENGE, true, true, false)
null, FrameType.TASK, true, true, false)
.save(consumer, BiomesWeveGone.id(BiomesWeveGone.MOD_ID + "/husbandry/granny_smith"), existingFileHelper);

Advancement.Builder.advancement()
Expand All @@ -119,7 +117,7 @@ public void generate(HolderLookup.@NotNull Provider arg, @NotNull Consumer<Advan
BWGItems.WHITE_PUFFBALL_CAP.get(),
translateAble("husbandry.forager.title"),
translateAble("husbandry.forager.description"),
null, FrameType.CHALLENGE, true, true, false)
null, FrameType.TASK, true, true, false)
.save(consumer, BiomesWeveGone.id(BiomesWeveGone.MOD_ID + "/husbandry/forager"), existingFileHelper);

Advancement.Builder.advancement()
Expand All @@ -129,7 +127,7 @@ public void generate(HolderLookup.@NotNull Provider arg, @NotNull Consumer<Advan
BWGItems.BLUEBERRIES.get(),
translateAble("husbandry.berrily_alive.title"),
translateAble("husbandry.berrily_alive.description"),
null, FrameType.CHALLENGE, true, true, false)
null, FrameType.TASK, true, true, false)
.save(consumer, BiomesWeveGone.id(BiomesWeveGone.MOD_ID + "/husbandry/berrily_alive"), existingFileHelper);

Advancement.Builder.advancement()
Expand All @@ -143,7 +141,7 @@ public void generate(HolderLookup.@NotNull Provider arg, @NotNull Consumer<Advan
BWGItems.GREEN_APPLE_PIE.get(),
translateAble("husbandry.just_like_grandmas.title"),
translateAble("husbandry.just_like_grandmas.description"),
null, FrameType.CHALLENGE, true, true, false)
null, FrameType.GOAL, true, true, false)
.save(consumer, BiomesWeveGone.id(BiomesWeveGone.MOD_ID + "/husbandry/just_like_grandmas"), existingFileHelper);

Advancement.Builder.advancement()
Expand All @@ -156,7 +154,7 @@ public void generate(HolderLookup.@NotNull Provider arg, @NotNull Consumer<Advan
Items.GOLDEN_APPLE,
translateAble("husbandry.johnny_appleseed.title"),
translateAble("husbandry.johnny_appleseed.description"),
null, FrameType.CHALLENGE, true, true, false)
null, FrameType.TASK, true, true, false)
.save(consumer, BiomesWeveGone.id(BiomesWeveGone.MOD_ID + "/husbandry/johnny_appleseed"), existingFileHelper);

Advancement.Builder.advancement()
Expand All @@ -166,7 +164,7 @@ public void generate(HolderLookup.@NotNull Provider arg, @NotNull Consumer<Advan
BWGItems.CATTAIL_SPROUT.get(),
translateAble("husbandry.hot_diggity_not_dog.title"),
translateAble("husbandry.hot_diggity_not_dog.description"),
null, FrameType.CHALLENGE, true, true, false)
null, FrameType.TASK, true, true, false)
.save(consumer, BiomesWeveGone.id(BiomesWeveGone.MOD_ID + "/husbandry/hot_diggity_not_dog"), existingFileHelper);
}

Expand Down

0 comments on commit 4e74337

Please sign in to comment.