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
- Download and save the single-download version. To do this, open the page, right click anywhere and click "Save As...".
- Open the .html file in a text editor (for example, Notepad).
- Find the following text: "var _enchantments = "
- Identify the data for the enchantment to be disabled. For this example, we will use the "baneofarthropods" enchantment.
- Find the canEnchant function. For Bane of Arthropods, it is this line:
canEnchant: function(mId,iId) { return iId === 1; },
- 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; },
- Repeat steps 5 through 7 for each enchantment to be disabled.
- 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