From ce725232c401262589dadfabcd5e15bddc8562e9 Mon Sep 17 00:00:00 2001 From: Oran9eUtan Date: Sat, 3 Jul 2021 14:59:04 +0200 Subject: [PATCH] feat: Recipe for Feather Headband --- .../hats/event/recipe/feather_headband.json | 2 ++ .../event/recipe/feather_headband.mcfunction | 6 ++++++ .../recipes/hats/feather_headband.json | 18 ++++++++++++++++++ 3 files changed, 26 insertions(+) create mode 100644 datapack/data/oran9eutan/advancements/hats/event/recipe/feather_headband.json create mode 100644 datapack/data/oran9eutan/functions/hats/event/recipe/feather_headband.mcfunction create mode 100644 datapack/data/oran9eutan/recipes/hats/feather_headband.json diff --git a/datapack/data/oran9eutan/advancements/hats/event/recipe/feather_headband.json b/datapack/data/oran9eutan/advancements/hats/event/recipe/feather_headband.json new file mode 100644 index 0000000..a4488d7 --- /dev/null +++ b/datapack/data/oran9eutan/advancements/hats/event/recipe/feather_headband.json @@ -0,0 +1,2 @@ +{%- import 'advancements.json' as adv -%} +{{ adv.on_crafts_recipe("oran9eutan:hats/feather_headband", "oran9eutan:hats/event/recipe/feather_headband") }} diff --git a/datapack/data/oran9eutan/functions/hats/event/recipe/feather_headband.mcfunction b/datapack/data/oran9eutan/functions/hats/event/recipe/feather_headband.mcfunction new file mode 100644 index 0000000..e418fa6 --- /dev/null +++ b/datapack/data/oran9eutan/functions/hats/event/recipe/feather_headband.mcfunction @@ -0,0 +1,6 @@ +loot give @s loot oran9eutan:hats/hat/feather_headband +clear @s knowledge_book 1 + +# Reset +advancement revoke @s only oran9eutan:hats/event/recipe/feather_headband +recipe take @s oran9eutan:hats/feather_headband diff --git a/datapack/data/oran9eutan/recipes/hats/feather_headband.json b/datapack/data/oran9eutan/recipes/hats/feather_headband.json new file mode 100644 index 0000000..a4955ca --- /dev/null +++ b/datapack/data/oran9eutan/recipes/hats/feather_headband.json @@ -0,0 +1,18 @@ +{ + "type": "minecraft:crafting_shapeless", + "ingredients": [ + { + "item": "minecraft:leather" + }, + { + "item": "minecraft:feather" + }, + { + "item": "minecraft:feather" + } + ], + "result": { + "item": "minecraft:knowledge_book", + "count": 1 + } +}