start on advancements

This commit is contained in:
Ellpeck 2018-10-22 21:07:21 +02:00
parent 0b1036009e
commit 43e376adc0
5 changed files with 90 additions and 2 deletions

View file

@ -28,13 +28,14 @@ import net.minecraftforge.fml.common.event.FMLPreInitializationEvent;
import org.apache.logging.log4j.LogManager; import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger; 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 final class NaturesAura {
public static final String MOD_ID = "naturesaura"; public static final String MOD_ID = "naturesaura";
public static final String PROXY_LOCATION = "de.ellpeck." + MOD_ID + ".proxy."; public static final String PROXY_LOCATION = "de.ellpeck." + MOD_ID + ".proxy.";
public static final String MOD_NAME = "Nature's Aura"; public static final String MOD_NAME = "Nature's Aura";
public static final String VERSION = "@VERSION@"; public static final String VERSION = "@VERSION@";
public static final String DEPS = "required:patchouli;";
public static final Logger LOGGER = LogManager.getLogger(MOD_NAME); public static final Logger LOGGER = LogManager.getLogger(MOD_NAME);

View file

@ -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"
}
]
}
}
}
}

View file

@ -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"
}
]
}
}
}
}

View file

@ -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"
}
]
}
}
}
}

View file

@ -28,3 +28,10 @@ container.naturesaura.tree_ritual.name=Ritual of the Forest
container.naturesaura.altar.name=Natural Altar Infusion container.naturesaura.altar.name=Natural Altar Infusion
info.naturesaura.aura_in_area=Aura Around 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