Enchants of the item.
You can set vanilla enchants and custom enchants of other plugins (for example EcoEnchants, GoldenEnchants...).
Supports also namespaces (if you are creating custom enchants using Namespaced keys)
There are pretty self explanatory.
usages are a special propery which allows you to set a number of usages for the current item. Remember to decrement it using events (check events tutorial).
custom_durability is the durability amount which the item has on crafting (if not specified is the same as max_custom_durability)
max_custom_durability is the max durability the item can reach
Special attribute to limit spamming of events by players. It's in ticks, so 20 = 1 second.
healing_crystals:display_name:display-name-healing_crystalspermission:healing_crystalsresource:material:IRON_SWORDgenerate:truetextures: - item/healing_crystals.pngdurability:max_custom_durability:6custom_durability:6disappear_when_broken:trueitem_flags: - HIDE_ATTRIBUTESevents_cooldown:1200########### <-- EXAMPLE 60 secondsevents:interact:right:play_particle:name:HEARTdecrement_durability:amount:1potion_effect:type:REGENERATIONduration:70amplifier:4
events_needed_player_stats
Special attribute to make events work only if the player stat (ItemsAdder player stat, which are usually shown in HUDs) satisfies the set rule.
You can set it to >, < ad =
Example:
magic_wand:display_name:"Magic wand"permission:magic_wandresource:material:DIAMOND_SWORDgenerate:truetextures: - item/example_item.pngdurability:max_custom_durability:512attribute_modifiers:mainhand:attackDamage:0.1blocked_enchants: - ALLevents_needed_player_stats:mana:">0"### <---- for example. You could also set it to <5 or =1 for example.events:interact:entity:target_potion_effect:type:GLOWINGduration:70amplifier:15decrement_player_stat:name:manaamount:1
glow
You can make an item glowing when dropped on the ground.
Very useful for rare items.
In order to use the glow feature you have to install two APIs.
They are needed because this feature is impossible to implement without writing an extremely long code, someone already did it and we can use their API.