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
Edit on GitHub
  1. Tools for all Plugins [Score]
  2. Custom Conditions

Placeholder Conditions

placeholdersConditions:

  • Description: Parses the said placeholder and compares it with the said value.

    • type: Of how you want to compare placeholders

      • PLAYER_STRING: Parses the given placeholder in the first part with the item user and compares it to the second part

      • PLAYER_NUMBER: Same as PLAYER_STRING but you can use INFERIOR/SUPERIOR related comparators

      • PLAYER_PLAYER: Same as PLAYER_STRING but you can use placeholders in the second part and can use INFERIOR/SUPERIOR related comparators

      • TARGET_STRING: Same as PLAYER_STRING but you parse the placeholder with your target

      • TARGET_NUMBER: Same as TARGET_STRING but you can use INFERIOR/SUPERIOR related comparators

      • TARGET_TARGET: Same as TARGET_STRING but you can use placeholders in the second part and can use INFERIOR/SUPERIOR related comparators

      • PLAYER_TARGET: Parses the given placeholder in the first part with the item user and compares it to the second part which parses the target with the given placeholder and can use INFERIOR/SUPERIOR related comparators

    • comparator: Used to compare the given placeholder to the second part in numbers

      • EQUALS: Compares if the given placeholder gives the exact value as the given value in the second part

      • DIFFERENT: Compares if the given placeholder doesn't give the exact value as the given value in the second part

      • INFERIOR: Compares if the given placeholder gives a value lower than the given value in the second part

      • SUPERIOR: Compares if the given placeholder gives a value greater than the given value in the second part

      • INFERIOR_OR_EQUALS: Compares if the given placeholder gives a value lower than or equals to the given value in the second part

      • SUPERIOR_OR_EQUALS: Compares if the given placeholder gives a value greater than or equals to the given value in the second part

      • IS_CONTAINED_IN: Compares if the PART1 is cointained in the PART2, if it is, this placeholder is OK and the activator will run.

      • IS_NOT_CONTAINED_IN: Compares if the PART1 is cointained in the PART2, if it isn't, this placeholder is OK and the activator will run.

    • messageIfNotValid:: The custom message if the custom placeholder condition didn't match with the first and second part

    • cancelEventIfNotValid:: If the custom placeholder condition didn't match with the first and second part, the activator's event will be cancelled. (Default: false)

    • stopCheckingOtherConditionsIfNotValid: If the conditions is not valid the other conditions won't be checked, so only 1 message of error will be displayed. (Default:true)

    • placeholderConditionCmds: If the conditions are not met this list of commands will run.

  • Example:

placeholdersConditions:
    plchC0:
      type: PLAYER_STRING
      part1: '%checkitem_inhand,lorecontains:&7Grab%'
      comparator: EQUALS
      part2: 'no'
      messageIfNotValid: ''
      cancelEventIfNotValid: false
      stopCheckingOtherConditionsIfNotValid: true
      placeholderConditionCmds:
      - SENDMESSAGE &eerror
      - execute run kill %player%
placeholdersConditions:
    plchC0:
      type: PLAYER_STRING
      part1: 'Ssomar'
      comparator: IS_CONTAINED_IN
      part2: 'Ssomar<OR>Special70<OR>Vayk'
      messageIfNotValid: ''
      cancelEventIfNotValid: false
      stopCheckingOtherConditionsIfNotValid: true
(ITS VALID)
placeholdersConditions:
    plchC0:
      type: PLAYER_STRING
      part1: 'Ssomar'
      comparator: IS_NOT_CONTAINED_IN
      part2: 'Ssomar<OR>Special70<OR>Vayk'
      messageIfNotValid: ''
      cancelEventIfNotValid: false
      stopCheckingOtherConditionsIfNotValid: true
(ITS NOT VALID)
  • Example Situations:

    • If the player facing south west with this given placeholder condition, the activator will activate.

placeholdersConditions:
    plchC0:
      type: PLAYER_STRING
      part1: '%player_direction%'
      comparator: EQUALS
      part2: 'SW'
      messageIfNotValid: ''
      cancelEventIfNotValid: false
      stopCheckingOtherConditionsIfNotValid: true
      placeholderConditionCmds:
      - SENDMESSAGE &eerror
      - execute run kill %player%
  • Required: NO

In the PART2 you can add multiple things using <OR> between each thing.

PreviousItem ConditionsNextCustom EI Conditions

Last updated 9 months ago

📚