[wip] allows you to disable specific enchantments for specific items on fabric server side
Go to file
Kay 36ef91389b readme 2023-05-31 02:31:25 +02:00
gradle/wrapper Init 2023-01-25 16:16:00 +01:00
src/main change to a general configurable thing 2023-05-31 02:21:51 +02:00
.gitignore Init 2023-01-25 16:16:00 +01:00
LICENSE pretty sure thats not okie ^.^ 2023-05-30 08:54:36 +02:00
README.md readme 2023-05-31 02:31:25 +02:00
build.gradle Init 2023-01-25 16:16:00 +01:00
gradle.properties change to a general configurable thing 2023-05-31 02:21:51 +02:00
gradlew Init 2023-01-25 16:16:00 +01:00
gradlew.bat Init 2023-01-25 16:16:00 +01:00
settings.gradle Init 2023-01-25 16:16:00 +01:00

README.md

Fabric Enchantment Disabler

fabric-api logo

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.