Skip to content

Aquatic Entangler (Thermal Expansion)

Description

Controls what itemstacks can be gained and how likely each is to be obtained.

Identifier

Refer to this via any of the following:

groovy
mods.thermal.fisher
mods.thermal.Fisher
mods.thermalexpansion.fisher/* Used as page default */
mods.thermalexpansion.Fisher

Adding Entries

  • Adds recipes in the format fish, weight:

    groovy
    mods.thermalexpansion.fisher.add(ItemStack, int)
Example
groovy
mods.thermalexpansion.fisher.add(item('minecraft:clay'), 100)

Removing Entries

  • Removes the given IIngredient as a valid output:

    groovy
    mods.thermalexpansion.fisher.remove(IIngredient)
  • Removes all registered recipes:

    groovy
    mods.thermalexpansion.fisher.removeAll()
Example
groovy
mods.thermalexpansion.fisher.remove(item('minecraft:fish:0'))
mods.thermalexpansion.fisher.removeAll()

Getting the value of entries

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

    groovy
    mods.thermalexpansion.fisher.streamRecipes()

Contributors

Changelog

© 2024 CleanroomMC. All Rights Reserved.