Ssomar Plugins
🛒 Purchase📢 Discord❤️ Donate
  • Tools for all Plugins [Score]
    • 📚Custom Commands
      • Player & Target Commands
      • Mixed Commands (Player & Entity)
      • Entity Commands
      • Block Commands
      • Item Commands
      • Utility Commands
    • 📚Custom Conditions
      • Player & Target Conditions
      • Entity Conditions
      • Block Conditions
      • World Conditions
      • Item Conditions
      • Placeholder Conditions
      • Custom EI Conditions
    • 🏹Custom Projectiles
    • 📚Placeholders
    • ✨ SCore particles
    • 🧮 SCore Variables
    • ✔️Compatible Plugins
    • 🤖General Questions | Guides
      • Technical-Level Info
      • SCore
      • Math Formulas
      • Utilities
        • Code Bin/Stock
    • 📰 SCore
      • General config
      • Commands
    • 🔘 Custom triggers
  • ExecutableItems
    • 📌Information EI
    • 📃Configurations
      • General Configuration
      • Item Configuration
        • Item Features
        • Item Restrictions/Resistances
      • Activator Configuration
        • List of the Activators
        • Activators features
    • ⌨️Commands & Permissions
    • 🤖Questions | Guides
      • Frequently Asked Questions
        • Free vs Premium
        • Install/update/errors
          • How to install correctly
          • How to update correctly
          • Installation errors [logs]
          • Plugin doesn't work 😡😡
          • command /ei doesn't work
          • Just installed the plugin and have errors on my logs
        • Players can't use the items
        • Basic tutorials
        • Item disappears | Limit
        • EI COMMANDS doesn't work
        • How to use vanilla commands
        • Server chat spamming
        • Custom crafting
        • Folders on /ei show
        • Item as player head
        • Armor trims
        • Attributes not working
        • How to duplicate an EI Item
        • How to change particle vanilla command color
        • Edit plugin messages
        • Item Textures
        • I want to give an item on join
        • Issue with written book
        • How to add custom NBTTag
        • HEX COLORS doesn't work
        • HUGE delay | cooldown | command time
        • Trident duplication
        • Custom name feature is not working
        • Score database large
        • PROJECTILE_HIT_... activators not working
        • Not so frequentlly asked questions
      • Items explanations
        • Item ideas - How to create...?
        • Hight-Powered Grappling Hook
        • Morph Tools
        • Delayed Teleport Towards Saved Location
        • Box of ender pearls
        • Swap position
        • Magnet
        • Item frame visibility toggler
        • Hermes boots
        • EI |WorldEdit -> SET COMMAND
        • Bag of items
        • Infinite rockets
        • Trident that works when not raining
        • [Complex] Moving Particle Projectile
      • Methods | Template
        • Multiple projectiles on one item
        • Custom drops
        • Deal % of entity HP
        • Variable conditions
        • Armor Set Bonus
        • Custom durability
          • Custom durability bar
        • Action Counter
        • On / Off Switch
        • Custom food
        • Raycast
        • Random activators selector
        • Break blocks not depending on item
        • Infinite | finite blocks
        • Damage | Hit features
        • Backstab
        • Item date on lore
        • Entity health condition
        • Dashes | Commands & usage
        • Guns
        • RNG Chance activator
        • Only usable on mainhand
        • Transform Vanilla Items into ExecutableItems
        • Insta pickup
        • Epic particles
        • Custom totems
        • One Time Loop
        • OneTime action
        • MINEINCUBE command whitelist or blacklist blocks
        • Cancel a delayed command
        • Worldedit schematic
        • Condition 1 between 5 different armor pieces
        • Creating Items with multiple activators with varying conditions while having only one error message
        • [Free version] Mana Requirement
        • Setting Up a System that runs the auto update feature once per update
        • [Outdated] Global Cooldown
      • Custom projectiles implementation
        • Projectile ideas - How to create...?
        • Creating a basic projectile
        • Launch Arrows in cone
        • Launch Diamond Axe
        • Custom Actions / Damages per projectiles
      • Custom textures
        • Custom textures [1.21 --]
          • General items
          • Per states texture
          • Custom armor (using armor trims)
          • Animated textures
          • 3D Models
          • Uploading texture pack
          • Fixing Invalid PNG Files
        • Custom texture [1.21+]
      • Custom sounds
      • Informal Guides
      • Plugin performances optimization
    • 🔦MC Versions Compatibility
    • ⚙️Developer API
  • ExecutableBlocks
    • 📌Information EB
    • 📃Configurations
      • General Configuration
      • Block Configuration
        • Block Features
        • Blocks Examples
      • Activator Configuration
        • List of the Activators
        • Activators features
        • Activator Examples
    • ⌨️Commands & Permissions
    • 🤖Question | Guides
      • Frequently Asked Questions
        • Free vs Premium
        • Install/update/errors
          • How to install correctly
          • How to update correctly
          • Installation errors [logs]
          • Plugin doesn't work 😡😡
        • Players can't use the blocks
        • Block disappears | Limit
        • How to use vanilla commands
        • Server chat spamming
        • Custom crafting
        • Block as player head
        • Tutorial
        • Block states
        • Block Textures
        • My condition is checking the owner
        • SETEXECUTABLEBLOCK does not work
        • Holograms won't vanish
      • Tutorials
        • Boss summoner
        • Item generator
        • Custom crops
        • Custom TNT
        • Block that generate a structure
      • Methods
        • Timed actions
        • Worldedit schematic
    • ⚙️Developer API
  • ExecutableEvents
    • 📌Information EE
    • 📃Configurations
      • General Configuration
      • Activator Configuration
        • List of the Activators
        • Activators features
    • 🤖Question | Guides
      • Informal Guides
      • Frequently Asked Questions
        • Install/update/errors
          • How to install correctly
          • How to update correctly
          • Installation errors [logs]
          • Plugin doesn't work 😡😡
        • How to use vanilla commands
        • Server chat spamming
      • Tutorials
        • Toggle System/Command with Godmode
        • Custom enchants by lore
        • Give new/old players an item once
        • Run commands after killing x amount of mobs
        • Detect player entry/leave from a worldguard region
    • ⌨️Commands & Permissions
  • MyFurniture
    • 📌Information MF
    • 📃Configurations
      • General Configuration
      • Furniture Configuration
        • Furniture Features
        • Furntiture Examples
      • Activator Configuration
        • List of the Activators
        • Activators features
    • 🤖Question | Guides
      • Frequently Asked Questions
        • Install/update/errors
          • How to install correctly
          • How to update correctly
          • Installation errors [logs]
          • Plugin doesn't work 😡😡
        • Import your own Furniture
        • How to use vanilla commands
        • Server chat spamming
        • Free vs Premium
    • ⌨️Commands & Permissions
  • ExecutableCrafting
    • 📌Information EC
    • 📃Configurations
      • General Configuration
      • Recipe Configuration
        • Recipe Features
        • Crafting Recipe Examples
      • Recipe groups
      • Recipe Book
    • 🤖Questions | Guides
      • Free vs Premium
      • Install/update/errors
        • How to install correctly
        • How to update correctly
    • ⌨️Commands & Permissions
  • AI Chat Moderation
    • 📌Information ACM
    • 📃Configurations
    • ⌨️Commands & Permissions
  • CustomPiglinsTrades
    • 📌Information CPT
    • ⌨️Commands & Permissions
    • ✔️Compatible Plugins
  • ScreenShop
    • 📌Information ScreenShop
  • TEAM AND DONATIONS
    • 🎆Contact / Support us ?
Powered by GitBook
On this page
  • Custom commands
  • ADD_ITEM_ATTRIBUTE
  • ADD_ITEM_ENCHANTMENT
  • ADD_ITEM_LORE
  • FORMAT_ENCHANTMENTS
  • MODIFY_DURABILITY
  • REMOVE_ENCHANTMENT
  • REMOVE_LORE
  • SET_ARMOR_TRIM
  • SET_ITEM_NAME
  • SET_ITEM_COLOR
  • SET_ITEM_ATTRIBUTE
  • SET_ITEM_CUSTOM_MODEL_DATA
  • SET_ITEM_MATERIAL
  • SET_ITEM_LORE
Edit on GitHub
  1. Tools for all Plugins [Score]
  2. Custom Commands

Item Commands

You want keep the brut HEX form in your command ? add the tag BRUT_HEX in your command. It works anywhere in the command line but it's recommended to put it in the first part of the cmd to make it less confusing

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

And the slots here

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 

You can find the enchantments here

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

You can find all trim pattern here:

You can find all trim material here:

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

It supports FIREWORK_STAR

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

Only works at 1.20.5 and above

  • 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

PreviousBlock CommandsNextUtility Commands

Last updated 19 days ago

You can find the attributes here

->

Use the website: for the leather color

You can find the attributes here

📚
https://hub.spigotmc.org/javadocs/spigot/org/bukkit/attribute/Attribute.html
https://hub.spigotmc.org/javadocs/spigot/org/bukkit/inventory/EquipmentSlot.html
https://hub.spigotmc.org/javadocs/bukkit/org/bukkit/enchantments/Enchantment.html
https://hub.spigotmc.org/javadocs/bukkit/org/bukkit/inventory/meta/trim/TrimPattern.html
https://hub.spigotmc.org/javadocs/bukkit/org/bukkit/inventory/meta/trim/TrimMaterial.html
https://www.tydac.ch/color/
https://hub.spigotmc.org/javadocs/spigot/org/bukkit/attribute/Attribute.html