Diamond Bandits
Most Minecraft players treat diamonds as pure reward. Diamond Bandits flips that idea on its head by making every gem in your inventory a beacon for trouble. This datapack for Minecraft Java Edition introduces a punishing risk-reward loop: the more diamonds you carry, the bigger and nastier the zombie raids become. If you have been looking for a reason to fear your own loot, this is it.
What Diamond Bandits Actually Does
The core mechanic is simple but brutal. The moment you pick up a single diamond, a personal 600-tick countdown starts, roughly 30 seconds at normal speed. A boss bar tracks both your remaining time and your current diamond count. When the timer hits zero, a raid spawns, and the composition of that raid is locked to however many diamonds you were holding at that exact moment. Diamonds are never consumed, so the pressure never truly goes away while you carry them.
Only diamonds in your inventory, including the off-hand slot, count. Anything stored in chests, Ender Chests, Shulker Boxes, bundles, diamond blocks, or diamond equipment is ignored. That distinction matters, because it means smart storage is your main defense.
Raid Tiers and Enemy Composition
The threat scales in four clear stages, and each stage replaces the previous one rather than stacking on top of it. Every armored bandit wears a full set of helmet, chestplate, leggings, and boots.
- 1-2 diamonds: One to three unarmed, unarmored zombies.
- 3-4 diamonds: Leather-armored zombies with wooden swords, plus a few regular zombies.
- 5-6 diamonds: Leather and iron-equipped zombies mixed together.
- 7+ diamonds: Iron-armored fighters alongside diamond-armored zombies wielding diamond swords.
Unit counts are randomized within each range, so no two raids feel identical. When you cross into a new tier, a one-time warning appears on screen, from "A threat can be felt" all the way up to "It seems wise to prepare thoroughly." If you skip several tiers at once, only the highest warning shows.
How to Install and Supported Versions
Learning how to install this datapack is refreshingly quick. Diamond Bandits targets Minecraft Java Edition 1.21.4 and uses datapack format 61. There is no Forge or Fabric loader requirement here, since datapacks run on the vanilla game and on official servers alike.
To set it up, place the ZIP file directly into your world's datapacks folder without extracting it, then run /reload. When updating, remove the old Diamond_Bandits ZIP and keep only the Smooth_Retreat ZIP. Note that this pack is separate from the earlier Thief Villager datapack, so remove that one first if you do not want thief villagers interfering. If you would rather skip the manual folder shuffling entirely, the foxygame.net launcher handles Diamond Bandits through its built-in add-on catalog, letting you enable it in a couple of clicks while keeping version compatibility in check.
Combat Behavior and the Retreat System
Spawning and Pursuit
Bandits try to appear roughly 7 to 9 blocks from the player, checking for valid ground and headroom within a 4-block vertical range. If walls, lava, or obstacles block every candidate spot, that bandit is simply skipped. All bandits are adult zombies using vanilla pathfinding and attacks, and each one carries a permanent Glowing effect so you can track them through the chaos.
Combat tier is locked at spawn. Dropping diamonds mid-raid will not weaken enemies already on the field. Higher tiers move faster, follow you farther, and resist knockback. At the 7+ tier, bandits also charge toward nearby players for about one second every five seconds.
Retreat Mechanics
Top-tier bandits retreat when their health drops to 6/20 or lower while a player is within 10 blocks. Retreat lasts up to 4 seconds and ends early if you move more than 12 blocks away. Afterward, they fight for 5 seconds before retreating again. This is not teleportation and grants no healing; bandits use real movement, respect collision and gravity, and can get stuck against walls. They cannot break blocks or doors.
Multiplayer, Dimensions, and Commands
In multiplayer, every player has an independent diamond count and timer, so one person hoarding gems does not doom the whole server. Raids work in the Overworld, Nether, End, and custom dimensions containing players. Operators can use functions like /function diamond_bandits:test to trigger an immediate raid, /function diamond_bandits:stop to halt new raids, and /function diamond_bandits:cleanup to remove loaded bandits. Creative mode, Spectator mode, death, and Peaceful difficulty all reset the timer.
One quality-of-life detail worth praising: bandits receive Fire Resistance, so they will not burn to death in daylight. Their armor also avoids sunlight durability loss, and their datapack-issued gear never drops on death.
Final Verdict
Diamond Bandits transforms a routine mining trip into a genuine survival decision. Do you bank your diamonds immediately, or risk carrying a fortune that summons an army? If you want to download Diamond Bandits and see how long you last with a pocket full of gems, grab it for Minecraft Java 1.21.4 and prepare thoroughly. The bandits certainly will.