Skip to content

GitLab

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
MythicCrucible MythicCrucible
  • Project overview
    • Project overview
    • Details
    • Activity
  • Issues 51
    • Issues 51
    • List
    • Boards
    • Labels
    • Service Desk
    • Milestones
  • Operations
    • Operations
    • Incidents
  • Analytics
    • Analytics
    • Repository
    • Value Stream
  • Wiki
    • Wiki
  • Members
    • Members
  • Activity
  • Create a new issue
  • Issue Boards
Collapse sidebar
  • MythicCraft
  • MythicCrucibleMythicCrucible
  • Wiki
  • Item Updater

Last edited by Lxlp Feb 25, 2024
Page history

Item Updater

Updates the item on MM reload when ItemVersion differs. This allows you to update items when MM reloads by changing the ItemVersion. Inside your config.yml you will find the following option to determine if this feature should be available or not:

ItemUpdater:
  Enabled: true

And enabling that allows for the following options to be used inside items:

example_item:
  Id: stone
  ItemUpdater:
    Version: 0                # Defaults at 0
    PreserveStatRatio: true   # Defaults at true

Examples

yet_another_example_item:
  Id: diamond_sword
  ItemUpdater:
    Version: 1
    PreserveStatRatio: true
  Lore:
    - "Really really cool sword."
yet_another_example_item:
  Id: diamond_sword
  ItemUpdater:
    Version: 2
    PreserveStatRatio: true
  Lore:
    - "I hated the old lore so I updated it."

The second sword will replace the first sword with the updated lore whenever a player interacts with it in their inventory.

Clone repository
Home
Changelogs
Commands / Permissions
API
FAQ / Common Issues
Guides

Usage
  • Installation
  • Items
    • Item Options
    • Item Skills
    • Item Durability
  • Augments
  • Item Sets
  • Crafting Recipes
    • Workbenches
  • Item Updater
  • Ammo System / Guns
  • Dynamic Lore Generation
  • World Generation
  • Loot Generation

ResourcePack Generator

Item Types
  • Blocks
  • Furniture
    • Paint Brush
  • Bags
  • Hats
  • Augments

Mechanics
  • Mechanics
  • Targeters
  • Triggers
  • Conditions

Placeholders
  • Placeholders