How to use with disabled enchantments - Zazcallabah/mce GitHub Wiki

Sometimes, you may want to simulate enchantments in an environment with a server plugin that disallows certain enchantments. One example is the Heroes plugin, which has a complete revamp of the experience system, and must take over enchanting. As a result, it must disable certain enchantments.
To follow this guide, you should use the single-download version.
##Instructions

  1. Download and save the single-download version. To do this, open the page, right click anywhere and click "Save As...".
  2. Open the .html file in a text editor (for example, Notepad).
  3. Find the following text: "var _enchantments = "
  4. Identify the data for the enchantment to be disabled. For this example, we will use the "baneofarthropods" enchantment.
  5. Find the canEnchant function. For Bane of Arthropods, it is this line:
    canEnchant: function(mId,iId) { return iId === 1; },
  6. Make the canEnchant function always return false. For minimal effort, copy the text " false }, //" and use it to create the following:
    canEnchant: function(mId, iId) { return false }, //iId === 1; },
  7. Repeat steps 5 through 7 for each enchantment to be disabled.
  8. Now, open the page in Chrome (or the web browser you use for the enchantments). This will simulate enchantments in the desired environment. ##Lists of what to disable ####Heroes (Bukkit) disable: protection, blastprotection, projectileprotection, sharpness, smite, baneofarthropods, punch
⚠️ **GitHub.com Fallback** ⚠️