Make Villagers Drop Wheat Instead of Bread
In this article
This guide explains how to modify a Minecraft villager's behavior so that when they are killed (or when they die from other causes), they drop wheat instead of bread. This is useful for custom maps, farming setups, or simply for a more thematic experience. The method involves using a datapack or command blocks to alter the loot table for villagers. You will need access to the game's files or the ability to use commands in-game.
What You'll Need
- A Minecraft world where you have operator (OP) permissions (for commands) or file access (for datapacks).
- Knowledge of how to create or install a datapack (if using that method).
- Alternatively, a command block setup if you prefer in-game commands.
- Basic understanding of JSON files (for datapack editing).
Step-by-Step
- Choose your method: Decide whether you want to use a datapack (persistent and works on all villagers) or command blocks (simpler for a temporary effect). This guide covers both.
- For the datapack method:
- Navigate to your world's
datapacksfolder (found in.minecraft/saves/[world name]/datapacks). - Create a new folder for your datapack, e.g.,
villager_wheat_drop. - Inside that folder, create a
datafolder, then aminecraftfolder, then aloot_tablesfolder, and finally anentitiesfolder. The full path should bevillager_wheat_drop/data/minecraft/loot_tables/entities/. - Create a file named
villager.jsonin that folder. - Open the file with a text editor and paste the following JSON:
{ "type": "minecraft:entity", "pools": [ { "rolls": 1, "entries": [ { "type": "minecraft:item", "name": "minecraft:wheat", "functions": [ { "function": "minecraft:set_count", "count": { "min": 0, "max": 2 } } ] } ] } ] }This replaces the default bread drop with 0–2 wheat. - Save the file and ensure the folder structure is correct.
- Reload the world. If you are already in the world, type
/reloadin the chat.
- Navigate to your world's
- For the command block method:
- In your world, enable cheats and get a command block:
/give @p command_block. - Place the command block on the ground.
- Right-click it to open the interface. Set it to "Repeat" and "Always Active".
- In the command field, enter the following command (this will replace the villager's loot table with a custom one):
/loot spawn ~ ~ ~ loot minecraft:entities/villager
However, this alone won't change the drops. You need to actually modify the loot table. Since command blocks cannot directly edit loot tables, you would need to use a datapack anyway. Therefore, the command block method is not practical for this specific change. Instead, use the datapack method above.
- In your world, enable cheats and get a command block:
- Test the change: Kill a villager in the world. It should drop 0–2 wheat instead of bread.
Common Mistakes
- Incorrect folder structure: If the JSON file is not in the exact path
data/minecraft/loot_tables/entities/villager.json, the game will not recognize it. Double-check every folder name. - JSON syntax errors: A missing comma or brace will cause the datapack to fail. Use a JSON validator if you are unsure.
- Not reloading the datapack: After creating or editing the datapack, you must run
/reloador restart the world for changes to take effect. - Using the wrong entity name: The file must be named
villager.json(lowercase) and placed in theentitiesfolder, not inchestsor elsewhere.
Tips
- To make villagers drop more wheat, adjust the
minandmaxvalues in the JSON. For example,"min": 1, "max": 3gives 1–3 wheat. - If you want to keep the bread drop as well, you can add another entry to the
entriesarray in the JSON. For instance, add a second entry with"name": "minecraft:bread"and a weight. - This method works for other mobs too—just create a JSON file named after the mob (e.g.,
zombie.json) in the same folder. - If you are playing on a server, you need to have permission to modify datapacks. This usually requires being an operator.
Troubleshooting
- Villagers still drop bread: Check that the datapack is enabled. Type
/datapack listto see if your datapack appears. If it doesn't, the folder structure is likely wrong. Also, make sure you ran/reloadafter placing the file. - Game crashes or shows an error: Open the JSON file and ensure it is valid. Common issues include trailing commas or missing quotes. Use an online JSON validator to check.
- Wheat drops but also bread: This means your JSON has both entries. Remove the bread entry from the
entriesarray. - Wheat drops in addition to normal drops (like XP): This is normal—the loot table only affects item drops, not XP orbs.
Frequently Asked Questions
Will this affect all villagers in the world?
Yes, once the datapack is installed and reloaded, every villager that dies will use the new loot table, dropping wheat instead of bread.
Can I make only certain villagers drop wheat?
Not with this simple loot table change. To have different drops for different villagers, you would need to use more advanced commands or mods that check for specific NBT data, which is beyond the scope of this guide.
Does this work in Minecraft Bedrock Edition?
No, this method is for Java Edition only. Bedrock Edition uses a different system for loot tables and does not support datapacks in the same way.
Can I revert the change easily?
Yes, simply delete the villager_wheat_drop folder from your datapacks folder and run /reload. Villagers will revert to dropping bread.
Will this affect villager trading?
No, the loot table only affects what they drop when they die. Trading mechanics remain unchanged.
Is there a way to make them drop more wheat?
Yes, edit the min and max values in the JSON to higher numbers. For example, "min": 5, "max": 10 will drop 5–10 wheat.