Skip to content
nahkd123 edited this page Jul 28, 2021 · 1 revision

Traits are items modifiers, each traits can store data, as well as modify the item meta. Traits can only be created by other plugins, but ManyItems also includes some traits for you to use.

Adding traits to item

Traits can be added inside item configuration:

# item.yml
traits:
  trait_id:
    # Traits configuration

Traits meta modifiers order

Sometimes you don't want trait A to modify the meta before trait B, therefore you need to change the order inside config.yml:

# Traits configuration
traits:
  meta-modifiers-order: ["trait_b", "trait_a"]

This is important to display something on item tooltips, and if you don't include the trait ID inside meta-modifiers-order array, it won't be displayed on tooltips.

Traits list

These traits are provided by ManyItems. You don't need other plugin to use these

Name Trait ID Wiki
Rarity rarity here

Clone this wiki locally