From 732fc86889c85cb42437c9a5b59636c04bc11c43 Mon Sep 17 00:00:00 2001 From: Shadowfacts Date: Sun, 28 Mar 2021 14:53:11 -0400 Subject: [PATCH] Add Crafting Terminal recipe and advancement --- .../resources/assets/phycon/lang/en_us.json | 2 ++ .../advancements/crafting_terminal.json | 35 +++++++++++++++++++ .../recipes/crafting_terminal.json | 32 +++++++++++++++++ .../phycon/recipes/crafting_terminal.json | 17 +++++++++ 4 files changed, 86 insertions(+) create mode 100644 src/main/resources/data/phycon/advancements/crafting_terminal.json create mode 100644 src/main/resources/data/phycon/advancements/recipes/crafting_terminal.json create mode 100644 src/main/resources/data/phycon/recipes/crafting_terminal.json diff --git a/src/main/resources/assets/phycon/lang/en_us.json b/src/main/resources/assets/phycon/lang/en_us.json index 6f84be5..b520be1 100644 --- a/src/main/resources/assets/phycon/lang/en_us.json +++ b/src/main/resources/assets/phycon/lang/en_us.json @@ -80,6 +80,8 @@ "advancements.phycon.interface.description": "Place a Network Interface on a Cable to connect to a Chest", "advancements.phycon.terminal.title": "Spooky Action", "advancements.phycon.terminal.description": "Use a Terminal to interact with a Chest", + "advancements.phycon.crafting_terminal.title": "Multi-Tool", + "advancements.phycon.crafting_terminal.description": "Construct a Crafting Terminal", "advancements.phycon.switch.title": "Interchange", "advancements.phycon.switch.description": "Connect multiple devices with a Network Switch", "advancements.phycon.console.title": "Console", diff --git a/src/main/resources/data/phycon/advancements/crafting_terminal.json b/src/main/resources/data/phycon/advancements/crafting_terminal.json new file mode 100644 index 0000000..2c9e449 --- /dev/null +++ b/src/main/resources/data/phycon/advancements/crafting_terminal.json @@ -0,0 +1,35 @@ +{ + "parent": "phycon:terminal", + "display": { + "icon": { + "item": "phycon:crafting_terminal" + }, + "title": { + "translate": "advancements.phycon.crafting_terminal.title" + }, + "description": { + "translate": "advancements.phycon.crafting_terminal.description" + }, + "frame": "task", + "show_toast": true, + "announce_to_chat": true, + "hidden": false + }, + "criteria": { + "crafting_terminal": { + "trigger": "minecraft:inventory_changed", + "conditions": { + "items": [ + { + "item": "phycon:crafting_terminal" + } + ] + } + } + }, + "requirements": [ + [ + "crafting_terminal" + ] + ] +} diff --git a/src/main/resources/data/phycon/advancements/recipes/crafting_terminal.json b/src/main/resources/data/phycon/advancements/recipes/crafting_terminal.json new file mode 100644 index 0000000..c82ed1c --- /dev/null +++ b/src/main/resources/data/phycon/advancements/recipes/crafting_terminal.json @@ -0,0 +1,32 @@ +{ + "parent": "minecraft:recipes/root", + "rewards": { + "recipes": [ + "phycon:crafting_terminal" + ] + }, + "criteria": { + "has_terminal": { + "trigger": "minecraft:inventory_changed", + "conditions": { + "items": [ + { + "item": "phycon:terminal" + } + ] + } + }, + "has_the_recipe": { + "trigger": "minecraft:recipe_unlocked", + "conditions": { + "recipe": "phycon:crafting_terminal" + } + } + }, + "requirements": [ + [ + "has_terminal", + "has_the_recipe" + ] + ] +} diff --git a/src/main/resources/data/phycon/recipes/crafting_terminal.json b/src/main/resources/data/phycon/recipes/crafting_terminal.json new file mode 100644 index 0000000..edf7585 --- /dev/null +++ b/src/main/resources/data/phycon/recipes/crafting_terminal.json @@ -0,0 +1,17 @@ +{ + "type": "minecraft:crafting_shapeless", + "ingredients": [ + { + "item": "phycon:terminal" + }, + { + "item": "phycon:item_processor" + }, + { + "item": "minecraft:crafting_table" + } + ], + "result": { + "item": "phycon:crafting_terminal" + } +}