From 43e376adc043fbcd07df218029dac3b66cc3bb4f Mon Sep 17 00:00:00 2001 From: Ellpeck Date: Mon, 22 Oct 2018 21:07:21 +0200 Subject: [PATCH] start on advancements --- .../de/ellpeck/naturesaura/NaturesAura.java | 3 +- .../naturesaura/advancements/get_book.json | 26 +++++++++++++++++ .../naturesaura/advancements/gold_leaf.json | 26 +++++++++++++++++ .../assets/naturesaura/advancements/root.json | 28 +++++++++++++++++++ .../assets/naturesaura/lang/en_US.lang | 9 +++++- 5 files changed, 90 insertions(+), 2 deletions(-) create mode 100644 src/main/resources/assets/naturesaura/advancements/get_book.json create mode 100644 src/main/resources/assets/naturesaura/advancements/gold_leaf.json create mode 100644 src/main/resources/assets/naturesaura/advancements/root.json diff --git a/src/main/java/de/ellpeck/naturesaura/NaturesAura.java b/src/main/java/de/ellpeck/naturesaura/NaturesAura.java index c13da4a0..2d2db39c 100644 --- a/src/main/java/de/ellpeck/naturesaura/NaturesAura.java +++ b/src/main/java/de/ellpeck/naturesaura/NaturesAura.java @@ -28,13 +28,14 @@ import net.minecraftforge.fml.common.event.FMLPreInitializationEvent; import org.apache.logging.log4j.LogManager; import org.apache.logging.log4j.Logger; -@Mod(modid = NaturesAura.MOD_ID, name = NaturesAura.MOD_NAME, version = NaturesAura.VERSION) +@Mod(modid = NaturesAura.MOD_ID, name = NaturesAura.MOD_NAME, version = NaturesAura.VERSION, dependencies = NaturesAura.DEPS) public final class NaturesAura { public static final String MOD_ID = "naturesaura"; public static final String PROXY_LOCATION = "de.ellpeck." + MOD_ID + ".proxy."; public static final String MOD_NAME = "Nature's Aura"; public static final String VERSION = "@VERSION@"; + public static final String DEPS = "required:patchouli;"; public static final Logger LOGGER = LogManager.getLogger(MOD_NAME); diff --git a/src/main/resources/assets/naturesaura/advancements/get_book.json b/src/main/resources/assets/naturesaura/advancements/get_book.json new file mode 100644 index 00000000..7296ac97 --- /dev/null +++ b/src/main/resources/assets/naturesaura/advancements/get_book.json @@ -0,0 +1,26 @@ +{ + "display": { + "icon": { + "item": "patchouli:guide_book" + }, + "title": { + "translate": "advancement.naturesaura.get_book" + }, + "description": { + "translate": "advancement.naturesaura.get_book.desc" + } + }, + "parent": "naturesaura:root", + "criteria": { + "book": { + "trigger": "minecraft:inventory_changed", + "conditions": { + "items": [ + { + "item": "patchouli:guide_book" + } + ] + } + } + } +} \ No newline at end of file diff --git a/src/main/resources/assets/naturesaura/advancements/gold_leaf.json b/src/main/resources/assets/naturesaura/advancements/gold_leaf.json new file mode 100644 index 00000000..25e7abc3 --- /dev/null +++ b/src/main/resources/assets/naturesaura/advancements/gold_leaf.json @@ -0,0 +1,26 @@ +{ + "display": { + "icon": { + "item": "naturesaura:gold_leaf" + }, + "title": { + "translate": "advancement.naturesaura.gold_leaf" + }, + "description": { + "translate": "advancement.naturesaura.gold_leaf.desc" + } + }, + "parent": "naturesaura:get_book", + "criteria": { + "book": { + "trigger": "minecraft:inventory_changed", + "conditions": { + "items": [ + { + "item": "naturesaura:gold_leaf" + } + ] + } + } + } +} \ No newline at end of file diff --git a/src/main/resources/assets/naturesaura/advancements/root.json b/src/main/resources/assets/naturesaura/advancements/root.json new file mode 100644 index 00000000..22e192df --- /dev/null +++ b/src/main/resources/assets/naturesaura/advancements/root.json @@ -0,0 +1,28 @@ +{ + "display": { + "icon": { + "item": "naturesaura:eye" + }, + "title": { + "translate": "advancement.naturesaura.root" + }, + "description": { + "translate": "advancement.naturesaura.root.desc" + }, + "background": "minecraft:textures/gui/advancements/backgrounds/stone.png", + "show_toast": false, + "announce_to_chat": false + }, + "criteria": { + "book": { + "trigger": "minecraft:inventory_changed", + "conditions": { + "items": [ + { + "item": "patchouli:guide_book" + } + ] + } + } + } +} \ No newline at end of file diff --git a/src/main/resources/assets/naturesaura/lang/en_US.lang b/src/main/resources/assets/naturesaura/lang/en_US.lang index faa64c23..842cf365 100644 --- a/src/main/resources/assets/naturesaura/lang/en_US.lang +++ b/src/main/resources/assets/naturesaura/lang/en_US.lang @@ -27,4 +27,11 @@ item.naturesaura.aura_cache.name=Aura Cache container.naturesaura.tree_ritual.name=Ritual of the Forest container.naturesaura.altar.name=Natural Altar Infusion -info.naturesaura.aura_in_area=Aura Around \ No newline at end of file +info.naturesaura.aura_in_area=Aura Around + +advancement.naturesaura.root=Nature's Aura +advancement.naturesaura.root.desc=Becoming a magical botanist +advancement.naturesaura.get_book=Pages of discovery +advancement.naturesaura.get_book.desc=Create the Book of Natural Aura +advancement.naturesaura.gold_leaf=Time = Brilliance +advancement.naturesaura.gold_leaf.desc=Create and harvest a Brilliant Tree \ No newline at end of file