Item Commands
Custom commands
Sorted by alphabetical order
ADD_ITEM_ATTRIBUTE
Info: It adds an attribute to an item as sum or rest operation.
Command: settings
attribute: The attribute you want to add
value: The value for the operation
equipmentSlot: The slot where the attribute will be enabled
mode: select the mode of addition
mode:ADD # Add the attribute to the item
mode:OVERRIDE # Remove the current attributes of the same type of the item + Add the attribute to the item
mode:STACK # Stack with the attribute present on the item, if no one exist it adds it
affectDefaultAttributes: true or false # When it's true the mode OVERRIDE will also override the default attributes, and for the MODE stack it allows to stack with the default attributes (green)
Example:
activators:
activator0: # Activator ID, you can create as many activator on the activators list
option: # Here goes an activator that is at least instance of player
itemCommands:
- ADD_ITEM_ATTRIBUTE attribute:GENERIC_ATTACK_DAMAGE value:1.0 equipmentSlot:HAND mode:ADD # Add this attribute to the player
ADD_ITEM_ENCHANTMENT
Info: It adds an enchantment on an item on a specific slot with certain level
Command: settings
enchantment: The enchantment that you want to be applied, don't use spaces, use the minecraft enchantments not the display ones.
level: The level for the enchantment
Example:
activators:
activator0: # Activator ID, you can create as many activator on the activators list
option: # Here goes an activator that is at least instance of player
itemCommands:
- ADD_ITEM_ENCHANTMENT enchantment:unbreaking level:1
ADD_ITEM_LORE
Info: Adds a line of lore
Command settings
text: The text for the new lore line
Example:
activators:
activator0: # Activator ID, you can create as many activator on the activators list
option: # Here goes an activator that is at least instance of player
itemCommands:
- ADD_ITEM_LORE text:&7Item of %player%
FORMAT_ENCHANTMENTS
Info: It formats all enchantments in your lore
Command: FORMAT_ENCHANTMENTS
Example:
activators:
activator0: # Activator ID, you can create as many activator on the activators list
option: # Here goes an activator that is at least instance of player
itemCommands:
- FORMAT_ENCHANTMENTS
MODIFY_DURABILITY
Modifies the durability of the item
Command settings:
modification: Positive value to increase the durability. Negative value to decrease the durability
supportUnbreaking: (true or false) If it supports the unbreaking enchantment or not
Example:
activators:
activator0: # Activator ID, you can create as many activator on the activators list
option: # Here goes an activator that is at least instance of player
itemCommands:
- MODIFY_DURABILITY modification:-1 supportUnbreaking:true
REMOVE_ENCHANTMENT
Info: Remove an enchantment from the item
Command settings:
enchantment: Enchantment to remove (ALL for every enchantment)
Example:
activators:
activator0: # Activator ID, you can create as many activator on the activators list
option: # Here goes an activator that is at least instance of player
itemCommands:
- REMOVE_ENCHANTMENT enchantment:ALL
REMOVE_LORE
Info: Remove a lore line
Command settings:
{line}: The line that you want to remove
Example:
activators:
activator0: # Activator ID, you can create as many activator on the activators list
option: # Here goes an activator that is at least instance of player
itemCommands:
- REMOVE_LORE line:5
SET_ARMOR_TRIM
Info: Set the specific armor trim with the specific pattern for the specified slot
Command settings:
pattern: The pattern of the trim (if 'null' or 'remove' it will remove the current pattern)
patternMaterial: The material of the pattern
Example:
activators:
activator0: # Activator ID, you can create as many activator on the activators list
option: # Here goes an activator that is at least instance of player
itemCommands:
- SET_ARMOR_TRIM pattern:vex patternMaterial:netherite
- SET_ARMOR_TRIM pattern:null #to clear the armor trim
SET_ITEM_NAME
Info: Sets a custom name for your item in a specific slot
Command settings:
name: the new name of the item
Example:
activators:
activator0: # Activator ID, you can create as many activator on the activators list
option: # Here goes an activator that is at least instance of player
itemCommands:
- SET_ITEM_NAME name:&eThis is the new name of the item
SET_ITEM_COLOR
Info: Sets a specific color for the item (item colorables as leather armor)
Command settings:
color: number value of the color
Example:
activators:
activator0: # Activator ID, you can create as many activator on the activators list
option: # Here goes an activator that is at least instance of player
itemCommands:
- SET_ITEM_COLOR color:0
SET_ITEM_ATTRIBUTE
Info: It sets an attribute to an item.
Command settings:
attribute: The attribute you want to add
value: The value for the operation
equipmentSlot: The slot for the attribute
Example:
activators:
activator0: # Activator ID, you can create as many activator on the activators list
option: # Here goes an activator that is at least instance of player
itemCommands:
- SET_ITEM_ATTRIBUTE attribute:GENERIC_ARMOR value:10 equipmentSlot:CHEST
SET_ITEM_CUSTOM_MODEL_DATA
Info: Sets a specific custom model data to the specific item
Command settings:
customModelData: value of the customModelData
Example:
activators:
activator0: # Activator ID, you can create as many activator on the activators list
option: # Here goes an activator that is at least instance of player
itemCommands:
- SET_ITEM_CUSTOM_MODEL_DATA customModelData:10
SET_ITEM_MATERIAL
Replaces the material of the item with a different material while keeping the nbt of the target item
Commands settings:
material: The material you want the item to become into
Example:
activators:
activator0: # Activator ID, you can create as many activator on the activators list
option: # Here goes an activator that is at least instance of player
itemCommands:
- SET_ITEM_MATERIAL material:DIAMOND_HOE
SET_ITEM_LORE
Info: Sets a line of lore
Command settings:
line : If you want to set the lore of the first type 1
text: The new line text
Example:
activators:
activator0: # Activator ID, you can create as many activator on the activators list
option: # Here goes an activator that is at least instance of player
itemCommands:
- SET_ITEM_LORE line:3 text:&6LEGENDARY SWORD
Last updated