Skip to content

Commit

Permalink
feat: Recipe for Feather Headband
Browse files Browse the repository at this point in the history
  • Loading branch information
OrangeUtan committed Jul 3, 2021
1 parent 985b33c commit ce72523
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
{%- import 'advancements.json' as adv -%}
{{ adv.on_crafts_recipe("oran9eutan:hats/feather_headband", "oran9eutan:hats/event/recipe/feather_headband") }}
Original file line number Diff line number Diff line change
@@ -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
18 changes: 18 additions & 0 deletions datapack/data/oran9eutan/recipes/hats/feather_headband.json
Original file line number Diff line number Diff line change
@@ -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
}
}

0 comments on commit ce72523

Please sign in to comment.