-
Notifications
You must be signed in to change notification settings - Fork 0
Home
xuanyu tang edited this page Jul 14, 2025
·
6 revisions
Welcome to the CustomFishing wiki!
The following is the general example:
import crafttweaker.item.IItemStack;
import crafttweaker.liquid.ILiquidStack;
import mods.customfishing.FishingBulider;
import crafttweaker.entity.IEntityLiving;
import crafttweaker.entity.IEntityLivingBase;
//During the day, 50% of the items in the lootable "minecraft:chests/end_city_treasure" are caught in pyrotheum, and diamonds are needed as bait
FishingBulider.create(<fluid:pyrotheum>, "minecraft:chests/end_city_treasure")
.setChance(0.5F)
.addFishBait(<minecraft:diamond>)
.setDay(true)
.register();
//During the day, 50% of the items in the lootable "minecraft:chests/village_blacksmith" are caught in redstone, and diamonds are needed as bait
FishingBulider.create(<fluid:redstone>, "minecraft:chests/village_blacksmith")
.setChance(0.5F)
.addFishBait(<minecraft:diamond>)
.setDay(true)
.register();
//During the night, 40% of book is caught in water, and diamonds are needed as bait
FishingBulider.create(<fluid:water>, <minecraft:book>)
.setChance(0.4F)
.addFishBait(<minecraft:diamond>)
.setDay(false)
.register();
//Catch all the creatures, hhhhhhh
for e in game.entities {
FishingBulider.create(<fluid:water>, e)
.register();
}
//Fished up a Charged Creeper from the water!
FishingBulider.create(<fluid:water>, <entity:minecraft:creeper>)
.setEntityData({powered : true})
.register();
//During the day, 80% of redstone lamp is caught in water, and diamonds are needed as bait
FishingBulider.create(<fluid:lava>, <minecraft:redstone_lamp>)
.setChance(0.8F)
.addFishBait(<minecraft:diamond>)
.setDay(true)
.register();
//old method
//There is a 90% chance of catching a book in the magma of the plain
FishingInCustomLiquid.inLiquidItemChancePoolDimBiome(<liquid:lava>, "", <minecraft:book>, 0.9F, "minecraft:plains", null);