diff --git a/gradle.properties b/gradle.properties index 314470c..bdc19db 100644 --- a/gradle.properties +++ b/gradle.properties @@ -9,7 +9,7 @@ yarn_mappings=1.20.4+build.3 loader_version=0.15.11 # Mod Properties -mod_version=1.0.1 +mod_version=1.1.1 maven_group=net.stal.alloys archives_base_name=stal-alloys modid=stal-alloys diff --git a/src/main/java/net/stal/alloys/StalAlloysDataGenerator.java b/src/main/java/net/stal/alloys/StalAlloysDataGenerator.java index 4b52385..bd2584f 100644 --- a/src/main/java/net/stal/alloys/StalAlloysDataGenerator.java +++ b/src/main/java/net/stal/alloys/StalAlloysDataGenerator.java @@ -21,6 +21,7 @@ public void onInitializeDataGenerator(FabricDataGenerator fabricDataGenerator) { pack.addProvider(StalAlloysBlockTagProvider::new); pack.addProvider(StalAlloysModelProvider::new); pack.addProvider(StalAlloysRecipeProvider::new); + pack.addProvider(StalAlloysAdvancementProvider::new); } @Override diff --git a/src/main/java/net/stal/alloys/datagen/StalAlloysAdvancementProvider.java b/src/main/java/net/stal/alloys/datagen/StalAlloysAdvancementProvider.java new file mode 100644 index 0000000..8409feb --- /dev/null +++ b/src/main/java/net/stal/alloys/datagen/StalAlloysAdvancementProvider.java @@ -0,0 +1,304 @@ +package net.stal.alloys.datagen; + +import java.util.function.Consumer; + +import net.fabricmc.fabric.api.datagen.v1.FabricDataOutput; +import net.fabricmc.fabric.api.datagen.v1.provider.FabricAdvancementProvider; +import net.minecraft.advancement.Advancement; +import net.minecraft.advancement.AdvancementEntry; +import net.minecraft.advancement.AdvancementFrame; +import net.minecraft.advancement.AdvancementRewards; +import net.minecraft.advancement.criterion.InventoryChangedCriterion; +import net.minecraft.text.Text; +import net.minecraft.util.Identifier; +import net.stal.alloys.StalAlloys; +import net.stal.alloys.block.StalAlloysBlocks; +import net.stal.alloys.item.StalAlloysItems; + +public class StalAlloysAdvancementProvider extends FabricAdvancementProvider { + + public StalAlloysAdvancementProvider(FabricDataOutput output) { + super(output); + } + + @SuppressWarnings("unused") + @Override + public void generateAdvancement(Consumer consumer) { + AdvancementEntry alloySmelterRoot = Advancement.Builder.create() + .display( + StalAlloysBlocks.ALLOY_SMELTER, + Text.translatable(StalAlloys.MOD_ID + ":" + "advancement_root_title_text"), + Text.translatable(StalAlloys.MOD_ID + ":" + "advancement_root_description_text"), + new Identifier("textures/gui/advancements/backgrounds/stone.png"), + AdvancementFrame.TASK, + true, + true, + false + ) + .criterion("alloy_smelter_acquired", InventoryChangedCriterion.Conditions.items(StalAlloysBlocks.ALLOY_SMELTER)) + .rewards(AdvancementRewards.Builder.experience(10)) + .build(consumer, StalAlloys.MOD_ID + "/alloy-smelter-root"); + + AdvancementEntry alloysTin = Advancement.Builder.create().parent(alloySmelterRoot) + .display( + StalAlloysItems.RAW_TIN, + Text.translatable(StalAlloys.MOD_ID + ":" + "advancement_alloys_tin_title_text"), + Text.translatable(StalAlloys.MOD_ID + ":" + "advancement_alloys_tin_description_text"), + null, + AdvancementFrame.TASK, + true, + true, + false + ) + .criterion("raw_tin_acquired", InventoryChangedCriterion.Conditions.items(StalAlloysItems.RAW_TIN)) + .rewards(AdvancementRewards.Builder.experience(10)) + .build(consumer, StalAlloys.MOD_ID + "/alloys-tin"); + + AdvancementEntry alloysBronze = Advancement.Builder.create().parent(alloysTin) + .display( + StalAlloysItems.BRONZE_INGOT, + Text.translatable(StalAlloys.MOD_ID + ":" + "advancement_alloys_bronze_title_text"), + Text.translatable(StalAlloys.MOD_ID + ":" + "advancement_alloys_bronze_description_text"), + null, + AdvancementFrame.TASK, + true, + true, + false + ) + .criterion("bronze_ingot_acquired", InventoryChangedCriterion.Conditions.items(StalAlloysItems.BRONZE_INGOT)) + .rewards(AdvancementRewards.Builder.experience(10)) + .build(consumer, StalAlloys.MOD_ID + "/alloys-bronze"); + + AdvancementEntry alloysZinc = Advancement.Builder.create().parent(alloySmelterRoot) + .display( + StalAlloysItems.RAW_ZINC, + Text.translatable(StalAlloys.MOD_ID + ":" + "advancement_alloys_zinc_title_text"), + Text.translatable(StalAlloys.MOD_ID + ":" + "advancement_alloys_zinc_description_text"), + null, + AdvancementFrame.TASK, + true, + true, + false + ) + .criterion("raw_zinc_acquired", InventoryChangedCriterion.Conditions.items(StalAlloysItems.RAW_ZINC)) + .rewards(AdvancementRewards.Builder.experience(10)) + .build(consumer, StalAlloys.MOD_ID + "/alloys-zinc"); + + AdvancementEntry alloysBrass = Advancement.Builder.create().parent(alloysZinc) + .display( + StalAlloysItems.BRASS_INGOT, + Text.translatable(StalAlloys.MOD_ID + ":" + "advancement_alloys_brass_title_text"), + Text.translatable(StalAlloys.MOD_ID + ":" + "advancement_alloys_brass_description_text"), + null, + AdvancementFrame.TASK, + true, + true, + false + ) + .criterion("brass_ingot_acquired", InventoryChangedCriterion.Conditions.items(StalAlloysItems.BRASS_INGOT)) + .rewards(AdvancementRewards.Builder.experience(10)) + .build(consumer, StalAlloys.MOD_ID + "/alloys-brass"); + + AdvancementEntry alloysNickel = Advancement.Builder.create().parent(alloySmelterRoot) + .display( + StalAlloysItems.RAW_NICKEL, + Text.translatable(StalAlloys.MOD_ID + ":" + "advancement_alloys_nickel_title_text"), + Text.translatable(StalAlloys.MOD_ID + ":" + "advancement_alloys_nickel_description_text"), + null, + AdvancementFrame.TASK, + true, + true, + false + ) + .criterion("raw_nickel_acquired", InventoryChangedCriterion.Conditions.items(StalAlloysItems.RAW_NICKEL)) + .rewards(AdvancementRewards.Builder.experience(10)) + .build(consumer, StalAlloys.MOD_ID + "/alloys-nickel"); + + AdvancementEntry alloysChromium = Advancement.Builder.create().parent(alloySmelterRoot) + .display( + StalAlloysItems.RAW_CHROMIUM, + Text.translatable(StalAlloys.MOD_ID + ":" + "advancement_alloys_chromium_title_text"), + Text.translatable(StalAlloys.MOD_ID + ":" + "advancement_alloys_chromium_description_text"), + null, + AdvancementFrame.TASK, + true, + true, + false + ) + .criterion("raw_chromium_acquired", InventoryChangedCriterion.Conditions.items(StalAlloysItems.RAW_CHROMIUM)) + .rewards(AdvancementRewards.Builder.experience(10)) + .build(consumer, StalAlloys.MOD_ID + "/alloys-chromium"); + + AdvancementEntry alloysStainlessSteel = Advancement.Builder.create().parent(alloysChromium) + .display( + StalAlloysItems.STAINLESS_STEEL_INGOT, + Text.translatable(StalAlloys.MOD_ID + ":" + "advancement_alloys_stainless_steel_title_text"), + Text.translatable(StalAlloys.MOD_ID + ":" + "advancement_alloys_stainless_steel_description_text"), + null, + AdvancementFrame.TASK, + true, + true, + false + ) + .criterion("chromium_ingot_acquired", InventoryChangedCriterion.Conditions.items(StalAlloysItems.CHROMIUM_INGOT)) + .criterion("steel_ingot_acquired", InventoryChangedCriterion.Conditions.items(StalAlloysItems.STEEL_INGOT)) + .criterion("stainless_steel_ingot_acquired", InventoryChangedCriterion.Conditions.items(StalAlloysItems.STAINLESS_STEEL_INGOT)) + .rewards(AdvancementRewards.Builder.experience(15)) + .build(consumer, StalAlloys.MOD_ID + "/alloys-stainless-steel"); + + AdvancementEntry alloysCarbon = Advancement.Builder.create().parent(alloySmelterRoot) + .display( + StalAlloysItems.RAW_CARBON, + Text.translatable(StalAlloys.MOD_ID + ":" + "advancement_alloys_carbon_title_text"), + Text.translatable(StalAlloys.MOD_ID + ":" + "advancement_alloys_carbon_description_text"), + null, + AdvancementFrame.TASK, + true, + true, + false + ) + .criterion("raw_carbon_acquired", InventoryChangedCriterion.Conditions.items(StalAlloysItems.RAW_CARBON)) + .rewards(AdvancementRewards.Builder.experience(10)) + .build(consumer, StalAlloys.MOD_ID + "/alloys-carbon"); + + AdvancementEntry carbonPlates = Advancement.Builder.create().parent(alloysCarbon) + .display( + StalAlloysItems.CARBON_PLATE, + Text.translatable(StalAlloys.MOD_ID + ":" + "advancement_carbon_plate_title_text"), + Text.translatable(StalAlloys.MOD_ID + ":" + "advancement_carbon_plate_description_text"), + null, + AdvancementFrame.TASK, + true, + true, + false + ) + .criterion("carbon_plate_acquired", InventoryChangedCriterion.Conditions.items(StalAlloysItems.CARBON_PLATE)) + .rewards(AdvancementRewards.Builder.experience(10)) + .build(consumer, StalAlloys.MOD_ID + "/carbon-plate"); + + AdvancementEntry alloysSteel = Advancement.Builder.create().parent(carbonPlates) + .display( + StalAlloysItems.STEEL_INGOT, + Text.translatable(StalAlloys.MOD_ID + ":" + "advancement_alloys_steel_title_text"), + Text.translatable(StalAlloys.MOD_ID + ":" + "advancement_alloys_steel_description_text"), + null, + AdvancementFrame.TASK, + true, + true, + false + ) + .criterion("steel_ingot_acquired", InventoryChangedCriterion.Conditions.items(StalAlloysItems.STEEL_INGOT)) + .rewards(AdvancementRewards.Builder.experience(10)) + .build(consumer, StalAlloys.MOD_ID + "/alloys-steel"); + + AdvancementEntry nickelDecorativeBlocks = Advancement.Builder.create().parent(alloysNickel) + .display( + StalAlloysBlocks.CUT_NICKEL, + Text.translatable(StalAlloys.MOD_ID + ":" + "advancement_nickel_decor_title_text"), + Text.translatable(StalAlloys.MOD_ID + ":" + "advancement_nickel_decor_description_text"), + null, + AdvancementFrame.GOAL, + true, + true, + false + ) + .criterion("cut_nickel_crafted", InventoryChangedCriterion.Conditions.items(StalAlloysBlocks.CUT_NICKEL)) + .criterion("cut_nickel_slab_crafted", InventoryChangedCriterion.Conditions.items(StalAlloysBlocks.CUT_NICKEL_SLAB)) + .criterion("cut_nickel_stairs_crafted", InventoryChangedCriterion.Conditions.items(StalAlloysBlocks.CUT_NICKEL_STAIRS)) + .rewards(AdvancementRewards.Builder.experience(20)) + .build(consumer, StalAlloys.MOD_ID + "/nickel-decorative-blocks"); + + AdvancementEntry copperTools = Advancement.Builder.create().parent(alloySmelterRoot) + .display( + StalAlloysItems.COPPER_PICKAXE, + Text.translatable(StalAlloys.MOD_ID + ":" + "advancement_copper_tools_title_text"), + Text.translatable(StalAlloys.MOD_ID + ":" + "advancement_copper_tools_description_text"), + null, + AdvancementFrame.GOAL, + true, + true, + false + ) + .criterion("copper_sword_crafted", InventoryChangedCriterion.Conditions.items(StalAlloysItems.COPPER_SWORD)) + .criterion("copper_pickaxe_crafted", InventoryChangedCriterion.Conditions.items(StalAlloysItems.COPPER_PICKAXE)) + .criterion("copper_axe_crafted", InventoryChangedCriterion.Conditions.items(StalAlloysItems.COPPER_AXE)) + .criterion("copper_shovel_crafted", InventoryChangedCriterion.Conditions.items(StalAlloysItems.COPPER_SHOVEL)) + .criterion("copper_hoe_crafted", InventoryChangedCriterion.Conditions.items(StalAlloysItems.COPPER_HOE)) + .rewards(AdvancementRewards.Builder.experience(20)) + .build(consumer, StalAlloys.MOD_ID + "/copper-tools"); + + + AdvancementEntry steelTools = Advancement.Builder.create().parent(alloysSteel) + .display( + StalAlloysItems.STEEL_PICKAXE, + Text.translatable(StalAlloys.MOD_ID + ":" + "advancement_steel_tools_title_text"), + Text.translatable(StalAlloys.MOD_ID + ":" + "advancement_steel_tools_description_text"), + null, + AdvancementFrame.GOAL, + true, + true, + false + ) + .criterion("steel_pickaxe_crafted", InventoryChangedCriterion.Conditions.items(StalAlloysItems.STEEL_PICKAXE)) + .criterion("steel_axe_crafted", InventoryChangedCriterion.Conditions.items(StalAlloysItems.STEEL_AXE)) + .criterion("steel_shovel_crafted", InventoryChangedCriterion.Conditions.items(StalAlloysItems.STEEL_SHOVEL)) + .criterion("steel_hoe_crafted", InventoryChangedCriterion.Conditions.items(StalAlloysItems.STEEL_HOE)) + .rewards(AdvancementRewards.Builder.experience(20)) + .build(consumer, StalAlloys.MOD_ID + "/steel-tools"); + + AdvancementEntry bronzeWeapons = Advancement.Builder.create().parent(alloysBronze) + .display( + StalAlloysItems.BRONZE_SWORD, + Text.translatable(StalAlloys.MOD_ID + ":" + "advancement_bronze_weapons_title_text"), + Text.translatable(StalAlloys.MOD_ID + ":" + "advancement_bronze_weapons_description_text"), + null, + AdvancementFrame.GOAL, + true, + true, + false + ) + .criterion("bronze_axe_crafted", InventoryChangedCriterion.Conditions.items(StalAlloysItems.BRONZE_AXE)) + .criterion("bronze_dagger_crafted", InventoryChangedCriterion.Conditions.items(StalAlloysItems.BRONZE_DAGGER)) + .criterion("bronze_dirk_crafted", InventoryChangedCriterion.Conditions.items(StalAlloysItems.BRONZE_DIRK)) + .criterion("bronze_sword_crafted", InventoryChangedCriterion.Conditions.items(StalAlloysItems.BRONZE_SWORD)) + .rewards(AdvancementRewards.Builder.experience(20)) + .build(consumer, StalAlloys.MOD_ID + "/bronze-weapons"); + + + AdvancementEntry brassArmor = Advancement.Builder.create().parent(alloysBrass) + .display( + StalAlloysItems.BRASS_CHESTPLATE, + Text.translatable(StalAlloys.MOD_ID + ":" + "advancement_brass_armor_title_text"), + Text.translatable(StalAlloys.MOD_ID + ":" + "advancement_brass_armor_description_text"), + null, + AdvancementFrame.GOAL, + true, + true, + false + ) + .criterion("brass_helment_crafted", InventoryChangedCriterion.Conditions.items(StalAlloysItems.BRASS_HELMET)) + .criterion("brass_chestplate_crafted", InventoryChangedCriterion.Conditions.items(StalAlloysItems.BRASS_CHESTPLATE)) + .criterion("brass_leggings_crafted", InventoryChangedCriterion.Conditions.items(StalAlloysItems.BRASS_LEGGINGS)) + .criterion("brass_boots_crafted", InventoryChangedCriterion.Conditions.items(StalAlloysItems.BRASS_BOOTS)) + .rewards(AdvancementRewards.Builder.experience(18)) + .build(consumer, StalAlloys.MOD_ID + "/brass-armor"); + + AdvancementEntry stainlessSteelArmor = Advancement.Builder.create().parent(alloysStainlessSteel) + .display( + StalAlloysItems.STAINLESS_STEEL_CHESTPLATE, + Text.translatable(StalAlloys.MOD_ID + ":" + "advancement_stainless_steel_armor_title_text"), + Text.translatable(StalAlloys.MOD_ID + ":" + "advancement_stainless_steel_armor_description_text"), + null, + AdvancementFrame.GOAL, + true, + true, + false + ) + .criterion("stainless_steel_helment_crafted", InventoryChangedCriterion.Conditions.items(StalAlloysItems.STAINLESS_STEEL_HELMET)) + .criterion("stainless_steel_chestplate_crafted", InventoryChangedCriterion.Conditions.items(StalAlloysItems.STAINLESS_STEEL_CHESTPLATE)) + .criterion("stainless_steel_leggings_crafted", InventoryChangedCriterion.Conditions.items(StalAlloysItems.STAINLESS_STEEL_LEGGINGS)) + .criterion("stainless_steel_boots_crafted", InventoryChangedCriterion.Conditions.items(StalAlloysItems.STAINLESS_STEEL_BOOTS)) + .rewards(AdvancementRewards.Builder.experience(35)) + .build(consumer, StalAlloys.MOD_ID + "/stainless-steel-armor"); + } +} \ No newline at end of file diff --git a/src/main/resources/assets/stal-alloys/lang/en_us.json b/src/main/resources/assets/stal-alloys/lang/en_us.json index 78aea49..4084e37 100644 --- a/src/main/resources/assets/stal-alloys/lang/en_us.json +++ b/src/main/resources/assets/stal-alloys/lang/en_us.json @@ -71,5 +71,40 @@ "itemGroup.stal-alloys": "STAL Alloys", "key.category.stal-alloys.example": "Example Key Category", - "key.stal-alloys.example": "Example Key Binding" + "key.stal-alloys.example": "Example Key Binding", + + "stal-alloys:advancement_root_title_text" : "Means of Production", + "stal-alloys:advancement_root_description_text" : "Craft an Alloy Smelter", + "stal-alloys:advancement_alloys_tin_title_text" : "Small Part of a Greater Whole", + "stal-alloys:advancement_alloys_tin_description_text" : "Acquire Raw Tin", + "stal-alloys:advancement_alloys_zinc_title_text" : "Greener Rocky Pastures", + "stal-alloys:advancement_alloys_zinc_description_text" : "Acquire Raw Zinc", + "stal-alloys:advancement_alloys_nickel_title_text" : "A Builder's Fusible Dream", + "stal-alloys:advancement_alloys_nickel_description_text" : "Acquire Raw Nickel", + "stal-alloys:advancement_alloys_chromium_title_text" : "The Path to End Game", + "stal-alloys:advancement_alloys_chromium_description_text" : "Acquire Raw Chromium", + "stal-alloys:advancement_alloys_carbon_title_text" : "As the Dust Settles", + "stal-alloys:advancement_alloys_carbon_description_text" : "Acquire Carbon Dust", + "stal-alloys:advancement_nickel_decor_title_text" : "The Cutting Room Floor", + "stal-alloys:advancement_nickel_decor_description_text" : "Use a Stone Cutter to craft Cut Nickel Blocks, Slabs, and Stairs", + "stal-alloys:advancement_carbon_plate_title_text" : "Don't Eat Off of This", + "stal-alloys:advancement_carbon_plate_description_text" : "Craft Carbon Plates", + "stal-alloys:advancement_alloys_bronze_title_text" : "The Bronze Age", + "stal-alloys:advancement_alloys_bronze_description_text" : "Smelt Tin and Copper into Bronze", + "stal-alloys:advancement_alloys_brass_title_text" : "The Brass Age", + "stal-alloys:advancement_alloys_brass_description_text" : "Smelt Zinc and Copper into Brass", + "stal-alloys:advancement_alloys_steel_title_text" : "Beyond Iron", + "stal-alloys:advancement_alloys_steel_description_text" : "Smelt Carbon Plates and Iron into Steel", + "stal-alloys:advancement_alloys_stainless_steel_title_text" : "The Beginning of the Endgame", + "stal-alloys:advancement_alloys_stainless_steel_description_text" : "Smelt Chromium and Steel into Stainless Steel. Must smelt Chromium, Steel, and Stainless Steel Ingots to complete this task.", + "stal-alloys:advancement_copper_tools_title_text" : "Wasn't This Here the Whole Time?", + "stal-alloys:advancement_copper_tools_description_text" : "Use Copper Ingots to craft every Copper tool: Sword, Pickaxe, Axe, Shovel, Hoe", + "stal-alloys:advancement_steel_tools_title_text" : "This Stuff is Tough", + "stal-alloys:advancement_steel_tools_description_text" : "Use Steel Ingots to craft every Steel tool: Pickaxe, Axe, Shovel, Hoe.", + "stal-alloys:advancement_bronze_weapons_title_text" : "Bolster Your Arsenal", + "stal-alloys:advancement_bronze_weapons_description_text" : "Use Bronze Ingots to craft every Bronze weapon: Sword, Axe, Dirk, and Dagger.", + "stal-alloys:advancement_brass_armor_title_text" : "Better Than Gold?", + "stal-alloys:advancement_brass_armor_description_text" : "Use Brass Ingots to craft Brass Armor", + "stal-alloys:advancement_stainless_steel_armor_title_text" : "I'm Happy You Made it This Far", + "stal-alloys:advancement_stainless_steel_armor_description_text" : "Use the Smithing Table to Craft Stainless Steel Armor. Requires the Upgrade Smithing Template." } \ No newline at end of file diff --git a/src/main/resources/data/minecraft/advancements/stal-alloys/alloy-smelter-root.json b/src/main/resources/data/minecraft/advancements/stal-alloys/alloy-smelter-root.json new file mode 100644 index 0000000..d38c50f --- /dev/null +++ b/src/main/resources/data/minecraft/advancements/stal-alloys/alloy-smelter-root.json @@ -0,0 +1,37 @@ +{ + "criteria": { + "alloy_smelter_acquired": { + "conditions": { + "items": [ + { + "items": [ + "stal-alloys:alloy_smelter" + ] + } + ] + }, + "trigger": "minecraft:inventory_changed" + } + }, + "display": { + "background": "minecraft:textures/gui/advancements/backgrounds/stone.png", + "description": { + "translate": "stal-alloys:advancement_root_description_text" + }, + "icon": { + "item": "stal-alloys:alloy_smelter" + }, + "title": { + "translate": "stal-alloys:advancement_root_title_text" + } + }, + "requirements": [ + [ + "alloy_smelter_acquired" + ] + ], + "rewards": { + "experience": 10 + }, + "sends_telemetry_event": true +} \ No newline at end of file diff --git a/src/main/resources/data/minecraft/advancements/stal-alloys/alloys-brass.json b/src/main/resources/data/minecraft/advancements/stal-alloys/alloys-brass.json new file mode 100644 index 0000000..7beeb9d --- /dev/null +++ b/src/main/resources/data/minecraft/advancements/stal-alloys/alloys-brass.json @@ -0,0 +1,37 @@ +{ + "parent": "minecraft:stal-alloys/alloys-zinc", + "criteria": { + "brass_ingot_acquired": { + "conditions": { + "items": [ + { + "items": [ + "stal-alloys:brass_ingot" + ] + } + ] + }, + "trigger": "minecraft:inventory_changed" + } + }, + "display": { + "description": { + "translate": "stal-alloys:advancement_alloys_brass_description_text" + }, + "icon": { + "item": "stal-alloys:brass_ingot" + }, + "title": { + "translate": "stal-alloys:advancement_alloys_brass_title_text" + } + }, + "requirements": [ + [ + "brass_ingot_acquired" + ] + ], + "rewards": { + "experience": 10 + }, + "sends_telemetry_event": true +} \ No newline at end of file diff --git a/src/main/resources/data/minecraft/advancements/stal-alloys/alloys-bronze.json b/src/main/resources/data/minecraft/advancements/stal-alloys/alloys-bronze.json new file mode 100644 index 0000000..1e6951d --- /dev/null +++ b/src/main/resources/data/minecraft/advancements/stal-alloys/alloys-bronze.json @@ -0,0 +1,37 @@ +{ + "parent": "minecraft:stal-alloys/alloys-tin", + "criteria": { + "bronze_ingot_acquired": { + "conditions": { + "items": [ + { + "items": [ + "stal-alloys:bronze_ingot" + ] + } + ] + }, + "trigger": "minecraft:inventory_changed" + } + }, + "display": { + "description": { + "translate": "stal-alloys:advancement_alloys_bronze_description_text" + }, + "icon": { + "item": "stal-alloys:bronze_ingot" + }, + "title": { + "translate": "stal-alloys:advancement_alloys_bronze_title_text" + } + }, + "requirements": [ + [ + "bronze_ingot_acquired" + ] + ], + "rewards": { + "experience": 10 + }, + "sends_telemetry_event": true +} \ No newline at end of file diff --git a/src/main/resources/data/minecraft/advancements/stal-alloys/alloys-carbon.json b/src/main/resources/data/minecraft/advancements/stal-alloys/alloys-carbon.json new file mode 100644 index 0000000..c02199f --- /dev/null +++ b/src/main/resources/data/minecraft/advancements/stal-alloys/alloys-carbon.json @@ -0,0 +1,37 @@ +{ + "parent": "minecraft:stal-alloys/alloy-smelter-root", + "criteria": { + "raw_carbon_acquired": { + "conditions": { + "items": [ + { + "items": [ + "stal-alloys:raw_carbon" + ] + } + ] + }, + "trigger": "minecraft:inventory_changed" + } + }, + "display": { + "description": { + "translate": "stal-alloys:advancement_alloys_carbon_description_text" + }, + "icon": { + "item": "stal-alloys:raw_carbon" + }, + "title": { + "translate": "stal-alloys:advancement_alloys_carbon_title_text" + } + }, + "requirements": [ + [ + "raw_carbon_acquired" + ] + ], + "rewards": { + "experience": 10 + }, + "sends_telemetry_event": true +} \ No newline at end of file diff --git a/src/main/resources/data/minecraft/advancements/stal-alloys/alloys-chromium.json b/src/main/resources/data/minecraft/advancements/stal-alloys/alloys-chromium.json new file mode 100644 index 0000000..ee7f98d --- /dev/null +++ b/src/main/resources/data/minecraft/advancements/stal-alloys/alloys-chromium.json @@ -0,0 +1,37 @@ +{ + "parent": "minecraft:stal-alloys/alloy-smelter-root", + "criteria": { + "raw_chromium_acquired": { + "conditions": { + "items": [ + { + "items": [ + "stal-alloys:raw_chromium" + ] + } + ] + }, + "trigger": "minecraft:inventory_changed" + } + }, + "display": { + "description": { + "translate": "stal-alloys:advancement_alloys_chromium_description_text" + }, + "icon": { + "item": "stal-alloys:raw_chromium" + }, + "title": { + "translate": "stal-alloys:advancement_alloys_chromium_title_text" + } + }, + "requirements": [ + [ + "raw_chromium_acquired" + ] + ], + "rewards": { + "experience": 10 + }, + "sends_telemetry_event": true +} \ No newline at end of file diff --git a/src/main/resources/data/minecraft/advancements/stal-alloys/alloys-nickel.json b/src/main/resources/data/minecraft/advancements/stal-alloys/alloys-nickel.json new file mode 100644 index 0000000..ea71935 --- /dev/null +++ b/src/main/resources/data/minecraft/advancements/stal-alloys/alloys-nickel.json @@ -0,0 +1,37 @@ +{ + "parent": "minecraft:stal-alloys/alloy-smelter-root", + "criteria": { + "raw_nickel_acquired": { + "conditions": { + "items": [ + { + "items": [ + "stal-alloys:raw_nickel" + ] + } + ] + }, + "trigger": "minecraft:inventory_changed" + } + }, + "display": { + "description": { + "translate": "stal-alloys:advancement_alloys_nickel_description_text" + }, + "icon": { + "item": "stal-alloys:raw_nickel" + }, + "title": { + "translate": "stal-alloys:advancement_alloys_nickel_title_text" + } + }, + "requirements": [ + [ + "raw_nickel_acquired" + ] + ], + "rewards": { + "experience": 10 + }, + "sends_telemetry_event": true +} \ No newline at end of file diff --git a/src/main/resources/data/minecraft/advancements/stal-alloys/alloys-stainless-steel.json b/src/main/resources/data/minecraft/advancements/stal-alloys/alloys-stainless-steel.json new file mode 100644 index 0000000..a6d21f1 --- /dev/null +++ b/src/main/resources/data/minecraft/advancements/stal-alloys/alloys-stainless-steel.json @@ -0,0 +1,67 @@ +{ + "parent": "minecraft:stal-alloys/alloys-chromium", + "criteria": { + "chromium_ingot_acquired": { + "conditions": { + "items": [ + { + "items": [ + "stal-alloys:chromium_ingot" + ] + } + ] + }, + "trigger": "minecraft:inventory_changed" + }, + "stainless_steel_ingot_acquired": { + "conditions": { + "items": [ + { + "items": [ + "stal-alloys:stainless_steel_ingot" + ] + } + ] + }, + "trigger": "minecraft:inventory_changed" + }, + "steel_ingot_acquired": { + "conditions": { + "items": [ + { + "items": [ + "stal-alloys:steel_ingot" + ] + } + ] + }, + "trigger": "minecraft:inventory_changed" + } + }, + "display": { + "description": { + "translate": "stal-alloys:advancement_alloys_stainless_steel_description_text" + }, + "icon": { + "item": "stal-alloys:stainless_steel_ingot" + }, + "title": { + "translate": "stal-alloys:advancement_alloys_stainless_steel_title_text" + } + }, + "requirements": [ + [ + "chromium_ingot_acquired" + ], + [ + "steel_ingot_acquired" + ], + [ + "stainless_steel_ingot_acquired" + ] + ], + "rewards": { + "experience": 15 + }, + "sends_telemetry_event": true +} \ No newline at end of file diff --git a/src/main/resources/data/minecraft/advancements/stal-alloys/alloys-steel.json b/src/main/resources/data/minecraft/advancements/stal-alloys/alloys-steel.json new file mode 100644 index 0000000..70f6dbd --- /dev/null +++ b/src/main/resources/data/minecraft/advancements/stal-alloys/alloys-steel.json @@ -0,0 +1,37 @@ +{ + "parent": "minecraft:stal-alloys/carbon-plate", + "criteria": { + "steel_ingot_acquired": { + "conditions": { + "items": [ + { + "items": [ + "stal-alloys:steel_ingot" + ] + } + ] + }, + "trigger": "minecraft:inventory_changed" + } + }, + "display": { + "description": { + "translate": "stal-alloys:advancement_alloys_steel_description_text" + }, + "icon": { + "item": "stal-alloys:steel_ingot" + }, + "title": { + "translate": "stal-alloys:advancement_alloys_steel_title_text" + } + }, + "requirements": [ + [ + "steel_ingot_acquired" + ] + ], + "rewards": { + "experience": 10 + }, + "sends_telemetry_event": true +} \ No newline at end of file diff --git a/src/main/resources/data/minecraft/advancements/stal-alloys/alloys-tin.json b/src/main/resources/data/minecraft/advancements/stal-alloys/alloys-tin.json new file mode 100644 index 0000000..9a5f94d --- /dev/null +++ b/src/main/resources/data/minecraft/advancements/stal-alloys/alloys-tin.json @@ -0,0 +1,37 @@ +{ + "parent": "minecraft:stal-alloys/alloy-smelter-root", + "criteria": { + "raw_tin_acquired": { + "conditions": { + "items": [ + { + "items": [ + "stal-alloys:raw_tin" + ] + } + ] + }, + "trigger": "minecraft:inventory_changed" + } + }, + "display": { + "description": { + "translate": "stal-alloys:advancement_alloys_tin_description_text" + }, + "icon": { + "item": "stal-alloys:raw_tin" + }, + "title": { + "translate": "stal-alloys:advancement_alloys_tin_title_text" + } + }, + "requirements": [ + [ + "raw_tin_acquired" + ] + ], + "rewards": { + "experience": 10 + }, + "sends_telemetry_event": true +} \ No newline at end of file diff --git a/src/main/resources/data/minecraft/advancements/stal-alloys/alloys-zinc.json b/src/main/resources/data/minecraft/advancements/stal-alloys/alloys-zinc.json new file mode 100644 index 0000000..f17398c --- /dev/null +++ b/src/main/resources/data/minecraft/advancements/stal-alloys/alloys-zinc.json @@ -0,0 +1,37 @@ +{ + "parent": "minecraft:stal-alloys/alloy-smelter-root", + "criteria": { + "raw_zinc_acquired": { + "conditions": { + "items": [ + { + "items": [ + "stal-alloys:raw_zinc" + ] + } + ] + }, + "trigger": "minecraft:inventory_changed" + } + }, + "display": { + "description": { + "translate": "stal-alloys:advancement_alloys_zinc_description_text" + }, + "icon": { + "item": "stal-alloys:raw_zinc" + }, + "title": { + "translate": "stal-alloys:advancement_alloys_zinc_title_text" + } + }, + "requirements": [ + [ + "raw_zinc_acquired" + ] + ], + "rewards": { + "experience": 10 + }, + "sends_telemetry_event": true +} \ No newline at end of file diff --git a/src/main/resources/data/minecraft/advancements/stal-alloys/brass-armor.json b/src/main/resources/data/minecraft/advancements/stal-alloys/brass-armor.json new file mode 100644 index 0000000..e99976c --- /dev/null +++ b/src/main/resources/data/minecraft/advancements/stal-alloys/brass-armor.json @@ -0,0 +1,84 @@ +{ + "parent": "minecraft:stal-alloys/alloys-brass", + "criteria": { + "brass_boots_crafted": { + "conditions": { + "items": [ + { + "items": [ + "stal-alloys:brass_boots" + ] + } + ] + }, + "trigger": "minecraft:inventory_changed" + }, + "brass_chestplate_crafted": { + "conditions": { + "items": [ + { + "items": [ + "stal-alloys:brass_chestplate" + ] + } + ] + }, + "trigger": "minecraft:inventory_changed" + }, + "brass_helment_crafted": { + "conditions": { + "items": [ + { + "items": [ + "stal-alloys:brass_helmet" + ] + } + ] + }, + "trigger": "minecraft:inventory_changed" + }, + "brass_leggings_crafted": { + "conditions": { + "items": [ + { + "items": [ + "stal-alloys:brass_leggings" + ] + } + ] + }, + "trigger": "minecraft:inventory_changed" + } + }, + "display": { + "description": { + "translate": "stal-alloys:advancement_brass_armor_description_text" + }, + "frame": "goal", + "icon": { + "item": "stal-alloys:brass_chestplate", + "nbt": "{Damage:0}" + }, + "title": { + "translate": "stal-alloys:advancement_brass_armor_title_text" + } + }, + "requirements": [ + [ + "brass_helment_crafted" + ], + [ + "brass_chestplate_crafted" + ], + [ + "brass_leggings_crafted" + ], + [ + "brass_boots_crafted" + ] + ], + "rewards": { + "experience": 18 + }, + "sends_telemetry_event": true +} \ No newline at end of file diff --git a/src/main/resources/data/minecraft/advancements/stal-alloys/bronze-weapons.json b/src/main/resources/data/minecraft/advancements/stal-alloys/bronze-weapons.json new file mode 100644 index 0000000..7ec888a --- /dev/null +++ b/src/main/resources/data/minecraft/advancements/stal-alloys/bronze-weapons.json @@ -0,0 +1,84 @@ +{ + "parent": "minecraft:stal-alloys/alloys-bronze", + "criteria": { + "bronze_axe_crafted": { + "conditions": { + "items": [ + { + "items": [ + "stal-alloys:bronze_axe" + ] + } + ] + }, + "trigger": "minecraft:inventory_changed" + }, + "bronze_dagger_crafted": { + "conditions": { + "items": [ + { + "items": [ + "stal-alloys:bronze_dagger" + ] + } + ] + }, + "trigger": "minecraft:inventory_changed" + }, + "bronze_dirk_crafted": { + "conditions": { + "items": [ + { + "items": [ + "stal-alloys:bronze_dirk" + ] + } + ] + }, + "trigger": "minecraft:inventory_changed" + }, + "bronze_sword_crafted": { + "conditions": { + "items": [ + { + "items": [ + "stal-alloys:bronze_sword" + ] + } + ] + }, + "trigger": "minecraft:inventory_changed" + } + }, + "display": { + "description": { + "translate": "stal-alloys:advancement_bronze_weapons_description_text" + }, + "frame": "goal", + "icon": { + "item": "stal-alloys:bronze_sword", + "nbt": "{Damage:0}" + }, + "title": { + "translate": "stal-alloys:advancement_bronze_weapons_title_text" + } + }, + "requirements": [ + [ + "bronze_axe_crafted" + ], + [ + "bronze_dagger_crafted" + ], + [ + "bronze_dirk_crafted" + ], + [ + "bronze_sword_crafted" + ] + ], + "rewards": { + "experience": 20 + }, + "sends_telemetry_event": true +} \ No newline at end of file diff --git a/src/main/resources/data/minecraft/advancements/stal-alloys/carbon-plate.json b/src/main/resources/data/minecraft/advancements/stal-alloys/carbon-plate.json new file mode 100644 index 0000000..2a588c4 --- /dev/null +++ b/src/main/resources/data/minecraft/advancements/stal-alloys/carbon-plate.json @@ -0,0 +1,37 @@ +{ + "parent": "minecraft:stal-alloys/alloys-carbon", + "criteria": { + "carbon_plate_acquired": { + "conditions": { + "items": [ + { + "items": [ + "stal-alloys:carbon_plate" + ] + } + ] + }, + "trigger": "minecraft:inventory_changed" + } + }, + "display": { + "description": { + "translate": "stal-alloys:advancement_carbon_plate_description_text" + }, + "icon": { + "item": "stal-alloys:carbon_plate" + }, + "title": { + "translate": "stal-alloys:advancement_carbon_plate_title_text" + } + }, + "requirements": [ + [ + "carbon_plate_acquired" + ] + ], + "rewards": { + "experience": 10 + }, + "sends_telemetry_event": true +} \ No newline at end of file diff --git a/src/main/resources/data/minecraft/advancements/stal-alloys/copper-tools.json b/src/main/resources/data/minecraft/advancements/stal-alloys/copper-tools.json new file mode 100644 index 0000000..cf18cbd --- /dev/null +++ b/src/main/resources/data/minecraft/advancements/stal-alloys/copper-tools.json @@ -0,0 +1,99 @@ +{ + "parent": "minecraft:stal-alloys/alloy-smelter-root", + "criteria": { + "copper_axe_crafted": { + "conditions": { + "items": [ + { + "items": [ + "stal-alloys:copper_axe" + ] + } + ] + }, + "trigger": "minecraft:inventory_changed" + }, + "copper_hoe_crafted": { + "conditions": { + "items": [ + { + "items": [ + "stal-alloys:copper_hoe" + ] + } + ] + }, + "trigger": "minecraft:inventory_changed" + }, + "copper_pickaxe_crafted": { + "conditions": { + "items": [ + { + "items": [ + "stal-alloys:copper_pickaxe" + ] + } + ] + }, + "trigger": "minecraft:inventory_changed" + }, + "copper_shovel_crafted": { + "conditions": { + "items": [ + { + "items": [ + "stal-alloys:copper_shovel" + ] + } + ] + }, + "trigger": "minecraft:inventory_changed" + }, + "copper_sword_crafted": { + "conditions": { + "items": [ + { + "items": [ + "stal-alloys:copper_sword" + ] + } + ] + }, + "trigger": "minecraft:inventory_changed" + } + }, + "display": { + "description": { + "translate": "stal-alloys:advancement_copper_tools_description_text" + }, + "frame": "goal", + "icon": { + "item": "stal-alloys:copper_pickaxe", + "nbt": "{Damage:0}" + }, + "title": { + "translate": "stal-alloys:advancement_copper_tools_title_text" + } + }, + "requirements": [ + [ + "copper_sword_crafted" + ], + [ + "copper_pickaxe_crafted" + ], + [ + "copper_axe_crafted" + ], + [ + "copper_shovel_crafted" + ], + [ + "copper_hoe_crafted" + ] + ], + "rewards": { + "experience": 20 + }, + "sends_telemetry_event": true +} \ No newline at end of file diff --git a/src/main/resources/data/minecraft/advancements/stal-alloys/nickel-decorative-blocks.json b/src/main/resources/data/minecraft/advancements/stal-alloys/nickel-decorative-blocks.json new file mode 100644 index 0000000..8830dbe --- /dev/null +++ b/src/main/resources/data/minecraft/advancements/stal-alloys/nickel-decorative-blocks.json @@ -0,0 +1,68 @@ +{ + "parent": "minecraft:stal-alloys/alloys-nickel", + "criteria": { + "cut_nickel_crafted": { + "conditions": { + "items": [ + { + "items": [ + "stal-alloys:cut_nickel" + ] + } + ] + }, + "trigger": "minecraft:inventory_changed" + }, + "cut_nickel_slab_crafted": { + "conditions": { + "items": [ + { + "items": [ + "stal-alloys:cut_nickel_slab" + ] + } + ] + }, + "trigger": "minecraft:inventory_changed" + }, + "cut_nickel_stairs_crafted": { + "conditions": { + "items": [ + { + "items": [ + "stal-alloys:cut_nickel_stairs" + ] + } + ] + }, + "trigger": "minecraft:inventory_changed" + } + }, + "display": { + "description": { + "translate": "stal-alloys:advancement_nickel_decor_description_text" + }, + "frame": "goal", + "icon": { + "item": "stal-alloys:cut_nickel" + }, + "title": { + "translate": "stal-alloys:advancement_nickel_decor_title_text" + } + }, + "requirements": [ + [ + "cut_nickel_crafted" + ], + [ + "cut_nickel_slab_crafted" + ], + [ + "cut_nickel_stairs_crafted" + ] + ], + "rewards": { + "experience": 20 + }, + "sends_telemetry_event": true +} \ No newline at end of file diff --git a/src/main/resources/data/minecraft/advancements/stal-alloys/stainless-steel-armor.json b/src/main/resources/data/minecraft/advancements/stal-alloys/stainless-steel-armor.json new file mode 100644 index 0000000..e0af278 --- /dev/null +++ b/src/main/resources/data/minecraft/advancements/stal-alloys/stainless-steel-armor.json @@ -0,0 +1,84 @@ +{ + "parent": "minecraft:stal-alloys/alloys-stainless-steel", + "criteria": { + "stainless_steel_boots_crafted": { + "conditions": { + "items": [ + { + "items": [ + "stal-alloys:stainless_steel_boots" + ] + } + ] + }, + "trigger": "minecraft:inventory_changed" + }, + "stainless_steel_chestplate_crafted": { + "conditions": { + "items": [ + { + "items": [ + "stal-alloys:stainless_steel_chestplate" + ] + } + ] + }, + "trigger": "minecraft:inventory_changed" + }, + "stainless_steel_helment_crafted": { + "conditions": { + "items": [ + { + "items": [ + "stal-alloys:stainless_steel_helmet" + ] + } + ] + }, + "trigger": "minecraft:inventory_changed" + }, + "stainless_steel_leggings_crafted": { + "conditions": { + "items": [ + { + "items": [ + "stal-alloys:stainless_steel_leggings" + ] + } + ] + }, + "trigger": "minecraft:inventory_changed" + } + }, + "display": { + "description": { + "translate": "stal-alloys:advancement_stainless_steel_armor_description_text" + }, + "frame": "goal", + "icon": { + "item": "stal-alloys:stainless_steel_chestplate", + "nbt": "{Damage:0}" + }, + "title": { + "translate": "stal-alloys:advancement_stainless_steel_armor_title_text" + } + }, + "requirements": [ + [ + "stainless_steel_helment_crafted" + ], + [ + "stainless_steel_chestplate_crafted" + ], + [ + "stainless_steel_leggings_crafted" + ], + [ + "stainless_steel_boots_crafted" + ] + ], + "rewards": { + "experience": 35 + }, + "sends_telemetry_event": true +} \ No newline at end of file diff --git a/src/main/resources/data/minecraft/advancements/stal-alloys/steel-tools.json b/src/main/resources/data/minecraft/advancements/stal-alloys/steel-tools.json new file mode 100644 index 0000000..d27903d --- /dev/null +++ b/src/main/resources/data/minecraft/advancements/stal-alloys/steel-tools.json @@ -0,0 +1,84 @@ +{ + "parent": "minecraft:stal-alloys/alloys-steel", + "criteria": { + "steel_axe_crafted": { + "conditions": { + "items": [ + { + "items": [ + "stal-alloys:steel_axe" + ] + } + ] + }, + "trigger": "minecraft:inventory_changed" + }, + "steel_hoe_crafted": { + "conditions": { + "items": [ + { + "items": [ + "stal-alloys:steel_hoe" + ] + } + ] + }, + "trigger": "minecraft:inventory_changed" + }, + "steel_pickaxe_crafted": { + "conditions": { + "items": [ + { + "items": [ + "stal-alloys:steel_pickaxe" + ] + } + ] + }, + "trigger": "minecraft:inventory_changed" + }, + "steel_shovel_crafted": { + "conditions": { + "items": [ + { + "items": [ + "stal-alloys:steel_shovel" + ] + } + ] + }, + "trigger": "minecraft:inventory_changed" + } + }, + "display": { + "description": { + "translate": "stal-alloys:advancement_steel_tools_description_text" + }, + "frame": "goal", + "icon": { + "item": "stal-alloys:steel_pickaxe", + "nbt": "{Damage:0}" + }, + "title": { + "translate": "stal-alloys:advancement_steel_tools_title_text" + } + }, + "requirements": [ + [ + "steel_pickaxe_crafted" + ], + [ + "steel_axe_crafted" + ], + [ + "steel_shovel_crafted" + ], + [ + "steel_hoe_crafted" + ] + ], + "rewards": { + "experience": 20 + }, + "sends_telemetry_event": true +} \ No newline at end of file