Skip to content

Commit

Permalink
added missing oculus key recipe
Browse files Browse the repository at this point in the history
  • Loading branch information
Elenterius committed Jun 17, 2021
1 parent 1ffba8b commit 1b69167
Show file tree
Hide file tree
Showing 3 changed files with 61 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
{
"parent": "minecraft:recipes/root",
"rewards": {
"recipes": [
"biomancy:oculus_key"
]
},
"criteria": {
"has_oculus": {
"trigger": "minecraft:inventory_changed",
"conditions": {
"items": [
{
"item": "biomancy:oculus"
}
]
}
},
"has_the_recipe": {
"trigger": "minecraft:recipe_unlocked",
"conditions": {
"recipe": "biomancy:oculus_key"
}
}
},
"requirements": [
[
"has_oculus",
"has_the_recipe"
]
]
}
24 changes: 24 additions & 0 deletions src/generated/resources/data/biomancy/recipes/oculus_key.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
{
"type": "minecraft:crafting_shaped",
"pattern": [
"FBO",
"SS "
],
"key": {
"F": {
"item": "biomancy:flesh_lump"
},
"B": {
"item": "minecraft:bone"
},
"O": {
"item": "biomancy:oculus"
},
"S": {
"item": "biomancy:bone_scraps"
}
},
"result": {
"item": "biomancy:oculus_key"
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -628,6 +628,11 @@ private void registerCookingRecipes(Consumer<IFinishedRecipe> consumer) {

private void registerWorkbenchRecipes(Consumer<IFinishedRecipe> consumer) {

ShapedRecipeBuilder.shapedRecipe(ModItems.OCULUS_KEY.get())
.key('F', ModItems.FLESH_LUMP.get()).key('B', Items.BONE).key('O', ModItems.OCULUS.get()).key('S', ModItems.BONE_SCRAPS.get())
.patternLine("FBO").patternLine("SS ")
.addCriterion("has_oculus", hasItem(ModItems.OCULUS.get())).build(consumer);

ShapedRecipeBuilder.shapedRecipe(ModItems.OCULUS.get())
.key('F', ModItems.FLESH_LUMP.get()).key('R', ModItems.REJUVENATING_MUCUS.get()).key('L', ModItems.MENISCUS_LENS.get()).key('E', Items.SPIDER_EYE)
.patternLine("FRF").patternLine("LER").patternLine("FRF")
Expand Down

0 comments on commit 1b69167

Please sign in to comment.