Skip to content

Aquatic Entangler Bait (Thermal Expansion)

Description

Controls what items can be used in the bait slot of the Aquatic Entangler and how effective they are.

Identifier

Refer to this via any of the following:

groovy
mods.thermal.fisher_bait
mods.thermal.fisherbait
mods.thermal.fisherBait
mods.thermal.FisherBait
mods.thermalexpansion.fisher_bait/* Used as page default */
mods.thermalexpansion.fisherbait
mods.thermalexpansion.fisherBait
mods.thermalexpansion.FisherBait

Adding Entries

  • Adds recipes in the format stack, multiplier:

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

Removing Entries

  • Removes the given IIngredient as a valid bait item:

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

    groovy
    mods.thermalexpansion.fisher_bait.removeAll()
Example
groovy
mods.thermalexpansion.fisher_bait.remove(item('thermalfoundation:bait:2'))
mods.thermalexpansion.fisher_bait.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_bait.streamRecipes()

Contributors

Changelog

© 2024 CleanroomMC. All Rights Reserved.