EnchantmentBlocker

EnchantmentBlocker

Block certain enchantments from your server

9 downloads

Example

Enchantment blocker

This PaperMC Plugin helps you ban certain enchantments from your server.

Commands

  • /eblock set <enchantment> <level>: limits the <enchantment> to max level <level> or blocks it fully for <level> = 0
  • /eblock remove <enchantment>: removes the enchantment from the blocklist

config.yml

/eblock writes to the config.yml, but you can also modify it manually.

Example:

enchantments:
  minecraft:sharpness: 0 # block Sharpness
  minecraft:fire_aspect: 1 # Fireaspect max. level 1

When and how are enchantments removed?

Enchantments are removed when a player picks up an Item or Moves it in the Inventory. This only applies to enchanted items not enchanted books. Items with blocked enchantments can still be found or enchanted via anvil or enchanting table, but the blocked enchantments are removed once the player takes the item.

Slop Free

This code is 100% Human Written, no generative AI was used in the process of making this plugin.