Gamemode 4 is a collection of modular Minecraft Datapacks that change or expand on the vanilla experience whilst keeping the vanilla feel. Our modules are developed with a focus on usability and efficiency.
new function tag that runs when an item extraction occurs, so other packs can add their own enchantment extraction logic
new function tag that runs before an item extraction occurs so other packs can treat some enchantments as curses (cursed items only extract the curse)
new function tag that runs before the enchantments are cleared from the item in storage so other packs can save enchantments that shouldn't get cleared (i.e. technical enchantments)
new function tag that runs after the item's enchantments are removed in storage, but before it's updated in the block so other packs can restore those technical enchantments that shouldn't have been removed
Chances are up for debate, but these are what I decided for now. Tested this and it works for all enchantments with all levels.
Breach: 85, 70, 50, 35* (similar to piercing [90, 70, 50, 30]) Density: 95, 70, 60, 50, 30 (matches smite and sharpness) Wind Burst: 70, 50, 30 (matches riptide)
*3% chance to have curse of vanishing
This PR also adds support for custom enchantments