Enchant Faker
This modification adds the ability to apply enchantments to entities based on active status effects. The relationship between effects and enchantments is defined through special mob effect tags.
How It Works
The system monitors statuses affecting any mob or player and automatically adds enchantments associated with these effects. This allows for creating unique combinations of abilities and features.
Basic Setup
To work with the mod, you'll need to create a datapack with effect tags. Place the files in the data/minecraft/tags/mob_effect/ directory.
Configuration Example
File data/minecraft/tags/mob_effect/gives_respiration.json:
{
"replace": true,
"values": [
"spectral_seas:amphibious"
]
}

After setting up tags, you need to add mappings to the mod's configuration file.
File enchant_faker.json5:
{
// Tag to enchantment mappings
"tagConfig": [
{
"tag": "gives_respiration",
"enchantment": "minecraft:respiration",
"level": 3
}
]
}
As a result, when an entity is under the spectral_seas:amphibious effect, it will automatically receive the Respiration III enchantment as if wearing a helmet with this enhancement.
Important: after making changes to settings, you need to restart Minecraft.
Notes
The mod was created under the influence of the Lilligant project.
Icon: magic hat by ridhobadal.