Skip to content

Commit

Permalink
Allow crafting of quartz fixtures from cable anchors to replace iron …
Browse files Browse the repository at this point in the history
…ingots
  • Loading branch information
shartte committed Mar 11, 2024
1 parent 013b244 commit ebbea42
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,34 @@
{
"parent": "minecraft:recipes/root",
"criteria": {
"has_charged_certus_quartz_crystal": {
"conditions": {
"items": [
{
"items": [
"ae2:charged_certus_quartz_crystal"
]
}
]
},
"trigger": "minecraft:inventory_changed"
},
"has_the_recipe": {
"conditions": {
"recipe": "ae2:decorative/quartz_fixture_from_anchors"
},
"trigger": "minecraft:recipe_unlocked"
}
},
"requirements": [
[
"has_the_recipe",
"has_charged_certus_quartz_crystal"
]
],
"rewards": {
"recipes": [
"ae2:decorative/quartz_fixture_from_anchors"
]
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
{
"type": "minecraft:crafting_shaped",
"category": "misc",
"key": {
"a": {
"item": "ae2:charged_certus_quartz_crystal"
},
"b": {
"item": "ae2:cable_anchor"
}
},
"pattern": [
"ab"
],
"result": {
"count": 2,
"item": "ae2:quartz_fixture"
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@

import static appeng.datagen.providers.recipes.RecipeCriteria.criterionName;

import appeng.core.definitions.AEParts;
import net.minecraft.data.PackOutput;
import net.minecraft.data.recipes.RecipeCategory;
import net.minecraft.data.recipes.RecipeOutput;
Expand Down Expand Up @@ -141,6 +142,13 @@ public void buildRecipes(RecipeOutput consumer) {
.unlockedBy(criterionName(AEItems.CERTUS_QUARTZ_CRYSTAL_CHARGED),
has(AEItems.CERTUS_QUARTZ_CRYSTAL_CHARGED))
.save(consumer, AppEng.makeId("decorative/quartz_fixture"));
ShapedRecipeBuilder.shaped(RecipeCategory.MISC, AEBlocks.QUARTZ_FIXTURE, 2)
.pattern("ab")
.define('a', AEItems.CERTUS_QUARTZ_CRYSTAL_CHARGED)
.define('b', AEParts.CABLE_ANCHOR)
.unlockedBy(criterionName(AEItems.CERTUS_QUARTZ_CRYSTAL_CHARGED),
has(AEItems.CERTUS_QUARTZ_CRYSTAL_CHARGED))
.save(consumer, AppEng.makeId("decorative/quartz_fixture_from_anchors"));

ShapedRecipeBuilder.shaped(RecipeCategory.MISC, AEBlocks.QUARTZ_GLASS, 4)
.pattern("aba")
Expand Down

0 comments on commit ebbea42

Please sign in to comment.