Skip to content

Commit

Permalink
Update advancement
Browse files Browse the repository at this point in the history
  • Loading branch information
UnRealDinnerbone committed Jan 14, 2025
1 parent ebcbe0c commit f01ac21
Show file tree
Hide file tree
Showing 10 changed files with 11 additions and 14 deletions.
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -25,3 +25,7 @@ run
Fabric/run_client/

neo/runs/

fabric/runs/

common/src/generated/resources/.cache/
5 changes: 3 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
### 6.0.0
### 21.1.1

- Update to Minecraft 1.21
- Update Version Schema
- Make Advancement parent minecraft one (so no new tap)

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{
"parent": "minecraft:story/root",
"criteria": {
"placed_boat": {
"trigger": "obsidianboat:boat_in_water"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
import com.unrealdinnerbone.obsidianboat.OBRegistry;
import com.unrealdinnerbone.obsidianboat.ObsidianBoat;
import com.unrealdinnerbone.obsidianboat.advancements.BoatTrigger;
import com.unrealdinnerbone.trenzalore.lib.RLUtils;
import net.fabricmc.fabric.api.datagen.v1.FabricDataOutput;
import net.fabricmc.fabric.api.datagen.v1.provider.FabricAdvancementProvider;
import net.minecraft.advancements.Advancement;
Expand Down Expand Up @@ -30,6 +31,7 @@ public void generateAdvancement(HolderLookup.Provider registryLookup, Consumer<A


consumer.accept(Advancement.Builder.advancement()
.parent(RLUtils.rl("minecraft", "story/root"))
.display(OBRegistry.BOAT_ITEM.get(), getTranslation("title"), getTranslation("description"), null, AdvancementType.TASK, true, true, true)
.addCriterion("placed_boat", OBRegistry.BOAT_TRIGGER.get().createCriterion(new BoatTrigger.Instance(Optional.empty())))
.build(ObsidianBoat.rl( ObsidianBoat.MOD_ID)));
Expand Down
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Project
mod_version=7.0.0
mod_version=21.1.1
maven_group=com.unrealdinnerbone
mod_name=ObsidianBoat
mod_author=UnRealDinnerbone
Expand Down

0 comments on commit f01ac21

Please sign in to comment.