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:
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:
ADD_ITEM_LORE
Info: Adds a line of lore
Command settings
text: The text for the new lore line
Example:
FORMAT_ENCHANTMENTS
Info: It formats all enchantments in your lore
Command: FORMAT_ENCHANTMENTS
Example:
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:
REMOVE_ENCHANTMENT
Info: Remove an enchantment from the item
Command settings:
enchantment: Enchantment to remove (ALL for every enchantment)
Example:
REMOVE_LORE
Info: Remove a lore line
Command settings:
{line}: The line that you want to remove
Example:
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:
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:
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:
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:
SET_ITEM_CUSTOM_MODEL_DATA
Info: Sets a specific custom model data to the specific item
Command settings:
customModelData: value of the customModelData
Example:
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:
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:
Last updated