skUnity - Conditions

Filters

Skript
AuthMe SkAddon
BunchSk
ExertSK
ExtrasSK
GameBuSK
LargeSk
MineLuaSK
MundoSK
PirateSK
RandomSK
SharpSK
SkAction
SkDragon
sKeeland
Skellett
SkMorkaz
SkRambled
SkRayFall
SkriptEvolved
SkRPG
SkStuff
skUtilities
SpectateHook
TuSKe
Umbaska
Umbaska2
Vixio
WildSkript
SkQuery
HerSK
skqBunch
skqGeometry
skqMaths
SkriptPlus
Contents ( listed)
AAC - player is on ground
Achievement Player Has Achievement
Bed is Occupied
Books - Book had generation
Books - Contains book generation
Books - Had a title
Books - Had author
Boolean
Border Location is Within/Beyond
Bossbars - Contains flag
Bot is Logged In
Bot is Playing Audio
Can Build
Can Hold
Chance
Channel Exists
Citizen is
Citizen is named
Citizens - Is spawned
Comparison
Comparison Query
Conditional
Contains
Contains and Is Case-Sensitive
Damage Cause
Disguised
Embed Exists
Entity line of sight
Evaluate Condition
Event cancelled
Exists/Is Set
File existence
File Exists
File Exists
Full scoreboards - Entry within team
Full scoreboards - Objective existence
Full scoreboards - Objective is modifiable?
FunctionSocket Is Open
Has Clan
Has Custom Enchantment
Has Gravity
Has Metadata
Has Offers/Trades
Has Permission
Has Played Before
Has Potion
Has Potion Effect
Has Second Item
Has Trade
Is "Password" Player's Password
Is a File
Is A Mythicmob
Is Ageable
Is Alive
Is ally
Is Banned
Is Block
Is Blocking
Is Burning
Is Cancelled
Is Divisible
Is Edible
Is Empty
Is Enchanted
Is enemy
Is Executable
Is Flammable
Is Flying
Is Holding
Is Hostile/Neutral/Passive
Is In Car
Is In Job
Is in Sleeping Animation
Is in World
Is Leader
Is Leashed
Is Logged
Is Logged
Is Married
Is Member/Owner of Region
Is Moving
Is Natural/Unnatural
Is neutral
Is of Type
Is On Ground
Is Online
Is Poisoned
Is Prime
Is Registered
Is Registered
Is Riding
Is Sleeping
Is Sneaking
Is Solid
Is Spectating
Is Sprinting
Is Standing On
Is Symbolic
Is Tameable
Is Tamed
Is TimeZone
Is Unbreakable
Is Wearing
Is Within Cuboid
Maps - Is vitrual
mcMMO Ability Enabled
mcMMO Is Same Party
mcMMO Is Using Adminchat
mcMMO Is Using Partychat
mcMMO Party has Ally
Offlineplayer Has Skin
Player is bypassing AAC
Player is using admin chat
Player is using party chat
PlotSquared Plots
Probability Chance
PvP
Region Contains
Scoreboard is set
Server Socket Is Open
Sidebar Is Set
SkellettProxy - Bungeecord player online
SkillAPI can confess
SkillAPI player has skill
SkillAPI player has skillbar enabled
SkillAPI player has skillbar setup
SquidHQ
String Begins With
String Ends With
String Starts With
Switches
TerrainControl - Is Enabled
Time
Timer Active
User has Role
User is in a Voice Channel
User is in a Voice Channel
Weather
Web Status
WorldEdit selection contains location
Yaml Exists
zPermissions - Permission test on Group
zPermissions - Permission test on player

Conditions

Addon: SkAction
Patterns:
Add description

Example:

"

AAC - player is on ground

Addon: LargeSk
Patterns:
[aac] %player%('s| is) on ground
Plugin requires: Advanced Anti Cheat
Returns if the player is on ground, according to the internal AAC caches.

Example:

if player is on ground:
    messsage "You win!"

Achievement Player Has Achievement

Addon: MundoSK
Patterns:
player has achievement %achievement%
Checks whether the player has the achievement.
*Technically an expression, but can be used in the same way as conditions can, as well as in the way expressions can be used.
Add example

Bed is Occupied

Addon: RandomSK
Patterns:
[if] [bed] %block% (is|are) occupied
[if] [bed] %block% (is|are)(n't| not) occupied
Check if there is someone already using that bed with the sleep effect.

If the inputed block is not a bed it will return false.
It doesn't matter what part of the bed you choose(foot part or head part of the bed).

Example:

on rightclick on button:
    if {tiedBed::%clicked block%} is set:
        if {tiedBed::%clicked block%} is not occupied:
            #Make player sleep because the bed is not occupied.

Books - Book had generation

Addon: Skellett
Patterns:
book %itemstack% (1¦(ha(s[n[']t]|ve)|contain[s])|2¦(do[es](n't| not) have| do[es](n't| not) contain)) [had] [a] [book [meta]] generation
Checks if a book once had a generation type.
Add example

Books - Contains book generation

Addon: Skellett
Patterns:
book %itemstack% (1¦(ha(s|ve)|contain[s])|2¦(do[es](n't| not) have| do[es](n't| not) contain)) [book [meta]] generation
Checks if a book contains any book generation
Add example

Books - Had a title

Addon: Skellett
Patterns:
book %itemstack% (1¦(ha(s[n[']t]|ve)|contain[s])|2¦(do[es](n't| not) have| do[es](n't| not) contain)) [had] [a] [book [meta]] title
Checks if a book once had a title
Add example

Books - Had author

Addon: Skellett
Patterns:
book %itemstack% (1¦(ha(s[n[']t]|ve)|contain[s])|2¦(do[es](n't| not) have| do[es](n't| not) contain)) [had] [a] [book [meta]] author
Checks if a book once had an author.
Add example

Boolean

Addon: SkQuery
Patterns:
%boolean%
not %boolean%
Add description

Example:

If {variable} is boolean:
    message "Variable is True or False!"
else:
    message "Variable is not True or False!"

Border Location is Within/Beyond

Addon: MundoSK
Patterns:
%location% is within border
%location% is beyond border
Checks if a location is within/beyond the border in their world.
*Technically an expression, but can be used in the same way as conditions can, as well as in the way expressions can be used.
Add example

Bossbars - Contains flag

Addon: Skellett
Patterns:
[skellett] [boss[ ]]bar %bossbar% (ha(s|ve)|contain[s]) [(the|a)] [boss[ ]]bar [flag] %barflag%
[skellett] [boss[ ]]bar %bossbar% (do[es](n't| not) have| do[es](n't| not) contain)) [(the|a)] [boss[ ]]bar [flag] %barflag%
Checks if a bossbar contains a flag

Example:

command /test:
    trigger:
        set {_bar} to new bossbar
        add player to bossbar {_bar}
        set the visibility of bossbar {_bar} to true
        if bossbar {_bar} contains the flag CREATE_FOG:
            broadcast "&4Nope"
        if bossbar {_bar} doesn't contain the flag CREATE_FOG:
            broadcast "&4Yup"

Bot is Logged In

Addon: Vixio
Patterns:
bot %string% is logged in
Add description
Add example

Bot is Playing Audio

Addon: Vixio
Patterns:
bot %string% is playing audio
Add description
Add example

Can Build

Addon: Skript
Patterns:
can[not] build at %location%
Tests whether a player is allowed to build at a certain location. This condition requires that a supported regions plugin is installed.

Example:

command /setblock <material>:
    description: set the block at your crosshair to a different type
    trigger:
        player cannot build at the targeted block:
            message "You do not have permission to change blocks there!"
            stop
        set the targeted block to argument

Can Hold

Addon: Skript
Patterns:
%inventories% (can hold|ha(s|ve) [enough] space (for|to hold)) %item-types%
%inventories% (can(no|')t hold|(ha(s|ve) not|ha(s|ve)n't|do[es]n't have) [enough] space (for|to hold)) %item types%
Tests whether a player or a chest has enough free space to hold the given item. This includes trying to fill existing stacks of the tested item(s).

Example:

block can hold 200 cobblestone
player has enough space for 64 feathers

Chance

Addon: Skript
Patterns:
chance of %number%[\%]
A condition that randomly succeeds or fails.
Valid values are between 0% and 100%, or if the percent sign is omitted between 0 and 1.

Example:

chance of 50%:
    drop a diamond
chance of {var}% # {var} between 0 and 100

chance of {var} # {var} between 0 and 1

Channel Exists

Addon: Vixio
Patterns:
channel named %string% exists in guild %string%
Add description
Add example

Citizen is

Addon: SkRayFall
Patterns:
(NPC|Citizen) is %number%

(NPC|Citizen) is %number%

%entity% is [a] (npc|citizen)

%entity% is (citizen|npc) %number%
Plugin requires: Citizens
Checks if a citizen has a certain ID.

Example:

if citizen is 12:
    send "The ID of this citizen is 12!" to player

Citizen is named

Addon: SkRayFall
Patterns:
(NPC|Citizen)['s] [is] name[d] [is] %string%
Plugin requires: Citizens
Check citizen by:
  • Name

A conditional check using citizens names over id numbers

Example:

command /test:
    trigger:
        if citizen is named "test":
            message "&4There is already a citizen called test!"
        else:
            message "&6No citizen exists named test."

Citizens - Is spawned

Addon: Skellett
Patterns:
(npc|citizen) %npc% (1¦is|2¦is(n't| not)) spawned
Plugin requires: Citizens
Checks if an Npc is spawned or not
Add example

Comparison

Addon: Skript
Patterns:
[neither] %objects% ((is|are) ((greater|more|higher|bigger|larger) than|above)|>) %objects%
[neither](neither)|isn't|aren't) ((less|smaller) than|below)|>=) %objects%
[neither] %objects% ((is|are) ((less|smaller) than|below)|<) %objects%
[neither](neither)|isn't|aren't) ((greater|more|higher|bigger|larger) than|above)|<=) %objects%
[neither](neither)|isn't|aren't|!=) [equal to] %objects%
[neither] %objects% (is|are|=) [(equal to|the same as)] %objects%
[neither] %objects% (is|are) between %objects% and %objects%
[neither](is not|are not|isn't|aren't) between %objects% and %objects%
A very general condition, it simply compares two values. Usually you can only compare for equality (e.g. block is/isn't of <type>), but some values can also be compared using greater than/less than. In that case you can also test for whether an object is between two others.
Note: This is the only element where not all patterns are shown. It has actually another two sets of similar patters, but with (was|were) or will be instead of (is|are) respectively, which check different time states of the first expression.

Example:

the clicked block is a stone slab or a double stone slab
time in the player's world is greater than 8:00
the creature is not an enderman or an ender dragon

Comparison Query

Addon: SkQuery
Patterns:
%object% == %object%
%object% === %object%
%object% > %object%
%object% < %object%
%object% >= %object%
%object% <= %object%
A different and more compact way of making comparisons using skQuery.
Add example

Conditional

Addon: SkQuery
Patterns:
%boolean% ? %object% to return if true :%object% to return if false
%object% ? %object% to return if the first object is not set
Simplified true/false conditions.
Add example

Contains

Addon: Skript
Patterns:
%inventories% ha(s|ve) %item types% [in [(the[ir]|his|her|its)] inventory]
%inventories/texts/objects% contain[s] %item types/texts/objects%
%inventories% do[es](n't| not) have %item types% [in [(the[ir]|his|her|its)] inventory]
%inventories/texts/objects% do[es](n't| not) contain %item types/texts/objects%
Checks whether an inventory contains the given item, a text contains another piece of text, or a list of objects (e.g. a {list variable::*}) contains another object.

Example:

block contains 20 cobblestone
player has 4 flint and 2 iron ingots

Contains and Is Case-Sensitive

Addon: ExtrasSK
Patterns:
%text% (has|contain[s]) case(-| )sensitive %text%
%text% do[es](n't| not) contain case(-| )sensitive %text%
%text% is [equal to] case(-| )sensitive %text%
%text% is( not|n't) [equal to] case(-| )sensitive %text%
Created so you won't have to change the config. Basically works the same as the regular contains and is conditions, but adds a case-sensitive check.

Example:

set {_s} to "test"
set {_s2} to "Test"
if {_s} is equal to case-sensitive {_s2}:
    message "Oh yeah!"
else:
    message "These two texts have NOTHING in common!"

Damage Cause

Addon: Skript
Patterns:
[the] damage [(n('|o)]t) [been] (caused|done|made) by %damage cause%
Tests what kind of damage caused a damage event. Refer to the Damage Cause type for a list of all possible causes.

Example:

#Make players use their potions of fire resistance whenever they take any kind of fire damage
on damage:
    damage was caused by lava, fire or burning
    victim is a player
    victim has a potion of fire resistance
    cancel event
    apply fire resistance to the victim for 30 seconds
    remove 1 potion of fire resistance from the victim

#Prevent mobs from dropping items under certain circumstances
on death:
    entity is not a player
    damage wasn't caused by a block explosion, an attack, a projectile, a potion, fire, burning, thorns or poison
    clear drops

Disguised

Addon: Skellett
Patterns:
[(entity|player)] %entitys% [(is|are)] disguised
Plugin requires: LibsDisguises
Test if an entity is disguised or not

Example:

if player is disguised:
    message "&cYou are disguised"

Embed Exists

Addon: Vixio
Patterns:
embed [named] %string% exists
Add description
Add example

Entity line of sight

Addon: Skellett
Patterns:
%entity% [can] (see|visibly see|line of sight) [can see] %entity%
Test if an entity can see another entity. This is meaning their line of sight or visible sight can see them.

Example:

on any movement:
    #An example that can be used in a horror map to scare players or something

    loop all entities in radius 5 around player: #Using RandomSk for looping

        if loop-entity is a zombie:
            if player can see loop-entity:
                if {Scared::%player%} is not set:
                    set {Scared::%player%} to true
                    play sound "ENTITY_PIG_DEATH" to player with volume 5 and pitch 1

Evaluate Condition

Addon: LargeSk
Patterns:
command /cond1 <text>:
    trigger:
        if cond arg-1:
            message "true"
        else:
            message "false"
# /cond1 player is sneaking
# > false
# /cond1 player is flying
# > true
# /cond1 number of all entities is greater than 50
# > true
More info and some more examples are on the {{url=https://forums.skunity.com/t/addon-largesk-materialize-your-dreams-with-minecraft/4641/51?u=nicofisi}}forums

Example:

command /cond1 <text>:
    trigger:
        if cond arg-1:
            message "true"
        else:
            message "false"
# /cond1 player is sneaking

# > false

# /cond1 player is flying

# > true

# /cond1 number of all entities is greater than 50

# > true

Event cancelled

Addon: Skellett
Patterns:
[(the|this)] event is cancelled

[(the|this)] event is(n't| not) cancelled
Checks if the current event is cancelled or not.
Add example

Exists/Is Set

Addon: Skript
Patterns:
%~objects% (exist[s]|(is|are) set)
%~objects% (do[es](n't| not) exist|(is|are)(n't| not) set)
Checks whether a given expression or variable is set.

Example:

{teamscript.%player%.preferred team} is not set

on damage:
    projectile exists
    broadcast "%attacker% used a %projectile% to attack %victim%!"

File existence

Addon: Skellett
Patterns:
[skellett] [file] exist(s|ance) [(at|of)] %string% [is %-boolean%]
file %string% exists
Tests if a file exists, and returns a Boolean

Example:

if file existance of "plugins/example/config.yml" is true:
     #do stuff

File Exists

Addon: WildSkript
Patterns:
(file|folder) [in] %text% exists 
(file|folder) [in] %text% (does not|doesn't|is not|isn't) exists
Checks whether a file/folder (whatever) exists.

Example:

on load:
    if file "plugins/Skript/scripts/addon.sk" doesn't exists:
        create file "plugins/Skript/scripts/addon.sk"

File Exists

Addon: skUtilities
Patterns:
(script|program|app[lication]|file|dir[ectory]) %string% exists
(script|program|app[lication]|file|dir[ectory]) %string% does(n't| not) exist
Checks if the file exists or doesn't exist

Example:

file "plugins/test.bat" exists 
# checks in "plugins/test.bat"

Full scoreboards - Entry within team

Addon: Skellett
Patterns:
[skellett] (score[ ][board]|board) (ha(s|ve)|contain[s]) [the] [entry] %string% [(in|within)] the [team] %team%
[skellett] (score[ ][board]|board) (do[es](n't| not) have| do[es](n't| not) contain) [the] [entry] %string% [(in|within)] the [team] %team%
Checks if an entry is within the given team.
Add example

Full scoreboards - Objective existence

Addon: Skellett
Patterns:
[skellett] (score[ ][board]|board) objective %string% (1¦(is set|[does] exist[s])|2¦(is(n't| not) set|does(n't| not) exist[s]))

[skellett] (score[ ][board]|board) objective %string% (is set|[does] exist[s])
[skellett] (score[ ][board]|board) objective %string% (is(n't| not) set|does(n't| not) exist[s]))
Checks if a named objective already exists.

Example:

command /sbtest <text>:
    trigger:
        if scoreboard objective "%arg 1%" exists:
            broadcast "The objective %arg 1% exists!"

Full scoreboards - Objective is modifiable?

Addon: Skellett
Patterns:
[skellett] (score[ ][board]|board) objective %objective% is modifiable
[skellett] (score[ ][board]|board) objective %objective% is(n't| not) modifiable
Returns true or false if the server can modify the objective.
Add example

FunctionSocket Is Open

Addon: MundoSK
Patterns:
function socket is open at port %integer%
Checks if you have a function socket open at that port.
*Technically an expression, but can be used in the same way as conditions can, as well as in the way expressions can be used.
Add example

Has Clan

Addon: TuSKe
Patterns:
%player% (has|have) [a] clan
%player% (hasn't|doesn't have) [a] clan
Plugin requires: SimpleClans or SimpleClansLegacy
Checks if a player has a clan.

Example:

command /invite <player>:
    trigger:
        if arg hasn't a clan:
            send invite of clan from player to arg
            

Has Custom Enchantment

Addon: TuSKe
Patterns:
%item stack% has [a] custom enchantment [%custom enchantment%
%item stack% has(n't| not) [a] custom enchantment [%custom enchantment%
Checks if item has any custom enchantment, a specific one or with specific level.

Example:

on damage:
    if attacker's tool has custom enchantment Vampire: #Example of custom enchantment
        add damage/2 to attacker's health

Has Gravity

Addon: TuSKe
Patterns:
%block/item type% has gravity
%block/item type% has(n't| not) gravity
Checks if a block or item type has gravity like anvils, sand, gravel...

Example:

loop all blocks in radius 3:
    if block above loop-block hasn't gravity:
        set loop-block to air

Has Metadata

Addon: RandomSK
Patterns:
%player/entity/item type/world% (has|have) [fixed] metadata [value] %text%
%player/entity/item type/world% doesn't have [fixed] metadata [value] %text%
Checks if a player, entity, block or world has the specified metadata string.

Example:

if player has metadata "Lol"
    message "w/e"

Has Offers/Trades

Addon: RandomSK
Patterns:
%villager% (has|have) (offers|trades)
%villager% doesn't have (offers|trade)
Checks if a Villager has any trades.
If a Villager doesn't have any trades at all and a player clicks inside the empty slots of the Villager they might be get their client crashed.

Example:

on rightclick on villager:
    if clicked entity doesn't have offers:
        cancel event

Has Permission

Addon: Skript
Patterns:
[%players/console%] (do[es]n't|don't|do[es] not) have [the] permission[s] %texts%
[%players/console%] ha(s|ve) [the] permission[s] %texts%
Test whether a player has a certain permission.

Example:

player has permission "skript.tree"

If victim has the permission "admin":
    send "You're attacking an admin!" to attacker

Has Played Before

Addon: Skript
Patterns:
%offline player% [(has|did)] [already] play[ed] [on (this|the) server] (before|already)
%offline player% (has not|hasn't|did not|didn't) [(already|yet)] play[ed] [on (this|the) server] (before|already|yet
Checks whether a player has played on this server before. You can also use on first join if you want to make triggers for new players.

Example:

player has played on this server before
player hasn't played before

Has Potion

Addon: SkQuery
Patterns:
%living entities% has %potion%
%living entities% does(n't| not) have %potion%
Checks whether or not an entity has a certain potion effect on it.
Add example

Has Potion Effect

Addon: SkMoraz
Patterns:
(%player%|%entity%) (has|is having) potion [effect] %string%
(%player%|%entity%) (hasn(t|'t)|is((nt|n't)| not) having) potion [effect] %string%
It returns true, when player is having specific potion effect (Use text). Potion names MUST be bukkit names (ex. SLOW, instead of SLOWNESS)

@Update
Up from version 0.2, this effect also support entities!

Example:

if player is not having potion effect "SLOW":
     apply potion of slow of tier 10 to the player for 10 seconds

Has Second Item

Addon: RandomSK
Patterns:
%trade% (has|have) second item
%trade% doesn't have second item
Checks if a Trade has the second item.

Example:

on rightclick on villager:
    set {_trade} to 1 offer of clicked entity
    if {_trade} has second item:
        set second item of {_trade} to air
    set 1 offer of clicked entity to {_trade}

Has Trade

Addon: RandomSK
Patterns:
%villager% (has|have) (offer|trade) [number] %number%
%villager% doesn't have (offer|trade) [number] %number%
Checks if a Villager has the specified trade.

Example:

on rightclick on villager:
    if clicked entity have trade number 4:
        message "Test"
    if clicked entity doesn't have offer number 5:
        message "Test2"

Is "Password" Player's Password

Addon: SkMoraz
Patterns:
password %string% is (password of %player%|%player%['s] password)
password %string% is((nt|n't)| not) (password of %player%|%player%['s] password)
Plugin requires: Authme 3.4
It returns true, if password used in this condition matches AuthMe password of player.

Example:

command log <text>:
    trigger:
        if password text-argument is player's password:
            force login player #Effect from this addon

Is a File

Addon: skUtilities
Patterns:
file %string% is a file
file %string% is(n't| not) a file
Checks if the path is a file or a directory

Useful for loops

Example:

if file "plugins/test.txt" is a file:
    send "true"
# would check the path at "plugins/test.txt"

Is A Mythicmob

Addon: SharpSK
Patterns:
%entity% (is|is not) a mythicmob
Plugin requires: MythicMobs
Simply checks if a entity is a mythicmob or not
Add example

Is Ageable

Addon: TuSKe
Patterns:
%living entities% (is|are) ageable
%living entities% can grow up
%living entities% (is|are)(n't| not) ageable
%living entities% can(n't| not) grow up
Check if a living entity is ageable or not. e.g horse, wolf, cow.

Example:

if targeted entity can grow up:
    add "Age: %age of targeted entity%" to {_EntityInfo::*}

Is Alive

Addon: Skript
Patterns:
%living entities% (alive|dead)
%living entities% (alive|dead)
Checks whetehr an entity is alive. This is mostly useful to check whether an entity stored in a variable does still exist.

Example:

{villagerbuddy.%player%} is dead

Is ally

Addon: Umbaska
Patterns:
"%string%" is ally with "%string%"
"%string%" is(n't| not) ally with "%string%"
Plugin requires: Towny
Checks to see if 2 nations are allies

Example:

if "Funnygatt" is ally with "Nfell2009"
if "Maeyrl" is not ally with "Funnygatt"

Is Banned

Addon: Skript
Patterns:
%offline player/texts% (is|are) banned
%players/texts% [(is|are) IP(-| )]banned
%offline player/texts% (isn't|is not|aren't|are not) banned
%players/texts% [(isn't|is not|aren't|are not) IP(-| )]banned
Checks whether a player or IP is banned.

Example:

player is banned
victim is not IP-banned
"127.0.0.1" is banned

Is Block

Addon: SkQuery
Patterns:
%item type% is [a] block
%item type% is not [a] block
Checks whether or not a certain itemtype is a placeable block.
Add example

Is Blocking

Addon: Skript
Patterns:
%players% (is|are) (blocking|defending)
%players% (isn't|is not|aren't|are not) (blocking|defending)
Checks whether a player is blocking with his sword.

Example:

victim is blocking

Is Burning

Addon: Skript
Patterns:
%entities% (is|are) (burning|ignited|on fire)
%entities% (isn't|is not|aren't|are not) (burning|ignited|on fire)
Checks whether an entity is on fire, e.g. a zombie due to being in sunlight, or any entity after falling into lava.

Example:

# increased attack against buring targets

victim is burning:
    increase damage by 2

Is Cancelled

Addon: SharpSK
Patterns:
[the] event (is|was) [not] cancelled
Checks if an event was cancelled or not.

Example:

on break:
  cancel event
  if the event was cancelled:
    broadcast "The event was cancelled"

Is Divisible

Addon: SkQuery
Patterns:
%number% is divisible by %number%
%number% is not divisible by %number%
Checks whether or not a number can be divided into another number.
Add example

Is Edible

Addon: TuSKe
Patterns:
%item stack% is edible
%item stack% is(n't| not) edible
Checks if a item stack can be eaten.

Example:

command /GiveFood <item>:
    trigger:
        if arg is edible:
            give arg to player

Is Empty

Addon: Skript
Patterns:
%inventories/slots/texts% (is|are) empty
%inventories/slots/texts% (isn't|is not|aren't|are not) empty
Checks whether an inventory, an inventory slot, or a text is empty.

Example:

player's inventory is empty

Is Enchanted

Addon: Skript
Patterns:
%item types% (is|are) enchanted [with %enchantment type%]
%item types% (isn't|is not|aren't|are not) enchanted [with %enchantment type%]
Checks whether an item is enchanted.

Example:

tool of the player is enchanted with efficiency 2
helm, chestplate, leggings or boots are enchanted

Is enemy

Addon: Umbaska
Patterns:
%string% is enemy with %string%
%string% is(n't| not) enemy with %string%
Plugin requires: Towny
Checks if a nation is an enemy

Example:

if "Maeyrl" is enemy with "LasVegas"
if "Maeyrl" is not enemy with "Detroit"

Is Executable

Addon: skUtilities
Patterns:
file %string% is exec[utable]
file %string% is(n't| not) exec[utable]
Checks if a file is executable

Example:

file "plugins/test.bat" exec
# checks in "plugins/test.bat"

Is Flammable

Addon: TuSKe
Patterns:
%block/item stack% is [a] flammable block
%block/item stack% is(n't| not) [a] flammable block
Checks if a block or item stack can burn away.

Example:

loop blocks in radius 5 of player:
    loop-block is not flammable
    loop-block is not air
    block above loop-block is air
    set block above loop-block to fire

Is Flying

Addon: Skript
Patterns:
%players% (is|are) flying
%players% (isn't|is not|aren't|are not) flying
Checks whether a player is flying.

Example:

player is not flying

Is Holding

Addon: Skript
Patterns:
[%living entities%] ha(s|ve) %item types% in hand
[%living entities%] (is|are) holding %item types%
[%living entities%] (ha(s|ve) not|do[es]n't have) %item types% in hand
[%living entities%] (is not|isn't) holding %item types%
Checks whether a player is holding a specific item. Cannot be used with endermen, use entity is [not] an enderman holding <item type> instead.

Example:

player is holding a stick
victim isn't holding a sword of sharpness

Is Hostile/Neutral/Passive

Addon: TuSKe
Patterns:
%living entities% (is|are) [a] (hostile|neutral|passive) [mob]
%living entities% (is|are)(n't| not) [a] (hostile|neutral|passive) [mob]
It checks if a mob is hostile/neutral/passive. Note: some neutral mobs can return true in "is hostile" when they are in hostile condition. e.g a wolf close to a sheep, a spider in the darkness.

Example:

on spawn:
    wait a tick
    if event-entity is hostile:
        send "Watch out, a hostile mob is close!" to players in radius 30 of event-entity

Is In Car

Addon: SharpSK
Patterns:
[ucars] %player% (is|is not) in [a] car
Plugin requires: uCars
Checks if a player is in a car
Add example

Is In Job

Addon: SharpSK
Patterns:
%player% (is|is not) in job %job%
Plugin requires: JobsReborn
Checks if a player is in a job
Add example

Is in Sleeping Animation

Addon: RandomSK
Patterns:
%player% is in sleep[ing] animation
%player% is not in sleep[ing] animation
Checks if a player is in the sleeping animation.

Example:

if player is in sleep animation:
    wake up player

Is in World

Addon: Skript
Patterns:
%entities% (is|are) in [[the] world[s]] %worlds%
%entities% (is not|isn't|are not|aren't) in [[the] world[s]] %worlds%
Checks whether an entity is in a specific world.

Example:

player is in "world"
argument isn't in world "world_nether"
the attacker is in the world of the victim

Is Leader

Addon: TuSKe
Patterns:
%player% is leader of his clan
%player% is(n't| not) leader of his clan
Plugin requires: SimpleClans or SimpleClansLegacy
Checks if a player is leader of his clan.

Example:

command /invite <player>:
    trigger:
        player is leader of his clan
        send invite of clan from player to arg

Is Leashed

Addon: SharpSK
Patterns:
%entity% (is|is not) leashed 
Checks if a entity is leashed or not
Add example

Is Logged

Addon: AuthMeSkAddon
Patterns:
%player% is logged
%player% is not logged
Plugin requires: AuthMe
Check wether a player is logged in or not.

Example:

on chat:
    if player is not logged:
        message "<red>You are not logged in!"
        cancel event

Is Logged

Addon: SkMoraz
Patterns:
%player% is (logged|authorized)
%player% is((nt|n't)| not) (logged|authorized)
Plugin requires: Authme 3.4
It returns true, if player is logged in.

Example:

on portal:
    if player is logged:
         send player to "skyblock"
    else player is registered:
         send "&c&lYour nick name is registered. Please, log in to play on SkyBlock!"
    else:
         send "&c&lYou need to register your nick and log in to play on SkyBlock!"

Is Married

Addon: TuSKe
Patterns:
%player% is married
%player% is(n't| not) married
Plugin requires: Marriage Reloaded
Checks if a player is married or not.

Example:

if {_player} is married:
    send "Player is already married!"

Is Member/Owner of Region

Addon: Skript
Patterns:
%players% (is[n't| not]|are[n't| not]) member[s] of %regions%
%players% (is[n't| not]|are[n't| not]) [the] owner[s] of %regions%
Checks whetehr a player is a member or owner of a particular region.
This condition requires a supported regions plugin to be installed.

Example:

on region enter:
    player is the owner of the region
    message "Welcome back to %region%!"
    send "%player% just entered %region%!" to all members of the region

Is Moving

Addon: TuSKe
Patterns:
%player% is (moving|walking|stopped)
%player% is(n't| not) (moving|walking|stopped)
Checks if a player is walking or stopped.

Example:

command /spawn:
    trigger:
        if player is stopped:
            teleport player to spawn of world
        else:
            send "You can't teleport while moving!"

Is Natural/Unnatural

Addon: SkRayFall
Patterns:
%block% is natural

%block% is not natural
Plugin requires: CoreProtect
Using Core Protect, check to see if a block is natural or if it has been modified.
Add example

Is neutral

Addon: Umbaska
Patterns:
"%string%" is neutral
"%string%" is(n't| not) neutral
Plugin requires: Towny
Checks if a nation is neutral

Example:

if player is neutral:
	send "I like MAYO" to player 

Is of Type

Addon: Skript
Patterns:
%item stacks/entities% (is|are) of type[s] %item types/entity types%
%item stacks/entities% (isn't|is not|aren't|are not) of type[s] %item types/entity types%
Checks whether an item of entity is of the given type. This is mostly useful for variables, as you can use the general 'is' condition otherwise (e.g. 'victim is a creeper').

Example:

tool is of type {*selected type}
victim is of type {villager type}

Is On Ground

Addon: RandomSK
Patterns:
%entity% is on ground
%entity% is not on ground
Checks if a entity is on ground.

Example:

on join:
    while player is online:
        if player is not on ground:
            message "You are in the Air!"

Is Online

Addon: Skript
Patterns:
%offline players% ((is|are) online|(is not|isn't|are not|aren't) offline)
%offline players% ((is|are) offline|(is not|isn't|are not|aren't) online)
Checks whether a player is online.

Example:

player is online
player-argument is offline

Is Poisoned

Addon: Skript
Patterns:
%living entities% (is|are) poisoned
%living entities% (isn't|is not|aren't|are not) poisoned
Checks whether an entity is poisoned.

Example:

player is poisoned:
    cure the player from posion
    message "You have been cured!"

Is Prime

Addon: SkQuery
Patterns:
%number% is prime
%number% is not prime
Checks whether or not a number is prime.

Example:

If {variable} is prime:
	message "%{variable}% is only divisible by 1 and itself!"

Is Registered

Addon: AuthMeSkAddon
Patterns:
%text% is registered
%text% is not registered
Plugin requires: AuthMe
Checks wether a player is registered or not.

Example:

on damage:
    if "%victim%" is not registered:
        send "<red>Damage canceled since you are not registered!" to victim
        cancel event

Is Registered

Addon: SkMoraz
Patterns:
%player% is registered
%player% is((nt|n't)| not) registered)
Plugin requires: Authme 3.4
It returns true, if player is having registered nick

Example:

on portal:
    if player is logged:
         send player to "skyblock"
    else player is registered:
         send "&c&lYour nick name is registered. Please, log in to play on SkyBlock!"
    else:
         send "&c&lYou need to register your nick and log in to play on SkyBlock!"

Is Riding

Addon: Skript
Patterns:
%entities% (is|are) riding [%entity types%]
%entities% (isn't|is not|aren't|are not) riding [%entity types%]
Tests whether an entity is riding another or is in a vehicle.

Example:

player is riding a saddled pig

Is Sleeping

Addon: Skript
Patterns:
%players% (is|are) sleeping
%players% (isn't|is not|aren't|are not) sleeping
Checks whether a player is sleeping.

Example:

# cut your enemies' throats in their sleep >=)

on attack:
    attacker is holding a sword
    victim is sleeping
    increase the damage by 1000

Is Sneaking

Addon: Skript
Patterns:
%players% (is|are) sneaking
%players% (isn't|is not|aren't|are not) sneaking
Checks whether a player is sneaking.

Example:

# prevent mobs from seeing sneaking players if they are at least 4 meters apart

on target:
    target is sneaking
    distance of target and the entity is bigger than 4
    cancel the event

Is Solid

Addon: TuSKe
Patterns:
%block/item stack% is [a] solid block
%block/item stack% is(n't| not) [a] solid block
Checks if a block or item stack is solid, it means a entity can stand above or not pass through the block.

Example:

if clicked block is a solid block:
    spawn a pig at block above clicked block

Is Spectating

Addon: SpectateHook
Patterns:
%player% (is|is[n't| not]) spectating
%player% (is|is[n't| not]) being spectated
Checks if a player is spectating or being spectated

Example:

command /watched:
    trigger:
        if player is being spectated:
            send "You are being watched!"
        else:
            send "Noone wants to spectate you, loser"

Is Sprinting

Addon: Skript
Patterns:
%players% (is|are) sprinting
%players% (isn't|is not|aren't|are not) sprinting
Checks whether a player is sprinting.

Example:

player is not sprinting

Is Standing On

Addon: SharpSK
Patterns:
%entity% (is|is not) standing on %itemstack%
Checks if a entity is standing on something (Must be a block)
Add example

Is Symbolic

Addon: skUtilities
Patterns:
file %string% is (symbolic|shortcut)
file %string% is(n't| not) (symbolic|shortcut)
Checks if the file has a link with another file (example shortcut)

Example:

file "plugins/run.sh - shortcut" is symbolic
# checks in "plugins/run.sh - shortcutt"

Is Tameable

Addon: TuSKe
Patterns:
%living entities% (is|are) tameable
%living entities% (is|are)(n't| not) tameable
Checks if a living entity is tameable or not. e.g. Horse, ocelot and wolf.

Example:

if targeted entity is tameable:
    add "Owner: %owner of targeted entity% to {_MobInfo::*}

Is Tamed

Addon: WildSkript
Patterns:
%entity% is tamed 
%entity% (is not|isn't) tamed
Checks whether a entity (tameable) is tamed.

Example:

on leftclick on ocelot:
    if clicked entity is tamed:
        cancel event

Is TimeZone

Addon: skUtilities
Patterns:
server is time[ ]zone %string%
server is(n't| no)t time[ ]zone %string%
Checks if the server is a certain TimeZone.

Example:

command /timezone:
    trigger:
        if server is timezone "GMT":
            broadcast "True"

Is Unbreakable

Addon: Skellett
Patterns:
%itemstack% is(n't| not) unbreakable
%itemstack% is unbreakable
Checks if an itemstack is unbreakable or not.
Add example

Is Wearing

Addon: Skript
Patterns:
%living entities% (is|are) wearing %item types%
%living entities% (isn't|is not|aren't|are not) wearing %item types%
Checks whether a player is wearing some armour.

Example:

player is wearing an iron chestplate and iron leggings
player is wearing all diamond armour

Is Within Cuboid

Addon: SkQuery
Patterns:
%location% is within %location% to %location%
%location% is not within %location% to %location%
Checks whether or not a certain location is included in a 3d cube with 2 endpoints.

Example:

if player is within {variable} to {variable2}

Maps - Is vitrual

Addon: Skellett
Patterns:
[map] %map% is(n't| not) virtual
[map] %map% is virtual
Checks if a map is virtual or not. Virtual meaning if it's a premade map or a natural vanila map.
Add example

mcMMO Ability Enabled

Addon: SharpSK
Patterns:
[mcmmo] %player%['s] %abilitytype% is [not] enabled 
Plugin requires: mcMMO
Checks if a ability is enabled or disabled
Add example

mcMMO Is Same Party

Addon: SharpSK
Patterns:
%player% is [in] [the] same party as %player% 
Plugin requires: mcMMO
Checks if the player is in the same party as the other player
Add example

mcMMO Is Using Adminchat

Addon: SharpSK
Patterns:
[mcmmo] %player% is using admin[]chat
Plugin requires: mcMMO
Checks if the player is using adminchat
Add example

mcMMO Is Using Partychat

Addon: SharpSK
Patterns:
[mcmmo] %player% is using party[]chat
Plugin requires: mcMMO
checks if the player is using partychat
Add example

mcMMO Party has Ally

Addon: SharpSK
Patterns:
[mcmmo] party %string% has [a] ally 
Plugin requires: mcMMO
Checks if the party has an ally
Add example

Offlineplayer Has Skin

Addon: LargeSk
Patterns:
%offlineplayer% (has|have) [a] skin
Plugin requires: SkinsRestorer
Check if offlineplayer has an associated skin.

Example:

command /iamsofunny:
    loop all players:
        if loop-player has a skin:
            send "&7You are lucky ;)" to loop-player
        else:
            set skin of loop-player to "barbie"

Player is bypassing AAC

Addon: LargeSk
Patterns:
[aac] %player%('s| is) bypass(ed by|ing) aac
Plugin requires: Advanced Anti Cheat
Returns true if player is exempt from AAC's hack checks. In most cases it will only happen when he/she has permission "aac.bypass", and AAC's permission caches are up to date. You may want to relaod them

Example:

on violation:
    if player is bypassed by aac
    broadcast "It couldn't happen, as I'm bypassed, because I'm a h4ck3r with great privileges!"

Player is using admin chat

Addon: SkRambled
Patterns:
player is using admin(chat| chat), player is not using admin(chat| chat)
Plugin requires: mcMMO
Checks if a player is using admin chat
Add example

Player is using party chat

Addon: SkRambled
Patterns:
player is using party(chat| chat), player is not using party(chat| chat)
Plugin requires: mcMMO
Checks if a player is using party chat
Add example

PlotSquared Plots

Addon: SkAction
Patterns:
%player% (has|owns) %number% plots
Plugin requires: PlotSquared
If player's total of owned plots equals a number, it returns true.

Example:

on join:
   if player has 5 plots:
       send "You have 5 plots."

Probability Chance

Addon: MundoSK
Patterns:
%number% prob

%number%% prob
See the Probability Effect.

Example:

command /probability:
  trigger:
    $ scope
    probability:
      1 prob
      broadcast "&aProb of 1"
      broadcast "&aThis happens for 1"
      2 prob:
        broadcast "&2Prob of 2"
      broadcast "&2This happens for 1 and 2"
      3 prob:
        broadcast "&3Prob of 3"
      broadcast "&3This happens for 1, 2, and 3"
      false
      4 prob
      broadcast "&cProb of 4"
      broadcast "&cThis happens for 4"
      5 prob:
        broadcast "&5Prob of 5"
      broadcast "&5This happens for 4 and 5"
    broadcast "&6Done!"

PvP

Addon: Skript
Patterns:
(is PvP|PvP is) enabled [in %worlds%]
(is PvP|PvP is) disabled [in %worlds%]
Checks the PvP status of a world.

Example:

PvP is enabled
PvP is disabled in "world"

Region Contains

Addon: Skript
Patterns:
%players (is|are) in [the] region %region%
region contains %locations%
Checks whether a location is contained in a particular region.
This condition requires a supported regions plugin to be installed.

Example:

player is in the region {regions::3}
on region enter:
    region contains {flags.%world%.red}
    message "The red flag is near!"

Scoreboard is set

Addon: Skellett
Patterns:
score[ ][board] %string% (is set|[does] exist[s])
score[ ][board] %string% (is(n't| not) set|does(n't| not) exist[s])
Get a boolean reply stating if the string scoreboard is set

Example:

if scoreboard "Example" exists:
    message "The scoreboard Example is set!"

Server Socket Is Open

Addon: MundoSK
Patterns:
server socket is open at host %string% port %integer% [with timeout of %-timespan%]
*Technically an expression, but can be used in the same way as conditions can, as well as in the way expressions can be used.
Checks if a server socket is open at that host's port for you to message to using the socket write effect. The timeout part is how long to wait before declaring the condition false if the test socket doesn't make a connection or fail first.
Add example

Sidebar Is Set

Addon: SkRayFall
Patterns:
side bar is set for %player%
Check if sidebar:
  • Is set
  • For player

This will check if a sidebar is being displayed to a player

Example:

command /check:
    trigger:
        if side bar is set for player:
            message "That's a nice sidebar you have there!"
        else:
            message "You noob. Get a sidebar!"

SkellettProxy - Bungeecord player online

Addon: Skellett
Patterns:
[(skellett[ ][(cord|proxy)]|bungee[ ][cord])] [(player|uuid)] %string% (1¦is|2¦is(n't| not)) online [the] [bungee[ ][cord]]
Plugin requires: SkellettProxy
Checks if a bungeecord UUID or Username is online the bungeecord.

Requires to have the SkellettProxy option enabled in Skellett and SkellettProxy installed correctly.

Example:

if skellettcord "LimeGlass" is online bungeecord:
    message "The Lime is online!"

SkillAPI can confess

Addon: SkRPG
Patterns:
if SkillAPI %player% can confess:
Plugin requires: SkillAPI
Checks if a player can profess into the next class. (Player has to meet the requirements set in the class' options).
Add example

SkillAPI player has skill

Addon: SkRPG
Patterns:
if SkillAPI %player% has skill %string%:
Plugin requires: SkillAPI
Checks if a player has a certain skill
Add example

SkillAPI player has skillbar enabled

Addon: SkRPG
Patterns:
if SkillAPI %player% has skillbar enabled:
Plugin requires: SkillAPI
Checks if a player has their skillbar enabled
Add example

SkillAPI player has skillbar setup

Addon: SkRPG
Patterns:
if SkillAPI %player% skillbar is setup
Plugin requires: SkillAPI
Checks if a player has their skillbar setup
Add example

SquidHQ

Addon: Skellett
Patterns:
%player% is running SquidHQ  [client]
%player% (is(n't| not)) running SquidHQ  [client]
Plugin requires: SquidHQ Plugin
SquidHQ is a minecraft launcher that allows minecraft clients to join servers that mojang blacklisted

http://squidhq.com/ for more info

Example:

on join:
    if player is running SquidHQ client:
        message "Welcome to the server"
    else:
        set {_msg} to "&cYou need SquidHQ to join this server &lhttps://squidhq.com"
        message "%{_msg}%"
        kick player due to "%{_msg}%"

String Begins With

Addon: Vixio
Patterns:
%string% (begins|starts) with %string%
Add description
Add example

String Ends With

Addon: skUtilities
Patterns:
%string% ends with %-string%
%string% does(n't| not) end with %-string%
Checks if a string ends with a certain string

Example:

"this is a test" ends with "test"

String Starts With

Addon: skUtilities
Patterns:
%string% starts with %-string%
%string% does(n't| not) start with %-string%
Checks if a string starts with a certain string

Example:

"this is a test string" starts with "this"

Switches

Addon: ExertSK
Patterns:
switch (%string%|%integer%)
case (%string%|%integer%)
Works like Java's switches.

Example:

#Example without switches:
if {_i} is 1:
  message "HI":
else if {_i} is 2:
  message "Hellooo"
else if {_i} is 3:
  message "Good morning"
else if {_i} is 4:
  message "Good night!"
#With ExertSK's switches:
switch {_i}:
  case 1:
     message "HI"
     exit 2 sections #Optional in any case, it stops the other cases from checking
  case 2:
    message "Hellooo"
  case 3:
    message "Good morning!"
  case 4:
    message "Good night!"

TerrainControl - Is Enabled

Addon: MundoSK
Patterns:
(tc|terrain control) is enabled for %world%
Plugin requires: TerrainControl
Checks whether TerrainControl is enabled for that world.
Add example

Time

Addon: Skript
Patterns:
%date% (was|were)( more|(n't| not) less) than %time span% [ago]
%date% (was|were)((n't| not) more| less) than %time span% [ago]
Tests whether a given real time was more or less than some time span ago.

Example:

command /command_with_cooldown:
    trigger:
        {command.%player%.lastused} was less than a minute ago:
            message "Please wait a minute between uses of this command."
            stop
        set {command.%player%.lastused} to now
        # ... actual command trigger here ...

Timer Active

Addon: SharpSK
Patterns:
timer %string% is [not] active
Checks if a timer is currently running(active) or not
Add example

User has Role

Addon: Vixio
Patterns:
[discord] user %string% has role %string% in %string%
Add description
Add example

User is in a Voice Channel

Addon: Vixio
Patterns:
%string% is in a voice channel
Add description
Add example

User is in a Voice Channel

Addon: Vixio
Patterns:
[discord] user %string% is in a voice channel
Add description
Add example

Weather

Addon: Skript
Patterns:
is %weather types% [in %worlds%]
Checks whether the weather in a world is of a specific type.
I welcome any ideas how to write this condition differently.

Example:

is thundering
is raining in "world" or "world2"

Web Status

Addon: ExertSK
Patterns:
[web status of ]%string% is (online|working|not offline|good|not bad|not 404|not down)
Checks if a website is responding to requests (basically offline/online).

Example:

if web status of "http://google.com" is online:
  message "As expected.."

WorldEdit selection contains location

Addon: SkStuff
Patterns:
[(world[ ]edit|we)] selection of %player% (contains|has) %location%
%player%'s [(world[ ]edit|we)] selection (contains|has) %location%
[(world[ ]edit|we)] selection of %player% does(n't| not) (contain|have) %location%
%player%'s [(world[ ]edit|we)] selection does(n't| not) (contain|have) %location%
Plugin requires: WorldEdit
Checks if the WorldEdit selection of a certain player contains or doesn't contain a location.

Example:

on command:
    if command is "/set": #//set
        if player's selection contains player's location:
            wait 5 ticks
            execute player command "/unstuck"
            send "Suffocation avoided!"

Yaml Exists

Addon: skUtilities
Patterns:
y[a]ml[ path] %string% in file %-string% exists
y[a]ml[ path] %string% in file %-string% does(n't| not) exist
Checks if a yaml path exists within a yaml file.

Example:

if yaml path "hello" in file "plugins/my.yml" exists:
    broadcast "it does"

zPermissions - Permission test on Group

Addon: Skellett
Patterns:
zpermission[s] [(of|from)] group %string% (1¦ha(s|ve)|2¦(do[es]n't|don't|do[es] not) [have]) [the] permission[s] %strings% [in [world] %-string%] [and] [in [region[s]] %-strings%]
Plugin requires: zPermissions
Checks if a group has permissions. This also has optional world and region support.
Add example

zPermissions - Permission test on player

Addon: Skellett
Patterns:
zpermission[s] [(of|from)] [player] %string% (1¦ha(s|ve)|2¦(do[es]n't|don't|do[es] not) [have]) [the] permission[s] %strings% [in [world] %-string%] [and] [in [region[s]] %-strings%]
Plugin requires: zPermissions
Checks if a player has permissions. This also has optional world and region support.
Add example