![]() |
||
---|---|---|
gradle/wrapper | ||
src/main | ||
.gitignore | ||
LICENSE | ||
README.md | ||
build.gradle | ||
gradle.properties | ||
gradlew | ||
gradlew.bat | ||
settings.gradle |
README.md
Fabric Enchantment Disabler
Note: this mod is server side only and won't work on clients
This mod allows you to disable specific enchantments for specific items on fabric server side
The config file is located in the config directory (config/fabric-enchantment-disabler.jsonc
) and looks like this:
The strings that you need to use for the names are the Translation Strings
{
"configVersion": 1,
"debugAllAvailableEnchantments": false,
"debugAllAvailableItems": false,
"disabledEnchantments": [
"enchantment.minecraft.mending",
"enchantment.minecraft.unbreaking",
"enchantment.minecraft.efficiency"
],
"disableOnItems": [
"item.minecraft.netherite_sword",
"item.minecraft.netherite_pickaxe",
"item.minecraft.netherite_axe",
"item.minecraft.netherite_shovel",
"item.minecraft.netherite_hoe",
"item.minecraft.netherite_helmet",
// [...]
]
}
By the way, in its current state this will not check for stuff that is not allowed already present in inventories, it only applies to new items and enchanting attempts.
Debugging
You can toggle debugAllAvailableEnchantments
and debugAllAvailableItems
to true to see all available enchantments and items in the server logs.