Search in sources :

Example 1 with CrystalIngredient

use of hellfirepvp.astralsorcery.common.crafting.helper.ingredient.CrystalIngredient in project AstralSorcery by HellFirePvP.

the class CelestialAltarRecipeProvider method registerRecipes.

private static void registerRecipes(Consumer<IFinishedRecipe> registrar) {
    SimpleAltarRecipeBuilder.ofType(AltarRecipeTypeHandler.ALTAR_UPGRADE_TRAIT).createRecipe(BlocksAS.ALTAR_RADIANCE, AltarType.CONSTELLATION).setStarlightRequirement(0.8F).setInputs(AltarRecipeGrid.builder().patternLine("RM MR").patternLine("ARLRA").patternLine("  C  ").patternLine("AR RA").patternLine("RM MR").key('C', new CrystalIngredient(false, true)).key('L', ItemsAS.GLASS_LENS).key('A', ItemsAS.RESONATING_GEM).key('M', BlocksAS.BLACK_MARBLE_RAW).key('R', BlocksAS.MARBLE_RUNED)).addOutput(BlocksAS.ALTAR_RADIANCE).addAltarEffect(// doesn't work?
    AltarRecipeEffectsAS.PILLAR_SPARKLE).addAltarEffect(AltarRecipeEffectsAS.LUMINESCENCE_FLARE).build(registrar);
    SimpleAltarRecipeBuilder.builder().createRecipe(BlocksAS.TREE_BEACON, AltarType.CONSTELLATION).setStarlightRequirement(0.6F).setInputs(AltarRecipeGrid.builder().patternLine("     ").patternLine(" LRL ").patternLine(" LSL ").patternLine(" LFL ").patternLine("MM MM").key('R', ItemsAS.RESONATING_GEM).key('L', ItemTags.LEAVES).key('S', ItemTags.SAPLINGS).key('F', FluidsAS.LIQUID_STARLIGHT_SOURCE).key('M', BlocksAS.MARBLE_RUNED)).addOutput(BlocksAS.TREE_BEACON).build(registrar);
    SimpleAltarRecipeBuilder.builder().createRecipe(BlocksAS.REFRACTION_TABLE, AltarType.CONSTELLATION).setStarlightRequirement(0.7F).setInputs(AltarRecipeGrid.builder().patternLine("D   D").patternLine("PR RP").patternLine(" S S ").patternLine("PBBBP").patternLine("M   M").key('S', TagsAS.Items.INGOTS_STARMETAL).key('R', ItemsAS.RESONATING_GEM).key('M', BlocksAS.MARBLE_RUNED).key('B', BlocksAS.BLACK_MARBLE_RUNED).key('D', Tags.Items.DYES).key('P', BlocksAS.INFUSED_WOOD_COLUMN)).addOutput(BlocksAS.REFRACTION_TABLE).addAltarEffect(AltarRecipeEffectsAS.ALTAR_RANDOM_SPARKLE).addAltarEffect(AltarRecipeEffectsAS.ALTAR_DEFAULT_LIGHTBEAM).build(registrar);
    SimpleAltarRecipeBuilder.builder().createRecipe(ItemsAS.INFUSED_GLASS, AltarType.CONSTELLATION).setStarlightRequirement(0.6F).setInputs(AltarRecipeGrid.builder().patternLine("S   S").patternLine("S   S").patternLine(" GLG ").patternLine("S   S").patternLine("S   S").key('L', TagsAS.Items.COLORED_LENS).key('G', ItemsAS.GLASS_LENS).key('S', TagsAS.Items.DUSTS_STARDUST)).addOutput(ItemsAS.INFUSED_GLASS).build(registrar);
    SimpleAltarRecipeBuilder.ofType(AltarRecipeTypeHandler.CONSTELLATION_CRYSTAL_AVERAGE).createRecipe(BlocksAS.PRISM, AltarType.CONSTELLATION).setStarlightRequirement(0.4F).setInputs(AltarRecipeGrid.builder().patternLine(" A A ").patternLine("GPSPG").patternLine(" LCL ").patternLine("EPSPE").patternLine("RR RR").key('C', new CrystalIngredient(false, false)).key('S', TagsAS.Items.DUSTS_STARDUST).key('A', ItemsAS.RESONATING_GEM).key('L', ItemsAS.GLASS_LENS).key('P', Tags.Items.GLASS_PANES).key('G', Tags.Items.INGOTS_GOLD).key('R', BlocksAS.MARBLE_RUNED).key('E', BlocksAS.INFUSED_WOOD_ENGRAVED)).addOutput(BlocksAS.PRISM).build(registrar);
    SimpleAltarRecipeBuilder.builder().createRecipe(NameUtil.suffixPath(ItemsAS.ENCHANTMENT_AMULET.getRegistryName(), "_init"), AltarType.CONSTELLATION).setStarlightRequirement(0.7F).setInputs(AltarRecipeGrid.builder().patternLine("     ").patternLine(" GTG ").patternLine(" SZS ").patternLine("S E S").patternLine(" S S ").key('G', Tags.Items.INGOTS_GOLD).key('T', Tags.Items.STRING).key('E', Items.ENDER_EYE).key('Z', ItemsAS.SHIFTING_STAR).key('S', TagsAS.Items.DUSTS_STARDUST)).addOutput(ItemsAS.ENCHANTMENT_AMULET).addAltarEffect(AltarRecipeEffectsAS.LARGE_DUST_SWIRL).build(registrar);
    SimpleAltarRecipeBuilder.builder().createRecipe(NameUtil.suffixPath(ItemsAS.ENCHANTMENT_AMULET.getRegistryName(), "_reroll"), AltarType.CONSTELLATION).setStarlightRequirement(0.7F).setInputs(AltarRecipeGrid.builder().patternLine("     ").patternLine("  R  ").patternLine("  A  ").patternLine("SSLSS").patternLine("     ").key('L', FluidsAS.LIQUID_STARLIGHT_SOURCE).key('A', ItemsAS.ENCHANTMENT_AMULET).key('R', ItemsAS.RESONATING_GEM).key('S', TagsAS.Items.DUSTS_STARDUST)).addOutput(ItemsAS.ENCHANTMENT_AMULET).addAltarEffect(AltarRecipeEffectsAS.LARGE_DUST_SWIRL).build(registrar);
    SimpleAltarRecipeBuilder.builder().createRecipe(BlocksAS.RITUAL_LINK, AltarType.CONSTELLATION).setStarlightRequirement(0.4F).setInputs(AltarRecipeGrid.builder().patternLine(" N N ").patternLine(" NGN ").patternLine(" LAL ").patternLine(" PSP ").patternLine(" P P ").key('L', ItemsAS.GLASS_LENS).key('P', Tags.Items.GLASS_PANES).key('G', Tags.Items.INGOTS_GOLD).key('N', Tags.Items.NUGGETS_GOLD).key('S', TagsAS.Items.DUSTS_STARDUST).key('A', ItemsAS.RESONATING_GEM)).addOutput(new ItemStack(BlocksAS.RITUAL_LINK, 2)).build(registrar);
    SimpleAltarRecipeBuilder.ofType(AltarRecipeTypeHandler.CONSTELLATION_COPY_CRYSTAL).createRecipe(BlocksAS.ROCK_COLLECTOR_CRYSTAL, AltarType.CONSTELLATION).modify(recipe -> recipe.setConstellationSlot(12)).setStarlightRequirement(0.65F).setInputs(AltarRecipeGrid.builder().patternLine("SI IS").patternLine("R   R").patternLine("  C  ").patternLine("R   R").patternLine("SI IS").key('C', new CrystalIngredient(true, false, false, false)).key('R', ItemsAS.RESONATING_GEM).key('S', TagsAS.Items.DUSTS_STARDUST).key('I', ItemsAS.ILLUMINATION_POWDER)).addOutput(BlocksAS.ROCK_COLLECTOR_CRYSTAL).build(registrar);
    SimpleAltarRecipeBuilder.ofType(AltarRecipeTypeHandler.CONSTELLATION_COPY_CRYSTAL).createRecipe(BlocksAS.CELESTIAL_COLLECTOR_CRYSTAL, AltarType.CONSTELLATION).modify(recipe -> recipe.setConstellationSlot(12)).setStarlightRequirement(0.65F).setInputs(AltarRecipeGrid.builder().patternLine("SI IS").patternLine("R   R").patternLine("  C  ").patternLine("R   R").patternLine("SI IS").key('C', new CrystalIngredient(true, true, false, true)).key('R', ItemsAS.RESONATING_GEM).key('S', TagsAS.Items.DUSTS_STARDUST).key('I', ItemsAS.ILLUMINATION_POWDER)).addOutput(BlocksAS.CELESTIAL_COLLECTOR_CRYSTAL).build(registrar);
    SimpleAltarRecipeBuilder.builder().createRecipe(ItemsAS.ILLUMINATION_WAND, AltarType.CONSTELLATION).setStarlightRequirement(0.7F).setInputs(AltarRecipeGrid.builder().patternLine("   I ").patternLine("  ISI").patternLine("  RI ").patternLine(" R   ").patternLine("R    ").key('R', BlocksAS.MARBLE_RUNED).key('I', ItemsAS.ILLUMINATION_POWDER).key('S', ItemsAS.SHIFTING_STAR)).addOutput(ItemsAS.ILLUMINATION_WAND).build(registrar);
    SimpleAltarRecipeBuilder.builder().createRecipe(BlocksAS.INFUSER, AltarType.CONSTELLATION).setStarlightRequirement(0.3F).setInputs(AltarRecipeGrid.builder().patternLine("     ").patternLine("PASAP").patternLine(" GLG ").patternLine("PRRRP").patternLine("PG GP").key('P', BlocksAS.MARBLE_PILLAR).key('R', BlocksAS.MARBLE_RUNED).key('A', ItemsAS.AQUAMARINE).key('G', Tags.Items.INGOTS_GOLD).key('L', FluidsAS.LIQUID_STARLIGHT_SOURCE).key('S', TagsAS.Items.INGOTS_STARMETAL)).addOutput(BlocksAS.INFUSER).build(registrar);
}
Also used : CrystalIngredient(hellfirepvp.astralsorcery.common.crafting.helper.ingredient.CrystalIngredient) ItemStack(net.minecraft.item.ItemStack)

Example 2 with CrystalIngredient

use of hellfirepvp.astralsorcery.common.crafting.helper.ingredient.CrystalIngredient in project AstralSorcery by HellFirePvP.

the class DiscoveryAltarRecipeProvider method registerRecipes.

private static void registerRecipes(Consumer<IFinishedRecipe> registrar) {
    SimpleAltarRecipeBuilder.ofType(AltarRecipeTypeHandler.ALTAR_UPGRADE_ATTUNEMENT).createRecipe(BlocksAS.ALTAR_ATTUNEMENT, AltarType.DISCOVERY).setStarlightRequirement(0.7F).setInputs(AltarRecipeGrid.builder().patternLine("PCP").patternLine("ELE").patternLine("P P").key('C', new CrystalIngredient(false, false)).key('L', FluidsAS.LIQUID_STARLIGHT_SOURCE).key('E', BlocksAS.MARBLE_CHISELED).key('P', BlocksAS.MARBLE_PILLAR)).addOutput(BlocksAS.ALTAR_ATTUNEMENT).build(registrar);
    SimpleAltarRecipeBuilder.builder().createRecipe(ItemsAS.WAND, AltarType.DISCOVERY).setStarlightRequirement(0.1F).setInputs(AltarRecipeGrid.builder().patternLine(" AE").patternLine(" MA").patternLine("M  ").key('A', ItemsAS.AQUAMARINE).key('E', Tags.Items.ENDER_PEARLS).key('M', BlocksAS.MARBLE_RAW)).addOutput(ItemsAS.WAND).build(registrar);
    SimpleAltarRecipeBuilder.builder().createRecipe(ItemsAS.HAND_TELESCOPE, AltarType.DISCOVERY).setStarlightRequirement(0.2F).setInputs(AltarRecipeGrid.builder().patternLine(" SL").patternLine("SGS").patternLine("PS ").key('S', Tags.Items.RODS_WOODEN).key('L', ItemsAS.GLASS_LENS).key('G', Tags.Items.INGOTS_GOLD).key('P', ItemTags.PLANKS)).addOutput(ItemsAS.HAND_TELESCOPE).build(registrar);
    SimpleAltarRecipeBuilder.builder().createRecipe(ItemsAS.RESONATOR, AltarType.DISCOVERY).setStarlightRequirement(0.15F).setInputs(AltarRecipeGrid.builder().patternLine(" A ").patternLine("MLM").patternLine("IGI").key('A', ItemsAS.AQUAMARINE).key('M', BlocksAS.MARBLE_RAW).key('L', FluidsAS.LIQUID_STARLIGHT_SOURCE).key('G', Tags.Items.INGOTS_GOLD).key('I', BlocksAS.INFUSED_WOOD)).addOutput(ItemResonator.setCurrentUpgradeUnsafe(ItemResonator.setUpgradeUnlocked(new ItemStack(ItemsAS.RESONATOR), ItemResonator.ResonatorUpgrade.STARLIGHT), ItemResonator.ResonatorUpgrade.STARLIGHT)).build(registrar);
    SimpleAltarRecipeBuilder.builder().createRecipe(ItemsAS.TOME, AltarType.DISCOVERY).setStarlightRequirement(0.1F).setInputs(AltarRecipeGrid.builder().patternLine(" P ").patternLine("ABA").patternLine(" A ").key('A', ItemsAS.AQUAMARINE).key('B', Items.BOOK).key('P', ItemsAS.PARCHMENT)).addOutput(ItemsAS.TOME).build(registrar);
    SimpleAltarRecipeBuilder.builder().createRecipe(ItemsAS.PARCHMENT, AltarType.DISCOVERY).setStarlightRequirement(0.1F).setInputs(AltarRecipeGrid.builder().patternLine(" P ").patternLine("PAP").patternLine(" P ").key('A', ItemsAS.AQUAMARINE).key('P', Items.PAPER)).addOutput(ItemsAS.PARCHMENT).build(registrar);
    SimpleAltarRecipeBuilder.builder().createRecipe(ItemsAS.GLASS_LENS, AltarType.DISCOVERY).setStarlightRequirement(0.2F).setInputs(AltarRecipeGrid.builder().patternLine(" P ").patternLine("PAP").patternLine(" P ").key('A', Tags.Items.GLASS_PANES).key('P', ItemsAS.AQUAMARINE)).addOutput(ItemsAS.GLASS_LENS).build(registrar);
    SimpleAltarRecipeBuilder.builder().createRecipe(BlocksAS.SPECTRAL_RELAY, AltarType.DISCOVERY).setStarlightRequirement(0.2F).setInputs(AltarRecipeGrid.builder().patternLine("NGN").patternLine("PMP").key('N', Tags.Items.NUGGETS_GOLD).key('G', ItemsAS.GLASS_LENS).key('P', ItemTags.PLANKS).key('M', BlocksAS.MARBLE_RAW)).addOutput(BlocksAS.SPECTRAL_RELAY).build(registrar);
    SimpleAltarRecipeBuilder.builder().createRecipe(BlocksAS.WELL, AltarType.DISCOVERY).setStarlightRequirement(0.2F).setInputs(AltarRecipeGrid.builder().patternLine("R R").patternLine("CZC").patternLine("ARA").key('A', ItemsAS.AQUAMARINE).key('R', BlocksAS.MARBLE_RUNED).key('C', BlocksAS.MARBLE_CHISELED).key('Z', new CrystalIngredient(false, false))).addOutput(BlocksAS.WELL).build(registrar);
    SimpleAltarRecipeBuilder.builder().createRecipe(BlocksAS.ILLUMINATOR, AltarType.DISCOVERY).setStarlightRequirement(0.8F).setInputs(AltarRecipeGrid.builder().patternLine("RIR").patternLine("A A").patternLine("RIR").key('A', ItemsAS.AQUAMARINE).key('R', BlocksAS.MARBLE_RUNED).key('I', ItemsAS.ILLUMINATION_POWDER)).addOutput(BlocksAS.ILLUMINATOR).build(registrar);
    SimpleAltarRecipeBuilder.builder().createRecipe(ItemsAS.ILLUMINATION_POWDER, AltarType.DISCOVERY).setStarlightRequirement(0.4F).multiplyDuration(0.6F).setInputs(AltarRecipeGrid.builder().patternLine(" G ").patternLine("GAG").patternLine(" G ").key('A', ItemsAS.AQUAMARINE).key('G', Tags.Items.DUSTS_GLOWSTONE)).addOutput(new ItemStack(ItemsAS.ILLUMINATION_POWDER, 16)).build(registrar);
    SimpleAltarRecipeBuilder.builder().createRecipe(ItemsAS.NOCTURNAL_POWDER, AltarType.DISCOVERY).setStarlightRequirement(0.8F).setInputs(AltarRecipeGrid.builder().patternLine(" D ").patternLine("CPC").patternLine(" B ").key('C', ItemTags.COALS).key('B', Tags.Items.DYES_BLUE).key('D', Tags.Items.DYES_BLACK).key('P', ItemsAS.ILLUMINATION_POWDER)).addOutput(new ItemStack(ItemsAS.NOCTURNAL_POWDER, 4)).build(registrar);
    SimpleAltarRecipeBuilder.ofType(AltarRecipeTypeHandler.CONSTELLATION_CRYSTAL_MERGE).createRecipe(ItemsAS.CRYSTAL_AXE, AltarType.DISCOVERY).setStarlightRequirement(0.5F).multiplyDuration(1.75F).setInputs(AltarRecipeGrid.builder().patternLine("CC").patternLine("CS").patternLine(" S").key('S', Tags.Items.RODS_WOODEN).key('C', new CrystalIngredient(false, false))).addOutput(ItemsAS.CRYSTAL_AXE).build(registrar);
    SimpleAltarRecipeBuilder.ofType(AltarRecipeTypeHandler.CONSTELLATION_CRYSTAL_MERGE).createRecipe(ItemsAS.CRYSTAL_PICKAXE, AltarType.DISCOVERY).setStarlightRequirement(0.5F).multiplyDuration(1.75F).setInputs(AltarRecipeGrid.builder().patternLine("CCC").patternLine(" S ").patternLine(" S ").key('S', Tags.Items.RODS_WOODEN).key('C', new CrystalIngredient(false, false))).addOutput(ItemsAS.CRYSTAL_PICKAXE).build(registrar);
    SimpleAltarRecipeBuilder.ofType(AltarRecipeTypeHandler.CONSTELLATION_CRYSTAL_MERGE).createRecipe(ItemsAS.CRYSTAL_SHOVEL, AltarType.DISCOVERY).setStarlightRequirement(0.5F).multiplyDuration(1.75F).setInputs(AltarRecipeGrid.builder().patternLine("C").patternLine("S").patternLine("S").key('S', Tags.Items.RODS_WOODEN).key('C', new CrystalIngredient(false, false))).addOutput(ItemsAS.CRYSTAL_SHOVEL).build(registrar);
    SimpleAltarRecipeBuilder.ofType(AltarRecipeTypeHandler.CONSTELLATION_CRYSTAL_MERGE).createRecipe(ItemsAS.CRYSTAL_SWORD, AltarType.DISCOVERY).setStarlightRequirement(0.5F).multiplyDuration(1.75F).setInputs(AltarRecipeGrid.builder().patternLine("C").patternLine("C").patternLine("S").key('S', Tags.Items.RODS_WOODEN).key('C', new CrystalIngredient(false, false))).addOutput(ItemsAS.CRYSTAL_SWORD).build(registrar);
}
Also used : CrystalIngredient(hellfirepvp.astralsorcery.common.crafting.helper.ingredient.CrystalIngredient) ItemStack(net.minecraft.item.ItemStack)

Example 3 with CrystalIngredient

use of hellfirepvp.astralsorcery.common.crafting.helper.ingredient.CrystalIngredient in project AstralSorcery by HellFirePvP.

the class RadianceAltarRecipeProvider method registerRecipes.

private static void registerRecipes(Consumer<IFinishedRecipe> registrar) {
    SimpleAltarRecipeBuilder.builder().createRecipe(ItemsAS.MANTLE, AltarType.RADIANCE).setStarlightRequirement(0.6F).setInputs(AltarRecipeGrid.builder().patternLine("     ").patternLine("R C R").patternLine("RIAIR").patternLine("SI IS").patternLine("S   S").key('C', new CrystalIngredient(false, false)).key('A', Items.LEATHER_CHESTPLATE).key('I', ItemsAS.ILLUMINATION_POWDER).key('R', ItemsAS.RESONATING_GEM).key('S', TagsAS.Items.DUSTS_STARDUST)).addRelayInput(TagsAS.Items.INGOTS_STARMETAL).addRelayInput(TagsAS.Items.DUSTS_STARDUST).addRelayInput(Tags.Items.FEATHERS).addRelayInput(Tags.Items.ENDER_PEARLS).addOutput(ItemsAS.MANTLE).build(registrar);
    SimpleAltarRecipeBuilder.ofType(AltarRecipeTypeHandler.NBT_COPY).createRecipe(NameUtil.suffixPath(ItemsAS.RESONATOR.getRegistryName(), "_upgrade_ichosic"), AltarType.RADIANCE).modify(recipe -> recipe.addNBTCopyMatchIngredient(ItemsAS.RESONATOR)).setFocusConstellation(ConstellationsAS.octans).setStarlightRequirement(0.8F).setInputs(AltarRecipeGrid.builder().patternLine("  I  ").patternLine("S R S").patternLine(" SLS ").patternLine("  S  ").patternLine(" GGG ").key('R', ItemsAS.RESONATOR).key('L', FluidsAS.LIQUID_STARLIGHT_SOURCE).key('S', TagsAS.Items.DUSTS_STARDUST).key('I', ItemsAS.ILLUMINATION_POWDER).key('G', ItemsAS.RESONATING_GEM)).addOutput(ItemResonator.setCurrentUpgradeUnsafe(ItemResonator.setUpgradeUnlocked(new ItemStack(ItemsAS.RESONATOR), ItemResonator.ResonatorUpgrade.STARLIGHT, ItemResonator.ResonatorUpgrade.FLUID_FIELDS), ItemResonator.ResonatorUpgrade.FLUID_FIELDS)).build(registrar);
    SimpleAltarRecipeBuilder.builder().createRecipe(BlocksAS.FOUNTAIN, AltarType.RADIANCE).setStarlightRequirement(0.5F).setInputs(AltarRecipeGrid.builder().patternLine("WSSSW").patternLine("WMCMW").patternLine("WGRGW").patternLine(" MRM ").patternLine("     ").key('C', new CrystalIngredient(false, false)).key('G', Tags.Items.INGOTS_GOLD).key('W', BlocksAS.INFUSED_WOOD_PLANKS).key('S', BlocksAS.BLACK_MARBLE_RAW).key('M', TagsAS.Items.INGOTS_STARMETAL).key('R', ItemsAS.RESONATING_GEM)).addOutput(BlocksAS.FOUNTAIN).addRelayInput(TagsAS.Items.FORGE_GEM_AQUAMARINE).addRelayInput(TagsAS.Items.DUSTS_STARDUST).addRelayInput(TagsAS.Items.FORGE_GEM_AQUAMARINE).addRelayInput(TagsAS.Items.DUSTS_STARDUST).build(registrar);
    SimpleAltarRecipeBuilder.builder().createRecipe(BlocksAS.FOUNTAIN_PRIME_LIQUID, AltarType.RADIANCE).setStarlightRequirement(0.7F).setFocusConstellation(ConstellationsAS.octans).setInputs(AltarRecipeGrid.builder().patternLine("GSSSG").patternLine("RG GR").patternLine(" MLM ").patternLine(" R R ").patternLine(" RLR ").key('R', ItemsAS.RESONATING_GEM).key('G', Tags.Items.INGOTS_GOLD).key('M', TagsAS.Items.INGOTS_STARMETAL).key('L', ItemsAS.GLASS_LENS).key('S', BlocksAS.BLACK_MARBLE_RAW)).addOutput(BlocksAS.FOUNTAIN_PRIME_LIQUID).addRelayInput(TagsAS.Items.DUSTS_STARDUST).addRelayInput(TagsAS.Items.DUSTS_STARDUST).addRelayInput(TagsAS.Items.DUSTS_STARDUST).addAltarEffect(AltarRecipeEffectsAS.LIQUID_BURST).build(registrar);
    SimpleAltarRecipeBuilder.builder().createRecipe(BlocksAS.FOUNTAIN_PRIME_VORTEX, AltarType.RADIANCE).setStarlightRequirement(0.7F).setFocusConstellation(ConstellationsAS.vicio).setInputs(AltarRecipeGrid.builder().patternLine("GSSSG").patternLine(" GRG ").patternLine("M L M").patternLine("M   M").patternLine(" M M ").key('R', ItemsAS.RESONATING_GEM).key('G', Tags.Items.INGOTS_GOLD).key('M', TagsAS.Items.INGOTS_STARMETAL).key('L', ItemsAS.GLASS_LENS).key('S', BlocksAS.BLACK_MARBLE_RAW)).addOutput(BlocksAS.FOUNTAIN_PRIME_VORTEX).addRelayInput(ItemsAS.NOCTURNAL_POWDER).addRelayInput(TagsAS.Items.DUSTS_STARDUST).addRelayInput(ItemsAS.NOCTURNAL_POWDER).addRelayInput(TagsAS.Items.DUSTS_STARDUST).addAltarEffect(AltarRecipeEffectsAS.VORTEX_PLANE).build(registrar);
    SimpleAltarRecipeBuilder.builder().createRecipe(BlocksAS.CHALICE, AltarType.RADIANCE).setStarlightRequirement(0.5F).setInputs(AltarRecipeGrid.builder().patternLine("     ").patternLine("R   R").patternLine("RGSGR").patternLine(" MSM ").patternLine(" GSG ").key('R', ItemsAS.RESONATING_GEM).key('G', Tags.Items.INGOTS_GOLD).key('S', BlocksAS.BLACK_MARBLE_RAW).key('M', TagsAS.Items.INGOTS_STARMETAL)).addOutput(BlocksAS.CHALICE).addRelayInput(ItemsAS.AQUAMARINE).addRelayInput(ItemsAS.AQUAMARINE).addRelayInput(ItemsAS.AQUAMARINE).addRelayInput(ItemsAS.AQUAMARINE).addRelayInput(ItemsAS.AQUAMARINE).build(registrar);
    SimpleAltarRecipeBuilder.builder().createRecipe(BlocksAS.OBSERVATORY, AltarType.RADIANCE).setFocusConstellation(ConstellationsAS.lucerna).setStarlightRequirement(0.4F).setInputs(AltarRecipeGrid.builder().patternLine("  NRL").patternLine(" NRIR").patternLine("NRLRN").patternLine("G RN ").patternLine("GGG  ").key('N', Tags.Items.NUGGETS_GOLD).key('I', ItemsAS.INFUSED_GLASS).key('G', Tags.Items.INGOTS_GOLD).key('R', BlocksAS.MARBLE_RUNED).key('L', ItemsAS.GLASS_LENS)).addOutput(BlocksAS.OBSERVATORY).addRelayInput(ItemsAS.ILLUMINATION_POWDER).addRelayInput(ItemsAS.NOCTURNAL_POWDER).addRelayInput(ItemsAS.ILLUMINATION_POWDER).addRelayInput(TagsAS.Items.DUSTS_STARDUST).addRelayInput(ItemsAS.ILLUMINATION_POWDER).addRelayInput(ItemsAS.NOCTURNAL_POWDER).addRelayInput(ItemsAS.ILLUMINATION_POWDER).addRelayInput(TagsAS.Items.DUSTS_STARDUST).build(registrar);
    registerShiftingStarRecipe(registrar, ConstellationsAS.aevitas, ItemsAS.SHIFTING_STAR_AEVITAS);
    registerShiftingStarRecipe(registrar, ConstellationsAS.armara, ItemsAS.SHIFTING_STAR_ARMARA);
    registerShiftingStarRecipe(registrar, ConstellationsAS.discidia, ItemsAS.SHIFTING_STAR_DISCIDIA);
    registerShiftingStarRecipe(registrar, ConstellationsAS.evorsio, ItemsAS.SHIFTING_STAR_EVORSIO);
    registerShiftingStarRecipe(registrar, ConstellationsAS.vicio, ItemsAS.SHIFTING_STAR_VICIO);
}
Also used : Tags(net.minecraftforge.common.Tags) Ingredient(net.minecraft.item.crafting.Ingredient) ItemResonator(hellfirepvp.astralsorcery.common.item.ItemResonator) hellfirepvp.astralsorcery.common.lib(hellfirepvp.astralsorcery.common.lib) Item(net.minecraft.item.Item) SimpleAltarRecipeBuilder(hellfirepvp.astralsorcery.common.crafting.builder.SimpleAltarRecipeBuilder) ConstellationBaseItemRecipe(hellfirepvp.astralsorcery.common.crafting.recipe.altar.builtin.ConstellationBaseItemRecipe) ConstellationBaseNBTCopyRecipe(hellfirepvp.astralsorcery.common.crafting.recipe.altar.builtin.ConstellationBaseNBTCopyRecipe) IMajorConstellation(hellfirepvp.astralsorcery.common.constellation.IMajorConstellation) Items(net.minecraft.item.Items) NameUtil(hellfirepvp.astralsorcery.common.util.NameUtil) AltarRecipeGrid(hellfirepvp.astralsorcery.common.crafting.recipe.altar.AltarRecipeGrid) Consumer(java.util.function.Consumer) ItemStack(net.minecraft.item.ItemStack) List(java.util.List) Mods(hellfirepvp.astralsorcery.common.base.Mods) IWeakConstellation(hellfirepvp.astralsorcery.common.constellation.IWeakConstellation) AstralSorcery(hellfirepvp.astralsorcery.AstralSorcery) CrystalIngredient(hellfirepvp.astralsorcery.common.crafting.helper.ingredient.CrystalIngredient) IConstellation(hellfirepvp.astralsorcery.common.constellation.IConstellation) IFinishedRecipe(net.minecraft.data.IFinishedRecipe) AltarType(hellfirepvp.astralsorcery.common.block.tile.altar.AltarType) AltarRecipeTypeHandler(hellfirepvp.astralsorcery.common.crafting.recipe.altar.AltarRecipeTypeHandler) CrystalIngredient(hellfirepvp.astralsorcery.common.crafting.helper.ingredient.CrystalIngredient) ItemStack(net.minecraft.item.ItemStack)

Example 4 with CrystalIngredient

use of hellfirepvp.astralsorcery.common.crafting.helper.ingredient.CrystalIngredient in project AstralSorcery by HellFirePvP.

the class AttunementAltarRecipeProvider method registerRecipes.

private static void registerRecipes(Consumer<IFinishedRecipe> registrar) {
    SimpleAltarRecipeBuilder.ofType(AltarRecipeTypeHandler.ALTAR_UPGRADE_CONSTELLATION).createRecipe(BlocksAS.ALTAR_CONSTELLATION, AltarType.ATTUNEMENT).setStarlightRequirement(0.7F).setInputs(AltarRecipeGrid.builder().patternLine("S   S").patternLine(" A A ").patternLine(" MCM ").patternLine(" PIP ").patternLine("M   M").key('C', new CrystalIngredient(false, false)).key('S', TagsAS.Items.DUSTS_STARDUST).key('I', TagsAS.Items.INGOTS_STARMETAL).key('A', ItemsAS.AQUAMARINE).key('M', BlocksAS.MARBLE_CHISELED).key('P', BlocksAS.MARBLE_PILLAR)).addOutput(BlocksAS.ALTAR_CONSTELLATION).build(registrar);
    SimpleAltarRecipeBuilder.ofType(AltarRecipeTypeHandler.NBT_COPY).createRecipe(NameUtil.suffixPath(ItemsAS.RESONATOR.getRegistryName(), "_upgrade_domic"), AltarType.ATTUNEMENT).modify(recipe -> recipe.addNBTCopyMatchIngredient(ItemsAS.RESONATOR)).setStarlightRequirement(0.4F).setInputs(AltarRecipeGrid.builder().patternLine("I   I").patternLine(" I I ").patternLine(" GRG ").patternLine(" S S ").patternLine("S   S").key('I', ItemsAS.ILLUMINATION_POWDER).key('G', ItemsAS.GLASS_LENS).key('S', TagsAS.Items.DUSTS_STARDUST).key('R', ItemsAS.RESONATOR)).addOutput(ItemResonator.setCurrentUpgradeUnsafe(ItemResonator.setUpgradeUnlocked(new ItemStack(ItemsAS.RESONATOR), ItemResonator.ResonatorUpgrade.STARLIGHT, ItemResonator.ResonatorUpgrade.AREA_SIZE), ItemResonator.ResonatorUpgrade.AREA_SIZE)).build(registrar);
    SimpleAltarRecipeBuilder.builder().createRecipe(BlocksAS.TELESCOPE, AltarType.ATTUNEMENT).setStarlightRequirement(0.4F).setInputs(AltarRecipeGrid.builder().patternLine(" T ").patternLine("GPG").patternLine("SSS").key('T', ItemsAS.HAND_TELESCOPE).key('G', Tags.Items.INGOTS_GOLD).key('P', ItemTags.PLANKS).key('S', Tags.Items.RODS_WOODEN)).addOutput(BlocksAS.TELESCOPE).build(registrar);
    SimpleAltarRecipeBuilder.builder().createRecipe(BlocksAS.GATEWAY, AltarType.ATTUNEMENT).setStarlightRequirement(0.7F).setInputs(AltarRecipeGrid.builder().patternLine("S   S").patternLine("  N  ").patternLine(" LCL ").patternLine(" RSR ").patternLine("G   G").key('S', TagsAS.Items.DUSTS_STARDUST).key('G', Tags.Items.INGOTS_GOLD).key('R', BlocksAS.MARBLE_RUNED).key('C', new CrystalIngredient(false, false)).key('L', ItemsAS.GLASS_LENS).key('N', ItemsAS.NOCTURNAL_POWDER)).addOutput(BlocksAS.GATEWAY).addAltarEffect(AltarRecipeEffectsAS.GATEWAY_EDGE).build(registrar);
    SimpleAltarRecipeBuilder.builder().createRecipe(BlocksAS.RITUAL_PEDESTAL, AltarType.ATTUNEMENT).setStarlightRequirement(0.7F).setInputs(AltarRecipeGrid.builder().patternLine("G   G").patternLine(" MCM ").patternLine(" PLP ").patternLine(" RRR ").patternLine("P   P").key('C', new CrystalIngredient(false, false)).key('L', FluidsAS.LIQUID_STARLIGHT_SOURCE).key('G', Tags.Items.INGOTS_GOLD).key('M', BlocksAS.MARBLE_CHISELED).key('P', BlocksAS.MARBLE_PILLAR).key('R', BlocksAS.MARBLE_RUNED)).addOutput(BlocksAS.RITUAL_PEDESTAL).build(registrar);
    SimpleAltarRecipeBuilder.ofType(AltarRecipeTypeHandler.CRYSTAL_SET_COUNT).createRecipe(BlocksAS.LENS, AltarType.ATTUNEMENT).setStarlightRequirement(0.3F).setInputs(AltarRecipeGrid.builder().patternLine("     ").patternLine(" ALA ").patternLine(" LCL ").patternLine(" WGW ").patternLine("R   R").key('C', new CrystalIngredient(false, false)).key('A', ItemsAS.AQUAMARINE).key('L', ItemsAS.GLASS_LENS).key('W', BlocksAS.INFUSED_WOOD_ENGRAVED).key('G', Tags.Items.INGOTS_GOLD).key('R', BlocksAS.MARBLE_RUNED)).addOutput(BlocksAS.LENS).build(registrar);
    SimpleAltarRecipeBuilder.builder().createRecipe(BlocksAS.ATTUNEMENT_ALTAR, AltarType.ATTUNEMENT).setStarlightRequirement(0.8F).setInputs(AltarRecipeGrid.builder().patternLine("A   A").patternLine("  C  ").patternLine(" M M ").patternLine(" RSR ").patternLine("R   R").key('C', new CrystalIngredient(false, false)).key('A', ItemsAS.AQUAMARINE).key('M', TagsAS.Items.INGOTS_STARMETAL).key('S', BlocksAS.SPECTRAL_RELAY).key('R', BlocksAS.MARBLE_RUNED)).addOutput(BlocksAS.ATTUNEMENT_ALTAR).addAltarEffect(AltarRecipeEffectsAS.ALTAR_DEFAULT_SPARKLE).addAltarEffect(AltarRecipeEffectsAS.ALTAR_DEFAULT_LIGHTBEAM).addAltarEffect(AltarRecipeEffectsAS.PILLAR_SPARKLE).build(registrar);
    SimpleAltarRecipeBuilder.builder().createRecipe(ItemsAS.PERK_SEAL, AltarType.ATTUNEMENT).setStarlightRequirement(0.1F).setInputs(AltarRecipeGrid.builder().patternLine("N   N").patternLine("     ").patternLine(" SLS ").patternLine("     ").patternLine("N   N").key('N', ItemsAS.NOCTURNAL_POWDER).key('S', TagsAS.Items.DUSTS_STARDUST).key('L', ItemsAS.GLASS_LENS)).addOutput(new ItemStack(ItemsAS.PERK_SEAL, 4)).build(registrar);
    SimpleAltarRecipeBuilder.builder().createRecipe(ItemsAS.KNOWLEDGE_SHARE, AltarType.ATTUNEMENT).setStarlightRequirement(0.7F).setInputs(AltarRecipeGrid.builder().patternLine("I   I").patternLine("  F  ").patternLine(" SPS ").patternLine("  B  ").patternLine("I   I").key('I', ItemsAS.ILLUMINATION_POWDER).key('F', Tags.Items.FEATHERS).key('S', TagsAS.Items.DUSTS_STARDUST).key('P', ItemsAS.PARCHMENT).key('B', Tags.Items.DYES_BLACK)).addOutput(ItemsAS.KNOWLEDGE_SHARE).build(registrar);
    SimpleAltarRecipeBuilder.builder().createRecipe(ItemsAS.GRAPPLE_WAND, AltarType.ATTUNEMENT).setStarlightRequirement(0.6F).setInputs(AltarRecipeGrid.builder().patternLine("     ").patternLine("  SB ").patternLine(" BR  ").patternLine(" R   ").patternLine("R    ").key('S', TagsAS.Items.DUSTS_STARDUST).key('B', Tags.Items.DYES_BLUE).key('R', BlocksAS.MARBLE_RUNED)).addOutput(ItemsAS.GRAPPLE_WAND).build(registrar);
    SimpleAltarRecipeBuilder.builder().createRecipe(ItemsAS.ARCHITECT_WAND, AltarType.ATTUNEMENT).setStarlightRequirement(0.6F).setInputs(AltarRecipeGrid.builder().patternLine("     ").patternLine("  SP ").patternLine(" PRS ").patternLine(" R   ").patternLine("R    ").key('S', TagsAS.Items.DUSTS_STARDUST).key('P', Tags.Items.DYES_PURPLE).key('R', BlocksAS.MARBLE_RUNED)).addOutput(ItemsAS.ARCHITECT_WAND).build(registrar);
    SimpleAltarRecipeBuilder.builder().createRecipe(ItemsAS.EXCHANGE_WAND, AltarType.ATTUNEMENT).setStarlightRequirement(0.6F).setInputs(AltarRecipeGrid.builder().patternLine("     ").patternLine("  SD ").patternLine(" DR  ").patternLine(" R   ").patternLine("R    ").key('S', TagsAS.Items.DUSTS_STARDUST).key('D', Tags.Items.GEMS_DIAMOND).key('R', BlocksAS.MARBLE_RUNED)).addOutput(ItemsAS.EXCHANGE_WAND).build(registrar);
    SimpleAltarRecipeBuilder.builder().createRecipe(ItemsAS.BLINK_WAND, AltarType.ATTUNEMENT).setStarlightRequirement(0.6F).setInputs(AltarRecipeGrid.builder().patternLine("     ").patternLine("  E  ").patternLine(" ERS ").patternLine(" RD  ").patternLine("R    ").key('S', TagsAS.Items.DUSTS_STARDUST).key('D', Tags.Items.GEMS_DIAMOND).key('E', Tags.Items.ENDER_PEARLS).key('R', BlocksAS.MARBLE_RUNED)).addOutput(ItemsAS.BLINK_WAND).build(registrar);
    SimpleAltarRecipeBuilder.builder().createRecipe(ItemsAS.LINKING_TOOL, AltarType.ATTUNEMENT).setStarlightRequirement(0.3F).setInputs(AltarRecipeGrid.builder().patternLine("     ").patternLine(" SA  ").patternLine(" SCA ").patternLine(" LSS ").patternLine("L    ").key('C', new CrystalIngredient(false, false)).key('S', Tags.Items.RODS_WOODEN).key('L', ItemTags.LOGS).key('A', ItemsAS.AQUAMARINE)).addOutput(ItemsAS.LINKING_TOOL).build(registrar);
    SimpleAltarRecipeBuilder.builder().createRecipe(ItemsAS.SHIFTING_STAR, AltarType.ATTUNEMENT).setStarlightRequirement(0.8F).setInputs(AltarRecipeGrid.builder().patternLine("A   A").patternLine(" S S ").patternLine(" ILI ").patternLine(" S S ").patternLine("A   A").key('L', FluidsAS.LIQUID_STARLIGHT_SOURCE).key('I', ItemsAS.ILLUMINATION_POWDER).key('S', TagsAS.Items.DUSTS_STARDUST).key('A', ItemsAS.AQUAMARINE)).addOutput(ItemsAS.SHIFTING_STAR).build(registrar);
    SimpleAltarRecipeBuilder.builder().createRecipe(ItemsAS.CHISEL, AltarType.ATTUNEMENT).setStarlightRequirement(0.4F).setInputs(AltarRecipeGrid.builder().patternLine("     ").patternLine("  GS ").patternLine("  PG ").patternLine(" P   ").patternLine("G    ").key('S', TagsAS.Items.INGOTS_STARMETAL).key('G', Tags.Items.NUGGETS_GOLD).key('P', BlocksAS.INFUSED_WOOD_PLANKS)).addOutput(ItemsAS.CHISEL).build(registrar);
}
Also used : CrystalIngredient(hellfirepvp.astralsorcery.common.crafting.helper.ingredient.CrystalIngredient) ItemStack(net.minecraft.item.ItemStack)

Aggregations

CrystalIngredient (hellfirepvp.astralsorcery.common.crafting.helper.ingredient.CrystalIngredient)4 ItemStack (net.minecraft.item.ItemStack)4 AstralSorcery (hellfirepvp.astralsorcery.AstralSorcery)1 Mods (hellfirepvp.astralsorcery.common.base.Mods)1 AltarType (hellfirepvp.astralsorcery.common.block.tile.altar.AltarType)1 IConstellation (hellfirepvp.astralsorcery.common.constellation.IConstellation)1 IMajorConstellation (hellfirepvp.astralsorcery.common.constellation.IMajorConstellation)1 IWeakConstellation (hellfirepvp.astralsorcery.common.constellation.IWeakConstellation)1 SimpleAltarRecipeBuilder (hellfirepvp.astralsorcery.common.crafting.builder.SimpleAltarRecipeBuilder)1 AltarRecipeGrid (hellfirepvp.astralsorcery.common.crafting.recipe.altar.AltarRecipeGrid)1 AltarRecipeTypeHandler (hellfirepvp.astralsorcery.common.crafting.recipe.altar.AltarRecipeTypeHandler)1 ConstellationBaseItemRecipe (hellfirepvp.astralsorcery.common.crafting.recipe.altar.builtin.ConstellationBaseItemRecipe)1 ConstellationBaseNBTCopyRecipe (hellfirepvp.astralsorcery.common.crafting.recipe.altar.builtin.ConstellationBaseNBTCopyRecipe)1 ItemResonator (hellfirepvp.astralsorcery.common.item.ItemResonator)1 hellfirepvp.astralsorcery.common.lib (hellfirepvp.astralsorcery.common.lib)1 NameUtil (hellfirepvp.astralsorcery.common.util.NameUtil)1 List (java.util.List)1 Consumer (java.util.function.Consumer)1 IFinishedRecipe (net.minecraft.data.IFinishedRecipe)1 Item (net.minecraft.item.Item)1