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
  • Global restrictions
  • Individual restrictions
  • Cancel the drop of the item
  • Cancel placing the block into the ground.
  • Cancel the use of the item in any recipes on the crafting table
  • Cancel the use of the item in only vanilla recipes, not affecting the custom ones
  • Cancel interaction to decorate minecraft pots
  • Cancel depositing the item into a storage
  • Cancel depositing the item into a furnace
  • Cancel the burn of the item in fire and lava
  • Cancel item delete because of cactus interaction
  • Cancel item delete when strike by a lightning
  • Cancel enchanting the item
  • Cancel item placement inside an anvil
  • Cancel rename action using an anvil
  • Cancel enchant action using an anvil
  • Cancel item interaction with horse/mule/llama
  • Cancel the consumption/eat of the item
  • Cancel use of the item inside the crafter block
  • Restriction of locked in the inventory
  • Cancel tool interactions
  • Cancel placing the item inside an item frame
  • Cancel the interaction with an smithing table
  • Cancel the interaction with a grind stone
  • Cancel the interaction with a stone cutter
  • Cancel the interaction with a brewing stand
  • Cancel the interaction with a beacon
  • Cancel the interaction with a cartography block
  • Cancel the interaction with a composter block
  • Cancel the interaction with a dispenser block.
  • Cancel the interaction with a dropper block
  • Cancel the interaction with a hopper block
  • Cancel the interaction with a lectern block
  • Cancel the interaction with a villager trader/merchant
  • Cancel item hand swapping
  • Cancel the interaction of a horn
  • CANCEL ARMOR STAND
Edit on GitHub
  1. ExecutableItems
  2. Configurations
  3. Item Configuration

Item Restrictions/Resistances

On this page you will learn about item restrictions and some resistances, this will allow you to customize the behavior on certain cases of the item.

Global restrictions

  • Info: If you would like to add one of item restrictions to all the items you have made on the plugin you can add the restriction config of the restriction(s) you want inside the config.yml file of the plugin.

  • Example: I would like to add the restrictions of not using anvil and grind stone to all ExecutableItems created and to be created

config.yml
# ----------------------------------
# -
#       ExecutableItems
# -
#         By: Ssomar
# -
# ----------------------------------
# -
# WIKI HERE : https://docs.ssomar.com/executableitems/information-ei
# DISCORD HERE : https://discord.com/invite/TRmSwJaYNv
# -

## Start of default config features
pickup-limit: -1
disable-world: [ ]
premium-enable-cooldown-for-op: true #Premium only
checkVersionMsg: true
disableTestItems: false # If you have a big server with a lot of players, it's recommended to turn this option on true
silentEIGive: false
silentMessagePreventionErrorHeadDBError: false
disableBackup: false #<- Backup your items config at each start / reload of the server
deleteBackupsAfterDays: 7 #<- It will deletes backups older than this number of days
## End of default config features
## 
## Start for manually added restrictions to apply on all ExecutableItems
restrictions:
  cancel-anvil: true
  cancel-grind-stone: true
## End for manually added restrictions to apply on all ExecutableItems

Individual restrictions

On this section you will learn how to add an individual restriction only for the ExecutableItem you are currently editing.

Cancel the drop of the item

  • Info: Boolean value that prevents the player from dropping the executable item.

  • Example:

restrictions:
  cancel-item-drop: true

Cancel placing the block into the ground.

  • Info: Boolean value that prevents the player from placing the Executable Items in case of the item is an instance of block into the ground.

  • Example:

restrictions:
  cancel-item-place: true

Cancel the use of the item in any recipes on the crafting table

  • Info: Boolean value that prevents the player from crafting vanilla recipes with the ExecutableItem.

  • Example:

restrictions:
  cancel-item-craft: true

Cancel the use of the item in only vanilla recipes, not affecting the custom ones

  • Info: Boolean value that prevents the player from crafting vanilla recipes with the Executableitem but can still be used for custom crafting recipes.

  • Example:

restrictions:
  cancel-item-craft-no-custom: true

Cancel interaction to decorate minecraft pots

  • Info: Boolean value that prevents the player from putting the ExecutableItems in the decorated pots

  • Example:

restrictions:
  cancel-decorated-pot: true

Cancel depositing the item into a storage

  • Info: Boolean value that prevents the player from putting the ExecutableItem in the following list:

    • Chest

    • Ender Chest

    • Trapped Chest

    • Barrel

    • Shulker Box

  • Example: (This feature doesn't work on creative)

restrictions:
  cancel-deposit-in-chest: true

Cancel depositing the item into a furnace

  • Info: Boolean value that prevents the player from putting the ExecutableItem in the following list:

    • Furnace

    • Blast Furnace

    • Smoker

  • Example: (This feature doesn't work on creative)

restrictions:
  cancel-deposit-in-furnace: true

Cancel the burn of the item in fire and lava

  • Info: Boolean value that prevents the ExecutableItem to get burn in fire or lava.

  • Example:

restrictions:
  cancel-item-burn: true

Cancel item delete because of cactus interaction

  • Info: Boolean value that prevents the ExecutableItem to get deleted when touching a cactus block.

  • Example:

restrictions:
  cancel-item-delete-by-cactus: true

Cancel item delete when strike by a lightning

  • Info: Boolean value that prevents the ExecutableItem to get deleted when a lightning strikes it.

  • Config: cancel-item-delete-by-lightning: true

  • Example:

restrictions:
  cancel-item-delete-by-lightning: true

Cancel enchanting the item

  • Info: Boolean value that prevents the item from getting enchanted

  • Example:

restrictions:
  cancel-enchant: true

Cancel item placement inside an anvil

  • Info: Boolean value that prevents the player from putting the ExecutableItem inside an anvil. This finally prevents from placing it so it prevents rename and enchant too.

  • Example:

restrictions:
  cancel-anvil: true

Cancel rename action using an anvil

  • Info: Boolean value that prevents the player from renaming the ExecutableItem using an anvil.

  • Example:

restrictions:
  cancel-rename-anvil: true

Cancel enchant action using an anvil

  • Info: Boolean value that prevents the player from enchanting the ExecutableItem using an anvil.

  • Example:

restrictions:
  cancel-enchant-anvil: true

Cancel item interaction with horse/mule/llama

  • Info: Boolean value that prevents the ExecutableItems for interaction with horses/mules/llamas. This disable the storage too.

  • Example:

restrictions:
  cancel-horse: true

Cancel the consumption/eat of the item

  • Info: Boolean value that prevents the player from consuming or eat the ExecutableItem.

  • Example:

restrictions:
  cancel-consumption: true

Cancel use of the item inside the crafter block

  • Info: Boolean value that prevents the player from putting the ExecutableItems inside a crafter block.

  • Config: cancel-crafter: false

restrictions:
  cancel-crafter: true

Restriction of locked in the inventory

  • Info: Boolean value that makes the ExecutableItem stay in the slot where it is and prevents the player from moving it in any possible way.

  • Example (This feature doesn't work on creative)

restrictions:
  locked-in-inventory: true

Cancel tool interactions

  • Info: Boolean value that prevents the player from using the ExecutableItem trigger tool interactions. e.g. (Right click a block using an axe to strip it, Using a hoe to farm a grass block)

  • Example:

restrictions:
  cancel-tool-interactions: true

Cancel placing the item inside an item frame

  • Info: Boolean value that prevents the player from putting the ExecutableItem inside anitem frame.

  • Example:

restrictions:
  cancel-item-frame: true

Cancel the interaction with an smithing table

  • Info: Boolean value that prevents the player from putting the ExecutableItem inside an smithing table.

  • Example:

restrictions:
  cancel-smithing-table: true

Cancel the interaction with a grind stone

  • Info: Boolean value that prevents the player from putting the ExecutableItem inside a grindstone.

  • Example:

restrictions:
  cancel-grind-stone: true

Cancel the interaction with a stone cutter

  • Info: Boolean value that prevents the player from putting ExecutableItem inside a stone cutter.

  • Example:

restrictions:
  cancel-stone-cutter: true

Cancel the interaction with a brewing stand

  • Info: Boolean value that prevents the player from putting the ExecutableItem inside a brewing stand.

  • Example:

restrictions:
  cancel-brewing: true

Cancel the interaction with a beacon

  • Info: Boolean value that prevents the player from putting the ExecutableItem inside a beacon.

  • Example:

restrictions:
  cancel-beacon: true

Cancel the interaction with a cartography block

  • Info: Prevents the player from putting the ExecutableItem inside a cartography block.

  • Example:

restrictions:
  cancel-cartography: true

Cancel the interaction with a composter block

  • Info: Boolean value that prevents the player from putting the ExecutableItem inside a composter.

  • Example:

restrictions:
  cancel-composter: true

Cancel the interaction with a dispenser block.

  • Info: Boolean value that prevents player from putting the ExecutableItem into a dispenser block.

  • Example:

restrictions:
  cancel-dispenser: true

Cancel the interaction with a dropper block

  • Info: Boolean value that prevents the player from putting the ExecutableItem inside a dropper block.

  • Example:

restrictions:
  cancel-dropper: true

Cancel the interaction with a hopper block

  • Info: Boolean value that prevents the player from putting the ExecutableItem items inside a hopper. This means leaving the item inside the container of the hopper. This does not prevent the item entering the hopper via dropped item on top of the hopper.

  • Example:

restrictions:
  cancel-hopper: true

Cancel the interaction with a lectern block

  • Info: Boolean value that prevents the player from putting the ExecutableItem inside a lectern block.

  • Example:

restrictions:
  cancel-lectern: true

Cancel the interaction with a villager trader/merchant

  • Info: Boolean value that prevents player from putting the ExecutableItem inside a villager/merchant trade.

  • Example:

restrictions:
  cancel-merchant: true

Cancel item hand swapping

  • Info: Boolean value that prevents the player from swapping the items from one hand to the another. Generally using F on the keyboard for "Swap items with offhand"

  • Example:

restrictions:
  cancel-swap-hand: true

Cancel the interaction of a horn

  • Info: Boolean value that prevents the player from playing the horn in case the ExecutableItem is a horn.

  • Example:

restrictions:
  cancel-horn: true

CANCEL ARMOR STAND

  • Info: Prevents the player from putting the ExecutableItem on an armor stand.

  • Example:

restrictions:
  cancel-armorstand: true
PreviousItem FeaturesNextActivator Configuration

Last updated 3 months ago

📃