Skip to content

Commit

Permalink
feat: make Primal Flesh Block craftable
Browse files Browse the repository at this point in the history
  • Loading branch information
Elenterius committed Sep 9, 2024
1 parent 2f8b4d2 commit 534c007
Show file tree
Hide file tree
Showing 3 changed files with 65 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -266,6 +266,15 @@ private void buildWorkbenchRecipes(Consumer<FinishedRecipe> consumer) {
.unlockedBy(hasName(ModItems.MALIGNANT_FLESH_VEINS.get()), has(ModItems.MALIGNANT_FLESH_VEINS.get()))
.save(consumer);

WorkbenchRecipeBuilder.shaped(RecipeCategory.MISC, ModItems.PRIMAL_FLESH_BLOCK.get())
.define('F', ModItems.FLESH_BITS.get())
.define('V', ModItems.MALIGNANT_FLESH_BLOCK.get())
.pattern("VVV")
.pattern("VFV")
.pattern("VVV")
.unlockedBy(hasName(ModItems.MALIGNANT_FLESH_BLOCK.get()), has(ModItems.MALIGNANT_FLESH_BLOCK.get()))
.save(consumer);

WorkbenchRecipeBuilder.shaped(RecipeCategory.DECORATIONS, ModItems.PRIMORDIAL_BIO_LANTERN.get())
.define('B', ModItems.BLOOMBERRY.get())
.define('V', ModItems.MALIGNANT_FLESH_VEINS.get())
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
{
"parent": "minecraft:recipes/root",
"criteria": {
"has_malignant_flesh": {
"conditions": {
"items": [
{
"items": [
"biomancy:malignant_flesh"
]
}
]
},
"trigger": "minecraft:inventory_changed"
},
"has_the_recipe": {
"conditions": {
"recipe": "biomancy:primal_flesh"
},
"trigger": "minecraft:recipe_unlocked"
}
},
"requirements": [
[
"has_malignant_flesh",
"has_the_recipe"
]
],
"rewards": {
"recipes": [
"biomancy:primal_flesh"
]
},
"sends_telemetry_event": false
}
21 changes: 21 additions & 0 deletions src/generated/resources/data/biomancy/recipes/primal_flesh.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
{
"type": "minecraft:crafting_shaped",
"category": "misc",
"key": {
"F": {
"item": "biomancy:flesh_bits"
},
"V": {
"item": "biomancy:malignant_flesh"
}
},
"pattern": [
"VVV",
"VFV",
"VVV"
],
"result": {
"item": "biomancy:primal_flesh"
},
"show_notification": true
}

0 comments on commit 534c007

Please sign in to comment.