Skip to content

Ball of Fur (Actually Additions)

Description

A weighted itemstack output for using a Ball of Fur, dropped by a cat.

Identifier

Refer to this via any of the following:

groovy
mods.aa.ball_of_fur
mods.aa.balloffur
mods.aa.ballOfFur
mods.aa.BallOfFur
mods.actuallyadditions.ball_of_fur/* Used as page default */
mods.actuallyadditions.balloffur
mods.actuallyadditions.ballOfFur
mods.actuallyadditions.BallOfFur

Adding Recipes

  • Add the given recipe to the recipe list:

    groovy
    mods.actuallyadditions.ball_of_fur.add(BallOfFurReturn)

Recipe Builder

Just like other recipe types, the Ball of Fur also uses a recipe builder.

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

mods.actuallyadditions.ball_of_fur.recipeBuilder()
  • ItemStackList. Sets the item outputs of the recipe. Requires exactly 1.

    groovy
    output(ItemStack)
    output(ItemStack...)
    output(Collection<ItemStack>)
  • int. Sets how likely this entry is to be rolled. Requires greater than or equal to 0. (Default 0).

    groovy
    weight(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 de.ellpeck.actuallyadditions.api.recipe.BallOfFurReturn).

    groovy
    register()
Example
groovy
mods.actuallyadditions.ball_of_fur.recipeBuilder()
    .output(item('minecraft:clay') * 32)
    .weight(15)
    .register()

Removing Recipes

  • Removes the given recipe from the recipe list:

    groovy
    mods.actuallyadditions.ball_of_fur.remove(BallOfFurReturn)
  • Removes all recipes that match the given output:

    groovy
    mods.actuallyadditions.ball_of_fur.removeByOutput(ItemStack)
  • Removes all registered recipes:

    groovy
    mods.actuallyadditions.ball_of_fur.removeAll()
Example
groovy
mods.actuallyadditions.ball_of_fur.removeByOutput(item('minecraft:feather'))
mods.actuallyadditions.ball_of_fur.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.actuallyadditions.ball_of_fur.streamRecipes()

Contributors

Changelog

© 2024 CleanroomMC. All Rights Reserved.