
Description
Magic Find
Magic Find adds extra rewards to Minecraft loot containers based on the player's Magic Find progression.
The original loot is preserved. When a bonus loot injection succeeds, the player hears an activation sound and the added items are marked inside the container.
Features
- Add extra rewards to any configured chest or container.
- Add extra rewards when killing any configured entity.
- Configure different rewards for different containers and entities.
- Requires specific Magic Find values to obtain rare rewards.
- Increases the number of bonus rolls as Magic Find increases.
- Configurable weight system to control reward probabilities.
- Configure minimum and maximum item amounts per reward.
- Gain Magic Find by completing achievements and killing configured entities.
- Compatible with vanilla, modded, and Lootr containers.
- Configure everything through datapacks.
How It Works
When a player opens a configured container, Magic Find checks the player's progression and the configuration assigned to that loot table.
If the injection activates, the mod selects and adds bonus rewards to empty slots while keeping the original loot untouched. The player receives an activation sound, and the added items receive a visual mark.
If the injection does not activate, the container keeps only its normal loot.
Configuration Location
Place JSON files in:
data/magicfind/mf_inject/
Example:
data/magicfind/mf_inject/my_rewards.json
Use /reload after adding or changing a file.
Configuration Example
{
"target": "minecraft:chests/simple_dungeon",
"replace": false,
"rolls_by_mf": {
"0": 1,
"2200": {
"min": 1,
"max": 2
},
"3750": {
"min": 1,
"max": 3
}
},
"pool": [
{
"item": "minecraft:iron_ingot",
"count_min": 2,
"count_max": 5,
"required_mf": 0,
"weight": 40
},
{
"item": "minecraft:diamond",
"count_min": 1,
"count_max": 2,
"required_mf": 1650,
"weight": 10
}
]
}
Configuration Options
target
The loot table that receives bonus rewards.
"target": "minecraft:chests/simple_dungeon"
Use the complete loot table ID, including its namespace.
Examples:
minecraft:chests/simple_dungeon
minecraft:chests/abandoned_mineshaft
minecraft:chests/end_city_treasure
minecraft:entities/zombie
rolls_by_mf
Controls the number of bonus reward rolls.
"rolls_by_mf": {
"0": 1,
"2200": {
"min": 1,
"max": 2
},
"3750": {
"min": 1,
"max": 3
}
}
The highest Magic Find threshold reached by the player is used. In this example:
- Below
2200: 1 bonus roll. - From
2200: 1 to 2 bonus rolls. - From
3750: 1 to 3 bonus rolls.
A number creates a fixed amount of rolls. min and max create a random range.
pool
The list of rewards that can be added.
Each reward uses:
{
"item": "minecraft:diamond",
"count_min": 1,
"count_max": 2,
"required_mf": 1650,
"weight": 10
}
item: the item ID.count_min: minimum amount.count_max: maximum amount.required_mf: Magic Find required to unlock the reward.weight: relative chance of selection.
A reward with weight 20 is selected twice as often as an eligible reward with weight 10.
Creating Your Own Rewards
Create a pool that fits the container you are modifying. For example:
- Add tools and materials to a tool-related container.
- Add weapons and combat equipment to a weapon-related container.
- Add Nether resources to a Nether container.
- Add End resources to an End container.
- Add food and supplies to a survival container.
Use higher required_mf values for stronger rewards and lower weight values for rarer rewards.
Magic Find Progression
Players can gain Magic Find from:
- Eligible advancements.
- Configured entity kills.
Higher Magic Find can unlock better rewards and increase the number of bonus rolls.
Datapacks
Configurations can be added through a datapack using the same path:
<datapack>/data/magicfind/mf_inject/my_rewards.json
Datapacks allow you to add or change rewards without modifying the mod's Java code.
Compatibility
Magic Find supports vanilla loot tables, modded loot tables and Lootr containers. Attribute Core is required for the Magic Find progression system.
🌐 Join Our Discord Community
Do you have new ideas, improvements for my mods, or have you found a bug? This is the perfect place to share them!
In our Discord community you can:
💡 Submit proposals and suggestions for improving the mods.
🛠️ Report problems and bugs so we can fix them together.
🎮 Show your creativity: you're free to use my mods in your own modpacks.
📢 Share your modpack on the server and show the community your unique style.
This space is designed for us to grow together, with respect and enthusiasm for creating mods and modpacks. Your contribution is always welcome!



