Описание
# Simple AutoFish Mod for Minecraft Fabric
A lightweight Minecraft Fabric mod that automatically reels in fish and recasts your fishing rod when a fish bites. Perfect for AFK fishing in survival mode!
## Features
🎣 **Automatic Fishing**: Detects when fish bite and automatically reels them in
🔄 **Auto Recast**: Immediately casts the fishing rod again after catching a fish
⌨️ **Toggle Keybind**: Press `R` to enable/disable auto fishing
💬 **Chat Feedback**: Shows "Auto Fish: Enabled/Disabled" messages
🛡️ **Survival Friendly**: No unfair advantages, just automates clicking
⚡ **Lightweight**: Minimal performance impact
🔧 **Smart Detection**: Handles edge cases like broken rods and item changes
## How to Use
1. **Install the mod** in your Fabric mods folder
2. **Launch Minecraft** with Fabric loader
3. **Equip a fishing rod** in your main hand
4. **Press `R`** to toggle auto fishing on/off
5. **Cast your rod** manually the first time (or let the mod do it)
6. **Enjoy AFK fishing!** The mod will handle everything automatically
## Controls
- **R Key**: Toggle auto fishing on/off
- **Chat Messages**: Shows current status when toggled
## Technical Details
### Fish Bite Detection
The mod detects fish bites by:
1. Checking the `caughtFish` field in the FishingBobberEntity
2. Fallback: Monitoring bobber velocity changes (sudden jerks)
### Timing System
- **Recast Delay**: 10 ticks (0.5 seconds) after reeling in
- **Minimum Action Delay**: 5 ticks between any actions
- **Prevents double-firing** and ensures smooth operation
### Edge Cases Handled
- ✅ Fishing rod breaks → Auto fishing stops
- ✅ Player switches items → Auto fishing stops
- ✅ Toggle disabled → All automation stops immediately
- ✅ No valid water target → Skips casting
- ✅ Rod durability check → Prevents breaking
## License
MIT License - Feel free to modify and distribute!
**Happy Fishing!** 🎣