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
  1. 🔄Change Rules

⚠️Note

You can use change rules at both fake-changes and real-changes option.

The rule with an * symbol indicates that the item will be replaced, the original item will disappear, and then the new item will replace the original item.

When using these rules, please be sure to note that the replaced item can no longer meet this rule, otherwise the item will be constantly replaced, causing a dead loop and ultimately causing the server to crash!

fake-changes:
  add-name-first: '&fGood '
  set-name: '&fGood Diamond Sword'
  add-lore-last:
    - '&f&lCommon'
  set-lore:
    - '&7A good sword that all adventures should use!'
    - '&f&lCommon'
  add-lore-prefix: '%img_tooltip1%'
  set-custom-model-data: 5
  add-flags:
    - 'HIDE_ENCHANTS'

real-changes:
  add-enchants:
    POWER: 1
  remove-enchants:
    - 'POWER'
  remove-all-enchants: true
  replace-item:
    material: golden_sword
PreviousItem FormatNextEmpty

Last updated 4 months ago