Артем Пономарець

Create a Minecraft Fabric mod for version 1.21.11 called "Advanced Fishing". The mod completely revamps the fishing mechanic into a skill-based mini-game.

Core Features:

  1. When a fish bites, an OSD (On-Screen Display) interface appears showing a tension bar.
  2. The player must balance the line tension using mouse clicks (or holding Right-Click): if the tension is too high, the line snaps; if it's too low, the fish escapes.
  3. Add a new rare fish called "Predatory Pike" that can only be caught in deep river biomes or during thunderstorms.
  4. Add unique, high-tier loot that can occasionally be dredged up from the bottom of deep underwater ravines instead of regular junk.
Kodari AI
KodariOct 30 at 6:49 pm 9
AdvancedFishing
Advanced Fishing is a Minecraft Fabric mod for version 1.21.11 that transforms fishing into a skill-based mini-game. When a fish bites, an on-screen tension bar appears, requiring the player to balance line tension using right-click holds. High tension snaps the line, while low tension lets the fish escape. The mod introduces the rare Predatory Pike, catchable only in deep river biomes or during thunderstorms, and adds unique high-tier loot that can be dredged from deep underwater ravines, replacing standard junk drops.
  1. Hook fishing bites and track the line’s tension state.

  2. Send held right-click input and render the tension HUD.

  3. Add the rare Predatory Pike and make it obtainable by fishing.

  4. Add rare deep-ravine treasure, with survival-accessible items and assets.Task 1 is in place as the fishing-bite interception layer: it starts per-bobber minigame state on a bite and prevents vanilla retrieval while that state is active.

  1. For the minigame controls, the client will send held-use input to the server, while the HUD displays server-synchronized tension and progress.

  1. I’m adding the Pike as a rare caught item, gated by deep river water or an active thunderstorm.

  1. I’m adding a rare Trenchheart drop that substitutes for vanilla fishing junk only over deep, ravine-shaped underwater terrain.

I’m also making the two failure outcomes explicit to the player: low tension reports that the fish escaped, while excessive tension reports a snapped line.

Created Advanced Fishing for Fabric 1.21.11.

  • Fishing minigame: The HUD shows tension and progress. Tap or hold right-click to ease tension; keep it between 35% and 75% to land the catch. Too little tension lets the fish escape; too much snaps the line. The bite timer stays active while you play.

  • Predatory Pike: A rare catch with a 3% chance when fishing in river or frozen-river water at least five blocks deep, or during a thunderstorm in any biome. It’s obtainable through survival fishing.

  • Trenchheart: A rare salvage drop that replaces vanilla fishing junk 25% of the time when fishing over a deep, ravine-shaped underwater column. It’s obtainable through survival fishing in those locations.

  • Added custom item textures, models, names, and a creative tab for both items.

Kodari can make mistakes. Review important code before using.
Files
src
build.gradle
gradle.properties
settings.gradle
Code
20 595
src/main/java/com/kodari/advancedfishing/AdvancedFishingMod.java
package com.kodari.advancedfishing;

import com.kodari.advancedfishing.fishing.FishingBobberAccess;
import com.kodari.advancedfishing.item.ModItems;
import com.kodari.advancedfishing.network.FishingInputPayload;
import com.kodari.advancedfishing.network.FishingStatusPayload;
import net.fabricmc.api.ModInitializer;
import net.fabricmc.fabric.api.networking.v1.PayloadTypeRegistry;
import net.fabricmc.fabric.api.networking.v1.ServerPlayNetworking;
import net.minecraft.entity.projectile.FishingBobberEntity;

public final class AdvancedFishingMod implements ModInitializer {
    @Override
    public void onInitialize() {
        ModItems.initialize();
        PayloadTypeRegistry.playC2S().register(FishingInputPayload.ID, FishingInputPayload.CODEC);
        PayloadTypeRegistry.playS2C().register(FishingStatusPayload.ID, FishingStatusPayload.CODEC);
        ServerPlayNetworking.registerGlobalReceiver(FishingInputPayload.ID, (payload, context) -> {
            FishingBobberEntity bobber = context.player().fishHook;
            if (bobber != null) {
                FishingBobberAccess access = (FishingBobberAccess)(Object)bobber;
                if (access.advancedFishing$isMinigameActive()) {
                    access.advancedFishing$setPulling(payload.pulling());
                }
            }
        });
    }
}