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. 🤖Auto Match & Change

📚Rule Config Example - Random Replace

This example file will only work for PREMIUM version of MythicChanger.

weight: 15

match-item:
  material:
    - iron_sword
  has-name: false

fake-changes: 
  replace-item:
    material: iron_sword
    name: '&c???'
    lore:
      - '&fNo one knows what sword'
      - '&fyou will obtain...'

real-changes: 
  replace-random-item:
    1:
      material: iron_sword
      amount: 1
      name: §fSharp §fLong Sword
      lore:
      - §cSword
      - §f
      - §eRequires Lvl 0
      - §f
      - '§3 §7➸ Attack Damage: §f8.1'
      - '§3 §7➸ Attack Speed: §f1.6'
      - §f
      - §c🔥§7 10 Fire Damage
      - §7Much sharper!
      flags:
      - HIDE_ATTRIBUTES
      attributes:
        GENERIC_ATTACK_SPEED:
          name: decoy
          amount: 0.0
          operation: ADD_NUMBER
          slot: any
      rate: 1
    2:
      material: iron_sword
      amount: 1
      name: §fKatana
      lore:
      - §cSword
      - §f
      - '§3 §7➸ Attack Damage: §f7'
      - '§3 §7➸ Attack Speed: §f2'
      - '§3 §7■ Crit Strike Chance: §f+10%'
      - '§3 §7■ Movement Speed: §f+2'
      - §f
      - §7§oA very sharp & light sword
      - §7§oforged by a hundred years
      - §7§oof smithing mastery.
      - §f
      - '§3 §7Tier: §6§lRARE'
      - '§7Durability: 800 / 800'
      flags:
      - HIDE_ATTRIBUTES
      attributes:
        GENERIC_ATTACK_SPEED:
          name: decoy
          amount: 0.0
          operation: ADD_NUMBER
          slot: any
      rate: 1

real-change-actions: []

conditions: []
    
only-in-player-inventory: false
Previous📚Rule Config Example - Illegal Enchant Level RemoverNext📂Info of Drag/GUI Change

Last updated 3 months ago