Описание
# Easy Villager — Fabric
## 🎯 Core Features
### Villager Catcher
Capture any villager (including modded villagers) and carry them in your inventory.
- Right-click any villager to capture them into a **Captured Villager** item
- All trade data, profession, XP, and offers are fully preserved
- Right-click on any block surface to release them
**Recipe:** 4 sticks + 4 string in a net pattern

---
### Empty Villager Cage
A glass display case that holds a villager permanently for easy trading.
- Right-click with a **Captured Villager** item to insert
- Right-click to open the full trade GUI (works with ALL modded villagers!)
- Right-click with a **job site block** to assign a profession
- **Sneak + right-click** to extract the villager
- **↺ Re-roll button** in the trade GUI to randomize trades (configurable cost)
- Spinning workstation block displayed inside the cage
- Tooltip shows profession, level, and XP when held in inventory
**Recipe:** 8 glass + gold pressure plate center

---
### Villager Incubator
Grows baby villagers (from the Breeder) into unemployed adults ready for use.
- Right-click with a **Baby Villager** item to insert
- After timer, outputs an adult unemployed villager item
- Outputs to adjacent chest/barrel automatically
- Spinning baby villager item displayed inside
**Recipe:** 6 glass + hopper top + bread center + gold pressure plate bottom

**Config:** `villagerIncubatorEnabled`, `villagerIncubatorIntervalTicks` (default: 24000 = 10 min)
---
### Cure Station
Automates the zombie villager curing process.
- Right-click with **Splash Potion of Weakness** → fills potion slot
- Right-click with **Golden Apple** → fills apple slot
- Right-click with **Captured Villager** item → fills villager slot
- Curing starts automatically when all three are inserted
- Outputs a **Cured Villager** item after the timer
- Outputs to adjacent chest/barrel automatically
- **Sneak + right-click** to extract items
**Recipe:** 6 glass + hopper top + golden apple center + gold pressure plate bottom

**Config:** `cureStationEnabled`, `cureStationIntervalTicks` (default: 3600 = 3 min)
---
## 🌾 Village Farms
All village farms share these mechanics:
- Right-click with **Captured Villager** to insert (up to 3)
- **Sneak + right-click** to extract last villager
- Right-click to view time remaining and villager count
- Output to adjacent chest, barrel, or hopper automatically
- All configurable via `config/easy_villager/config.json`
---
### Iron Golem Farm
Needs 3 villagers. Drops iron ingots and poppies.
**Drops per cycle:** 2–5 iron ingots, occasional poppies
**Recipe:** 6 glass + hopper top + iron block center + gold pressure plate bottom

**Config:** `ironFarmEnabled`, `ironFarmIntervalTicks` (default: 3600 = 3 min), `ironFarmMinVillagers` (default: 3)
**Loot config:** `config/easy_villager/iron_farm.json`
---
### Gold Farm
Drops gold nuggets, occasional ingots, and rotten flesh.
**Drops per cycle:** 4–11 gold nuggets, occasional gold ingots, rotten flesh
**Recipe:** 6 glass + hopper top + gold block center + gold pressure plate bottom

**Config:** `goldFarmEnabled`, `goldFarmIntervalTicks` (default: 3600 = 3 min), `goldFarmMinVillagers` (default: 1)
**Loot config:** `config/easy_villager/gold_farm.json`
---
### Witch Farm
Drops classic witch loot — great for brewing supplies.
**Drops per cycle:** 2–4 random items from: redstone, glowstone dust, sugar, sticks, spider eye, glass bottles, gunpowder
**Recipe:** 6 glass + hopper top + water bottle center + gold pressure plate bottom

**Config:** `witchFarmEnabled`, `witchFarmIntervalTicks` (default: 3600 = 3 min), `witchFarmMinVillagers` (default: 1)
**Loot config:** `config/easy_villager/witch_farm.json`
---
### Breeder
Needs 2 villagers. Produces baby villager items for the Incubator.
**Output:** 1 Baby Villager item per cycle
**Recipe:** 6 glass + hopper top + any bed center + gold pressure plate bottom

**Config:** `breederEnabled`, `breederIntervalTicks` (default: 12000 = 10 min), `breederMinVillagers` (default: 2)
---
### Barter Farm
Needs 2 villagers + gold ingots in input. Simulates piglin bartering.
**Input:** Gold ingots (1 consumed per cycle)
**Drops per cycle (1 random):** Ender pearls, iron boots, gravel, leather, nether bricks, obsidian, crying obsidian, fire charges, flint, soul sand, nether quartz, glowstone dust, magma cream, blackstone, spectral arrows
**Recipe:** 6 glass + hopper top + golden boots center + gold pressure plate bottom

**Config:** `barterFarmEnabled`, `barterFarmIntervalTicks` (default: 3600 = 3 min), `barterFarmMinVillagers` (default: 2)
**Loot config:** `config/easy_villager/barter_farm.json`
---
### Tree Farm
Place any sapling in the input — outputs that tree's wood and drops.
**Input:** Any sapling (1 consumed per cycle)
**Drops per cycle (varies by tree):**
- **Oak:** 4–9 oak logs, 1–2 saplings, occasional apples
- **Birch:** 4–8 birch logs, 1–2 saplings
- **Spruce (1–3 saplings):** 5–12 logs, 1–2 saplings
- **Spruce (4+ saplings):** 12–21 logs (tall 2x2 tree!), 2–4 saplings
- **Jungle:** 6–15 jungle logs, 1–3 saplings, occasional cocoa beans
- **Acacia:** 4–9 logs, 1–2 saplings
- **Dark Oak (requires 4 saplings):** 12–21 logs, 3–5 saplings, occasional apples
- **Mangrove:** 4–9 logs, 1–2 propagules, mangrove roots
- **Cherry:** 4–8 logs, 1–2 saplings, occasional pink petals
- **Modded trees:** Returns the sapling item + oak logs as fallback
**Recipe:** 6 glass + hopper top + tree sapling center + gold pressure plate bottom

**Config:** `treeFarmEnabled`, `treeFarmIntervalTicks` (default: 6000 = 5 min), `treeFarmMinVillagers` (default: 1), `darkOakSaplingsRequired` (default: 4), `tallSpruceThreshold` (default: 4)
---
### Crop Farm
Place any crop or seed in the input — outputs that crop's harvest. Supports all vanilla crops and most modded crops automatically.
**Input:** Any growable item (1 consumed per cycle)
**Drops per cycle (varies by crop):**
- **Wheat Seeds:** 1–3 wheat + 1–2 seeds
- **Carrot:** 2–5 carrots
- **Potato:** 2–5 potatoes (rare poisonous potato)
- **Beetroot Seeds:** 1–3 beetroot + 1–2 seeds
- **Melon Seeds:** 3–7 melon slices, occasional seeds
- **Pumpkin Seeds:** 1–2 pumpkins, occasional seeds
- **Sugar Cane:** 2–5 sugar cane
- **Cactus:** 1–3 cactus
- **Bamboo:** 4–11 bamboo
- **Kelp:** 2–5 kelp + 1–3 dried kelp
- **Sweet Berries:** 2–4 berries
- **Glow Berries:** 2–4 glow berries
- **Nether Wart:** 2–5 nether wart
- **Chorus Flower:** 2–5 chorus fruit, occasional chorus flower
- **Mushrooms:** 1–3 mushrooms, occasional mushroom block
- **Crimson/Warped Fungus:** fungus + nether wart/warped wart blocks
- **Torchflower Seeds:** 1 torchflower, occasional seeds
- **Pitcher Pod:** 1 pitcher plant, occasional pod
- **Modded crops:** 1–3 of the crop item itself
**Recipe:** 6 glass + hopper top + wheat seed center + gold pressure plate bottom

**Config:** `cropFarmEnabled`, `cropFarmIntervalTicks` (default: 3600 = 3 min), `cropFarmMinVillagers` (default: 1)
---
### Wool Farm
Outputs colored wool. Place shears + colored wool in input.
**Input:** Shears (durability consumed) + any colored wool (sets color, not consumed)
**Drops per cycle:** 1–3 wool of selected color, occasional string
**Recipe:** 6 glass + hopper top + any wool center + gold pressure plate bottom

**Config:** `woolFarmEnabled`, `woolFarmIntervalTicks` (default: 3600 = 3 min), `woolFarmMinVillagers` (default: 1), `woolFarmRequireShears` (default: true)
---
### Butcher Farm
Right-click with any meat to set the output type. No ongoing input required.
**Setup:** Right-click with beef, chicken, mutton, or pork (raw or cooked) to set type
**Drops per cycle:**
- **Beef:** 1–3 raw beef + 50% chance 1–2 leather
- **Chicken:** 1–3 raw chicken + occasional egg + occasional feather
- **Mutton:** 1–3 raw mutton
- **Pork:** 1–3 raw porkchop
**Recipe** 6 glass + hopper top + any cooked meat center + gold pressure plate bottom

**Config:** `butcherFarmEnabled`, `butcherFarmIntervalTicks` (default: 3600 = 3 min), `butcherFarmMinVillagers` (default: 1)
---
## ⚔️ Mob Farms
All mob farms work the same way as village farms — insert villagers, collect loot.
---
### Creeper Farm
**Drops:** 1–3 gunpowder, 5% chance for a random music disc
**Recipe:** 6 Glass + Hopper + Gunpowder center + Gold Pressure Plate

**Config:** `creeperFarmEnabled`, `creeperFarmIntervalTicks` (default: 3600 = 3 min), `creeperFarmMinVillagers` (default: 1)
---
### Skeleton Farm
**Drops:** 1–3 bones, 1–4 arrows, occasional bow, rare bone meal
**Recipe:** 6 Glass + Hopper + Bone center + Gold Pressure Plate

**Config:** `skeletonFarmEnabled`, `skeletonFarmIntervalTicks` (default: 3600 = 3 min), `skeletonFarmMinVillagers` (default: 1)
---
### Zombie Farm
**Drops:** 1–4 rotten flesh, occasional iron ingot/carrot/potato, rare iron sword
**Recipe:** 6 Glass + Hopper + Rotten Flesh center + Gold Pressure Plate

**Config:** `zombieFarmEnabled`, `zombieFarmIntervalTicks` (default: 3600 = 3 min), `zombieFarmMinVillagers` (default: 1)
---
### Shulker Farm
**Drops:** 1–2 shulker shells per cycle (rare — very valuable!)
**Recipe:** 6 Glass + Hopper + Shulker Shell center + Gold Pressure Plate

**Config:** `shulkerFarmEnabled`, `shulkerFarmIntervalTicks` (default: 6000 = 5 min), `shulkerFarmMinVillagers` (default: 1)
---
### Wither Skeleton Farm
**Drops:** 1–4 coal, 1–3 bones, 2.5% chance for wither skeleton skull, occasional stone sword
**Recipe:** 6 Glass + Hopper + Wither Skeleton Skull center + Gold Pressure Plate

**Config:** `witherSkeletonFarmEnabled`, `witherSkeletonFarmIntervalTicks` (default: 6000 = 5 min), `witherSkeletonFarmMinVillagers` (default: 1)
---
### Wither Farm
Requires 3 villagers. Very long timer — nether stars are extremely valuable!
**Drops:** 1 Nether Star per cycle
**Recipe:** 6 Glass + Hopper + Nether Star center + Gold Pressure Plate

**Config:** `witherFarmEnabled`, `witherFarmIntervalTicks` (default: 36000 = **30 min**), `witherFarmMinVillagers` (default: 3)
---
### Blaze Farm
**Drops:** 1–3 blaze rods, 1–4 blaze powder, occasional fire charge
**Recipe:** 6 Glass + Hopper + Blaze Rod center + Gold Pressure Plate

**Config:** `blazeFarmEnabled`, `blazeFarmIntervalTicks` (default: 3600 = 3 min), `blazeFarmMinVillagers` (default: 1)
---
### Enderman Farm
**Drops:** 1–3 ender pearls, occasional chorus fruit, rare end stone
**Recipe:** 6 Glass + Hopper + Ender Pearl center + Gold Pressure Plate

**Config:** `endermanFarmEnabled`, `endermanFarmIntervalTicks` (default: 3600 = 3 min), `endermanFarmMinVillagers` (default: 1)
---
### Slime Farm
**Drops:** 2–5 slimeballs, occasional slime block
**Recipe:** 6 Glass + Hopper + Slimeball center + Gold Pressure Plate

**Config:** `slimeFarmEnabled`, `slimeFarmIntervalTicks` (default: 3600 = 3 min), `slimeFarmMinVillagers` (default: 1)
---
### Phantom Farm
**Drops:** 1–2 phantom membranes per cycle (for slow falling potions)
**Recipe:** 6 Glass + Hopper + Phantom Membrane center + Gold Pressure Plate

**Config:** `phantomFarmEnabled`, `phantomFarmIntervalTicks` (default: 3600 = 3 min), `phantomFarmMinVillagers` (default: 1)
---
## ⚙️ Configuration
All config files are generated automatically on first launch in:
```
.minecraft/config/easy_villager/
├── config.json ← main settings
├── iron_farm.json ← iron farm loot (editable)
├── gold_farm.json ← gold farm loot (editable)
├── witch_farm.json ← witch farm loot (editable)
└── barter_farm.json ← barter farm loot (editable)
```
### Profession Whitelist
Control which villager professions can be inserted into any block:
```json
"allowArmorer": true,
"allowButcher": true,
"allowCartographer": true,
"allowCleric": true,
"allowFarmer": true,
"allowFisherman": true,
"allowFletcher": true,
"allowLeatherworker": true,
"allowLibrarian": true,
"allowMason": true,
"allowShepherd": true,
"allowToolsmith": true,
"allowWeaponsmith": true,
"allowNitwit": true,
"allowNone": true
```
### Re-roll Settings
```json
"allowReroll": true,
"rerollCostEmeralds": 0
```
### General Settings
```json
"maxVillagersPerBlock": 3,
"outputToAdjacentInventory": true
```
### Custom Loot Tables
The `iron_farm.json`, `gold_farm.json`, `witch_farm.json`, and `barter_farm.json` files let you fully customize drops:
```json
{
"description": "Iron Farm loot",
"rollsMin": 2,
"rollsMax": 4,
"entries": [
{ "item": "minecraft:iron_ingot", "minCount": 2, "maxCount": 5, "weight": 10 },
{ "item": "minecraft:poppy", "minCount": 1, "maxCount": 2, "weight": 5 }
]
}
```
Higher `weight` = more likely to be selected. You can add any modded item by ID!
---
## 🔧 Mod Compatibility
- **Fabric API** required
- Works with **Cobblemon** villagers and custom professions
- Works with **Cobbleverse** modpack
- **Sophisticated Storage** barrels and chests supported for auto-output
- All vanilla chests, barrels, and hoppers supported
- Chests placed below farm blocks can be opened normally
---
## 📦 Summary of All Blocks
| Block | Recipe Center | Min Villagers | Default Timer |
|-------|--------------|---------------|---------------|
| Villager Cage | Gold Pressure Plate | — | — |
| Villager Incubator | Villager Spawn Egg | — | 10 min |
| Cure Station | Golden Apple | — | 3 min |
| Iron Golem Farm | Iron Block | 3 | 3 min |
| Gold Farm | Gold Block | 1 | 3 min |
| Witch Farm | Water Bottle | 1 | 3 min |
| Breeder | Any Bed | 2 | 20 min |
| Barter Farm | Golden Boots | 2 | 3 min |
| Tree Farm | Any Sapling | 1 | 5 min |
| Crop Farm | Wheat Seeds | 1 | 3 min |
| Wool Farm | Any Wool | 1 | 3 min |
| Butcher Farm | Any Cooked Meat | 1 | 3 min |
| Creeper Farm | Gunpowder | 1 | 3 min |
| Skeleton Farm | Bone | 1 | 3 min |
| Zombie Farm | Rotten Flesh | 1 | 3 min |
| Shulker Farm | Shulker Shell | 1 | 10 min |
| Wither Skeleton Farm | Wither Skull | 1 | 5 min |
| Wither Farm | Nether Star | 3 | 30 min |
| Blaze Farm | Blaze Rod | 1 | 3 min |
| Enderman Farm | Ender Pearl | 1 | 3 min |
| Slime Farm | Slimeball | 1 | 3 min |
| Phantom Farm | Phantom Membrane | 1 | 3 min |
---
## 📋 Requirements
- Minecraft 1.21.1
- Fabric Loader 0.15+
- Fabric API
---
## 📄 License
MIT License — feel free to use in modpacks!