AdvancedPlugins
Minecraft Hosting
  • AdvancedPlugins Wiki
  • All Plugins
    • AdvancedEnchantments
    • BattlePass
    • AdvancedPets
    • AdvancedItems
    • AdvancedMobs
    • AdvancedSeasons
    • AdvancedJobs
    • AdvancedModels
    • AdvancedCosmetics
    • AdvancedChat
  • Configuration
    • 🔧Config Items
    • 🎨Colors
  • 🪄Abilities System (V2)
    • Introduction
    • Effects
    • Triggers
    • Targets
    • Conditions
      • Conditions Variables
      • Condition Comparison
      • Condition outcome
      • Multiple Conditions
    • Settings
    • Functions
    • Scripting
    • Variables
    • Pointers
    • Skills
  • Installing Custom UI
    • Install Custom UIs
  • 🎯Actions System
    • Introduction
    • Actions
    • PlaceholderAPI Actions
    • Setting up and using Variables
Powered by GitBook
On this page

Was this helpful?

Edit on GitHub
  1. Abilities System (V2)
  2. Conditions

Multiple Conditions

You can make multiple condition lines, and have different comparisons and outcomes for each one. Example:

conditions:
  - '%attacker health% <= 5 : %allow%'
  - '%victim health% >= 15 : %allow%'
effects:
  - 'INCREASE_DAMAGE:100'

You can make conditions even more advanced by having multiple different types of conditions on one line. Use && to make combine two conditions on one line and require both of them to be fit the comparison for your outcome to happen. Additionally, you can use OR to make at least one of these conditions fit for it to parse. Examples:

conditions:
  - '%attacker health% <= 5 && %victim health% >= 15 : %allow%'
effects:
  - 'INCREASE_DAMAGE:100'
conditions:
  - '%mob type% = RAVAGER OR %mob type% = POLAR_BEAR : %allow%'
effects:
  - 'INCREASE_DAMAGE:<random number>5-15</random number> %attacker%'

You can have up to as many of these in a line as you want, for example:

conditions:
  - '%mob type% = SKELETON : %allow% OR %mob type% = ZOMBIE : %allow% OR %mob type% = ZOMBIE_VILLAGER : %allow% OR %mob type% = WITHER : %allow% OR %mob type% = WITHER_SKELETON : %allow% OR %mob type% = ZOMBIFIED_PIGLIN : %allow% OR %mob type% = SKELETON_HORSE : %allow% OR %mob type% = ZOMBIE_HORSE : %allow% OR %mob type% = STRAY : %allow% OR %mob type% = HUSK : %allow% OR %mob type% = PHANTOM : %allow% OR %mob type% = DROWNED : %allow% OR %mob type% = ZOGLIN : %allow%
effects:
  - 'ADD_HARM:<math>%level%*1.5</math> %victim%'
PreviousCondition outcomeNextSettings

Last updated 8 months ago

Was this helpful?

🪄