Condition - Septillihedron/SuperheroesPlusSchema GitHub Wiki
Condition - A union of types with a differentiator
Differentiator: type
Possible Types
type | Description | Subtype |
---|---|---|
BIOME | Checks if the biome that the user, target entity, or location is in is one of the listed biomes | BiomeCondition |
BLOCK | Checks if the location has one of the listed blocks | BlockCondition |
CHANCE | A chance for this condition to be true | ChanceCondition |
COMPARISON | Compares a variable | ComparisonCondition |
COOLDOWN | Checks if the time since the get last effect triggered is after the cooldown | CooldownCondition |
DISTANCE | Checks if the distance between the user and target entity is in the range | DistanceCondition |
ENTITY | Checks the target entity against this whitelist/blacklist | EntityWhitelistCondition |
FLY | Checks if the user or target entity is flying | FlyingCondition |
FLYING | Checks if the user or target entity is flying | FlyingCondition |
GLIDING | Checks if the user gliding | GlidingCondition |
HEALTH | Checks if the hp percentage of the user or target entity is in the range | HealthCondition |
HEIGHT | Checks if the user or target entity y coordinate is in the range | HeightCondition |
HOTBARSLOT | Checks if the held item/main hand in in a range of hotbar slots | HotbarSlotCondition |
INBLOCK | Checks if the user or target entity is in one of the listed blocks | InBlockCondition |
ININVENTORY | Checks if the user have their inventory GUI opened | InInventoryCondition |
ITEM | Checks the item or the item in the declared slot against the declared item | ItemCondition |
ITEMWRAPPER | Checks if all inside conditions are true. \nThe item will be set as the item in the specified slot of the user or target entity | ItemWrapperCondition |
LIGHT | Checks the light level | LightCondition |
METADATA | Compares a user defined variable | MetadataCondition |
NOT | Inverts the inside condition | NOTCondition |
NPC | Checks if the user or target entity is an npc | NPCCondition |
ONGROUND | Checks if the user or target entity is on the ground | OnGroundCondition |
OR | ORs all the conditions inside | ORCondition |
POTIONEFFECT | Checks whether the user or target entity has the potion effect | PotionEffectCondition |
SHIELDED | Checks if the user is blocking | ShieldedCondition |
SHOOTER | Checks whether the shooter of the OTHER entity is the SELF entity |
ShooterCondition |
SIZE | Checks if the size of the user or target entity is in the range (for slimes, magma cubes, and phantoms) | SizeCondition |
SNEAK | Checks if the player or entity is shifting | SneakCondition |
SPEED | Checks whether the speed of the user or target entity is in the range | SpeedCondition |
SPRINTING | Checks if the user or target entity is sprinting | SprintingCondition |
SWIMMING | Checks if the user or target entity is swimming | SwimmingCondition |
TAMED | Checks if the target entity is tamed | TamedCondition |
TEMPERATURE | Checks if the location or the location of the user or target entity is in the range | TemperatureCondition |
TIME | Checks the relative in-game time (time of day) of the world that the player is in against the range. Measured in milli-hours or hours*1000 | TimeCondition |
VISIBILITY | Checks if the user has a direct line of sight to the target entity | VisibilityCondition |
WEATHER | Checks if the world that the user is in has a storm | WeatherCondition |
WORLD | Checks if the world that the user, target entity, or location is in is one of the listed worlds | WorldCondition |
WRAPPER | Checks if all inside conditions are true | WrapperCondition |