Skip to content

Fountain (Astral Sorcery)

Description

Adds virtual aquifers that can be accessed via the Evershifting Fountain's Necromantic Prime.

Identifier

Refer to this via any of the following:

groovy
mods.astralsorcery.fountain/* Used as page default */
mods.astralsorcery.Fountain
mods.astral.fountain
mods.astral.Fountain

Adding Recipes

  • Add the given recipe to the recipe list:

    groovy
    mods.astralsorcery.fountain.add(FluidRarityRegistry.FluidRarityEntry)
  • Adds recipes in the format fluid, rarity, guaranteedAmt, addRand:

    groovy
    mods.astralsorcery.fountain.add(Fluid, int, int, int)
  • Adds recipes in the format fluid, rarity, guaranteedAmt, addRand:

    groovy
    mods.astralsorcery.fountain.add(FluidStack, int, int, int)

Recipe Builder

Just like other recipe types, the Fountain also uses a recipe builder.

Don't know what a builder is? Check the builder info page out.

mods.astralsorcery.fountain.chanceHelper()
  • Fluid. Sets the fluid being generated. Requires not null.

    groovy
    fluid(Fluid)
    fluid(FluidStack)
  • int. Sets the frequency the fluid generates in a chunk. Requires greater than or equal to 0. (Default 0).

    groovy
    rarity(int)
  • int. Sets the maximum amount of additional fluid that can be generated in a chunk. Requires greater than or equal to 0. (Default 0).

    groovy
    variance(int)
  • int. Sets the minimum amount of fluid in a chunk. Requires greater than or equal to 0. (Default 0).

    groovy
    minimumAmount(int)
  • First validates the builder, returning null and outputting errors to the log file if the validation failed, then registers the builder and returns the registered object. (returns null or hellfirepvp.astralsorcery.common.base.FluidRarityRegistry$FluidRarityEntry).

    groovy
    register()
Example
groovy
mods.astralsorcery.fountain.chanceHelper()
    .fluid(fluid('astralsorcery.liquidstarlight'))
    .rarity(10000000)
    .minimumAmount(4000000)
    .variance(1000000)
    .register()

Removing Recipes

  • Removes the given recipe from the recipe list:

    groovy
    mods.astralsorcery.fountain.remove(FluidRarityRegistry.FluidRarityEntry)
  • Removes an entry matching the given Fluid:

    groovy
    mods.astralsorcery.fountain.remove(Fluid)
  • Removes an entry matching the given FluidStack:

    groovy
    mods.astralsorcery.fountain.remove(FluidStack)
  • Removes all registered recipes:

    groovy
    mods.astralsorcery.fountain.removeAll()
Example
groovy
mods.astralsorcery.fountain.remove(fluid('lava'))
mods.astralsorcery.fountain.removeAll()

Getting the value of recipes

  • Iterates through every entry in the registry, with the ability to call remove on any element to remove it:

    groovy
    mods.astralsorcery.fountain.streamRecipes()

Contributors

Changelog

© 2024 CleanroomMC. All Rights Reserved.