Raid Farm
A whole raid farm in one block, in the style of Easy Villagers. Catch a pillager, put it into a Raid Farm, feed it Ominous Bottles and collect the raid loot. No giant build, no lag.
Fabric, Minecraft 1.21.11. Needs Fabric API. Install on the server and the client.
Features
- Catch pillagers: give a pillager Weakness (for example with a splash potion), then sneak + right click it with an empty hand. It becomes a Captured Pillager item. Captains keep their banner and are marked as Captain.
- Mini pillager item: the item shows the real pillager in small size, with crossbow, armor and captain banner. Names are kept.
- Set it free: right click a block. You get back exactly the pillager you put in. Released pillagers do not despawn.
- Raid Farm block: right click with a captured pillager puts it in (one per farm). Sneak + right click with an empty hand takes it out again. The glass front faces you when you place the farm, and the mini pillager walks around inside, looks at you and cheers during raids.
- Raids: every cycle the farm uses one Ominous Bottle and rolls the raid loot. Higher bottle levels give more loot. Without a bottle the farm waits.
- Raid animation: after each raid, mini raiders (vindicator, pillager, witch, evoker) pop up in the glass and a sword hanging from the roof knocks them out one by one. Only for looks, the server rolls the loot either way.
- Sword: the farm only runs with a sword in its sword slot. Between raids it hangs under the roof; in a raid it swings at the raiders. It shows your sword with its glint and never wears out.
- Looting: +25 % loot per level, and a fountain of emeralds.
- Sharpness: 10 % shorter raids per level (level V halves them), with magic sparks.
- Fire Aspect: the raiders burn as they fall. Knockback: they fly to the side. Sweeping Edge: sweeps.
- Output: right click with an empty hand opens the screen: bottle slot, sword slot, 27 output slots, tier, time to the next raid and what the farm is waiting for. Hoppers can put bottles in from the top and the sides and pull loot from below.
- Never loses items: if the loot of a raid does not fit completely, the farm waits and keeps the bottle. Breaking the farm keeps tier, pillager, bottles and loot in the item (also in creative), like a shulker box.
- Server side: only the server runs raids, only in loaded chunks.
- Five tiers: Stone, Iron, Gold, Diamond, Netherite. Upgrade one step at a time with upgrade items. Everything inside stays. The metal rings on the frame show the tier color.
- Advancements in the Adventure tab: Pocket Pillager, Raid in a Box, Undying Harvest.
- English and German.
Recipes
Raid Farm (crafting table)
Glass Bell Glass
Emerald Block Ominous Banner Emerald Block
Obsidian Hopper Obsidian
Only a real Ominous Banner works, a white banner renamed in an anvil does not.
Upgrades (crafting table, pattern corners / sides / middle)
| Upgrade | Corners | Sides | Middle |
|---|---|---|---|
| Iron | Iron Ingot | Emerald | Block of Iron |
| Gold | Block of Gold | Emerald | Block of Gold |
| Diamond | Diamond | Block of Emerald | Block of Diamond |
Netherite Upgrade (smithing table): Netherite Upgrade Smithing Template + Diamond Upgrade + Netherite Ingot.
All recipes are data files and can be changed with a datapack.
Tiers (defaults)
| Tier | Raid every | Totem of Undying | Bottle kept | Loot multiplier |
|---|---|---|---|---|
| Stone | 20 min | – | 20 % | 1.0 |
| Iron | 15 min | – | 35 % | 1.25 |
| Gold | 10 min | 25 % | 50 % | 1.5 |
| Diamond | 7 min | 50 % | 70 % | 2.0 |
| Netherite | 5 min | always 1 | 90 % | 2.5 |
Bottle kept is the chance that a raid does not use up its bottle. Each bottle level above I adds 10 % loot on top of the tier multiplier (level V on Netherite: 2.5 × 1.4 = 3.5). The totem is never multiplied.
Loot per raid (before the multiplier)
From the loot table data/raidfarm/loot_table/gameplay/raid_farm.json (replace it with a datapack):
- Emerald: 4–10
- Redstone: 2–8, Arrow: 4–12
- Glowstone Dust, Gunpowder, Sugar, Stick: 0–4 each
- Glass Bottle: 0–3
- Crossbow 15 %, Saddle 10 %, Iron Axe 10 % (crossbow and axe damaged)
Config
config/raidfarm.json, created on first start. Invalid values fall back to the default and print a warning in the log.
| Key | Default | Meaning |
|---|---|---|
configVersion |
2 | Set by the mod, do not change |
pillagerStackSize |
16 | Captured pillagers per stack (1–99) |
bottleLevelBonus |
0.10 | Extra loot per bottle level above I (at least 0) |
lootingBonus |
0.25 | Extra loot per Looting level of the sword (at least 0) |
sharpnessSpeedup |
0.10 | Shorter raids per Sharpness level (0–0.18) |
tiers.<tier>.cycleMinutes |
20 / 15 / 10 / 7 / 5 | Minutes between two raids (at least 1) |
tiers.<tier>.totemChance |
0 / 0 / 0.25 / 0.5 / 1.0 | Chance for a Totem of Undying per raid (0–1) |
tiers.<tier>.bottleReturnChance |
0.2 / 0.35 / 0.5 / 0.7 / 0.9 | Chance a raid keeps its bottle (0–1) |
tiers.<tier>.lootMultiplier |
1.0 / 1.25 / 1.5 / 2.0 / 2.5 | Loot multiplier (above 0) |
<tier> is stone, iron, gold, diamond or netherite.
License
MIT

