
CustomFishing
CustomFishing is a CraftTweaker addon that enables players to customize fishing conditions through specialized scripts. With this mod, you can, for example, set a 50% chance to catch an apple when fishing in lava.
By default, the modification alters fishing rod functionality: hooks can now float on the surface of any liquid. Additionally, fished items receive temporary invincibility, preventing their loss.
When fishing in water, the standard vanilla loot pool is used, while for other liquids the loot pool is initially empty - its contents depend entirely on your settings.
Configuration Methods
The main method for configuring fishing:
FishingInCustomLiquid.inLiquidItemChancePoolDimBiome(ILiquidStack liquid, String pool, IItemStack iitemStack, Float chance, String biomeid, Integer dimid)
Parameters:
liquid
- specific liquid for fishingpool
- loot pool to useiitemStack
- additional item to catchchance
- probability of catching the additional item (ignored ifiitemStack
is null)biomeid
- specific biome (use/ct biomes
to get biome IDs)dimid
- specific dimension
Important Notes
If any parameter is not needed, use null
. For pool
and biomeid
parameters, use empty quotes ""
.
Usage Example
import mods.customfishing.FishingInCustomLiquid;
FishingInCustomLiquid.inLiquidItemChancePoolDimBiome(<liquid:lava>, "", <minecraft:apple>, 0.5F, "minecraft:plains", null);
This script sets a 50% chance to catch an additional apple when fishing in lava located in the plains biome.