MythicChanger Wiki
  • 🎉Welcome
  • 📦Info
    • ✅Requirements
    • ⚙️Install
    • ⛔Limitation
    • 🔗Compatibility
    • 🛠️Configuration files
    • ⌨️Commands
    • ❓FAQ
    • 📋Format
    • 🆚Compare
  • 🤖Auto Match & Change
    • 📂Info of Auto Match & Change
    • 📌Rule
    • 📚Rule Config Example - Lore Modifier
    • 📚Rule Config Example - Vanilla Item Replacer
    • 📚Rule Config Example - Illegal Enchant Level Remover
    • 📚Rule Config Example - Random Replace
  • 🌱Drag/GUI Change
    • 📂Info of Drag/GUI Change
    • 🪄Apply Item
    • 📚Apply Item Example - Enchantment Scroll
    • 📚Apply Item Example - Attribute Scroll
    • 📚Apply Item Example - Stat Scroll
  • 🔍Match Rules
    • None
    • Items
    • Material
    • Material Tag
    • Contains Name/Contains Lore
    • Contains Enchants/Stored Enchants
    • Contains Enchants/Stored Enchants Amount
    • Contains Apply
    • Contains NBT
    • Has Name
    • Has Lore
    • Has Enchants
    • Has Apply
    • Rarity
    • NBT
    • NOT
    • ANY
    • Enchantable
    • Item Format
  • 🔄Change Rules
    • ⚠️Note
    • Empty
    • Fix Hide Attributes Bug
    • Add Name
    • Add Lore
    • Add Attributes
    • Set Name/Lore
    • Set Custom Model Data
    • Set Amount
    • Add flag/Remove flag
    • Add enchants
    • Delete enchants
    • Remove Name/Lore
    • Remove Enchants
    • Set Type
    • Random
    • Replace Item
    • Replace Name
    • Replace Lore
    • Replace Enchants
    • Set Color
    • Parse PAPI
    • NBT
    • Edit Item
    • Edit Lore
    • Keep
    • Deapply
    • Apply Limit
    • MMOItems
  • ✨Features
    • 🎨Color Code
    • ⚡Powerful Item Placeholders
    • 🌍Localized Item Name - Premium
    • ✔️Only In Player Inventory
    • 💾Saved Item
  • 💻Develop
    • Add custom rules
Powered by GitBook
On this page
  • How to do that?
  • Want me help you add?
  1. 💻Develop

Add custom rules

Both match rule and change rule can be added by yourself with our API.

How to do that?

First you need creata a new class that extends AbstractChangesRule or AbstractMatchItemRule abstract class.

Then use:

ChangesManager.changersManager.registerNewRule(AbstractChangesRule rule)
MatchItemManager.matchItemManager.registerNewRule(AbstractMatchItemRule rule)

depends on that rule you want to register.

Both AbstractChangeRule and AbstractMatchItem object are abstract class.

Want me help you add?

If you don't have any plugin development experience and want me to help you, first you need consider buy the premium version of MythicChanger.

If your wanted rule is universal (means many people also want use it) and does not very complex, I MAYBE consider add it.

Previous💾Saved Item

Last updated 8 months ago