Can I make a drop only happen from player kills?
Yes. The generated table can include a killed-by-player condition so mob farms and environmental deaths do not trigger it.
Loot tables
Loot tables control every drop in Minecraft — what a mob leaves behind, what fills a dungeon chest, what you pull out of the water. They are pure JSON with weights, pools, conditions, and functions, and they are easy to get subtly wrong. Describe the drops you want and ModCrafter writes valid tables you can install straight away.
Pools of entries, each with a weight and optional conditions, produce a result whenever the game asks the table for loot. Functions then modify what comes out: count ranges, enchantments, custom names, and looting bonuses.
Weights are relative, not percentages, so a 1-in-100 feel is easier to describe than to write. Say the rarity you want in words — "about a 5% chance" — and the generated table uses weights or a chance condition that matches.
After installing, use /loot give @s loot <namespace>:<table> to sample a table without hunting for the mob or structure. If something looks off, describe the problem in chat and regenerate.
Paste any of these into the ModCrafter AI datapack generator and download the finished zip.
Yes. The generated table can include a killed-by-player condition so mob farms and environmental deaths do not trigger it.
Yes. Loot functions can set enchantments, custom names, lore, and stack counts.
If the pack uses the same namespaced path as a vanilla table, it replaces it. Otherwise it adds a new table you can call yourself.
Unzip nothing — drop the downloaded .zip straight into your world's datapacks folder, then run /reload in game.