EliteEnchantments
  • Home
  • Frequently Asked Questions
  • Support
  • General Information
    • Creating Enchantments
      • Effects
      • Conditions
      • Types
      • Options
    • Web Panel
      • Guide
    • Commands & Permissions
    • Giving Items
    • Developer API
      • Creating Effects
      • Creating Conditions
    • Where to purchase?
  • Addons
    • Gkits
      • Frequently Asked Questions
      • Commands & Permissions
      • Creating GKits
      • Example GKit
Powered by GitBook
On this page
  • What are conditions?
  • List of Variables

Was this helpful?

  1. General Information
  2. Creating Enchantments

Conditions

List of useable conditions for creating custom enchantments.

What are conditions?

Conditions are an exact situation that needs to be happening for an enchantment to become active.

Some conditions will require arguments that are just customizable options, if the condition requires arguments then you will need to add some to avoid errors.

Example: You want an enchantment that gives regeneration, but only on low health. Using conditions you can check if the player's health is low.

To view a list of conditions and how to use them either execute /ee info in-game or check below.

You can use these conditions for targets aswell by replacing Player with Target ie. isTargetFlying would check if the target is flying

isPlayer

isPlayer [MOB] (Example: ZOMBIE)

isPlayerBlocking

isPlayerBlocking

isPlayerCrouching

isPlayerCrouching

isPlayerFlying

isPlayerFlying

isPlayerHealth

isPlayerHealth [VARIABLE] [VALUE] (Example: >= 5)

isPlayerHolding

isPlayerHolding [ITEM] (Example: AXE)

isPlayerRunning

isPlayerRunning

isBlock

isBlock [BLOCK-TYPE] (MINE/INTERACT effect only)

isProtected

isProtected

List of Variables

Symbol

Meaning

>

More Than

>=

More Than or Equal To

<

Less Than

<=

Less Than or Equal To

==

Equals

PreviousEffectsNextTypes

Last updated 2 years ago

Was this helpful?