Résultats de la recherche

Vider
Événements
Conditions
Effets
Expressions
Types
Fonctions
Sections

Is Blocking (Se protège)

Compatible depuis Skript 2.0 beta 3

Description

Vérifie si un joueur se protège avec son épée.

Exemples on damage:
    if victim is blocking:
        cancel event
Pattern %players% (is|are) (blocking|defending) %players% (isn't|is not|aren't|are not) (blocking|defending)

Is Burning (Est en feu)

Compatible depuis Skript 1.4.4

Description

Vérifie si une entité est en feu (ex : un joueur qui prend feu, un zombie qui brûle au soleil ou n'importe quelle entité qui est tombée dans la lave)

Exemples on damage:
    if damage cause is a projectile:
        if projectile is an arrow:
            chance of 30%:
                ignite the victim
            if victim is burning:
                send "&eBrûle manant !" to victim
Pattern %entities% (is|are) (burning|ignited|on fire) %entities% (isn't|is not|aren't|are not) (burning|ignited|on fire)

Is Empty (Est vide)

Compatible depuis Skript 2.0 beta 3

Description

Vérifie si un inventaire, un slot d'inventaire ou un texte est vide.
Note : semble ne pas fonctionner correctement

Exemples on break of chest:
    if event-block's inventory isn't empty:
        send "&cAction annulée. Ce coffre est plein."
Pattern %inventories/slots/texts% (is|are) empty %inventories/slots/texts% (isn't|is not|aren't|are not) empty

Open Inventory (Ouvre ou ferme un inventaire)

Compatible depuis Skript 2.0, 2.1 (fermeture), 2.2 (anvil), 2.4 (hopper,dispenser,dropper)

Description

Ouvre ou ferme un inventaire à un joueur.
Si ouvert, le joueur pourra alors accéder à l'inventaire et le modifier comme si il avait ouvert un coffre.
Pour le moment, les mots clé " open " et " show " ont le même effet mais il est possible que dans le futur le mot clé " show " soit utilisé pour afficher un inventaire non modifiable.

Exemples show the victim's inventory to the player
open dropper inventory for all players
close the player's inventory
Pattern [(open|show) (((crafting [table]|workbench)|chest|anvil|hopper|dropper|dispenser) (view|window|inventory)]|%inventory%) (to|for) %players% close [the] inventory [view] (to|of|for) %players% close %players%'[s] inventory [view]

Is Enchanted (est enchanté)

Compatible depuis Skript 1.4.6

Description

Vérifie si un objet (item) est enchanté.

Exemples on sprint toggle:
    if player isn't sprinting:
        if player's boots are enchanted:
            set the player's walk speed to 1
        else:
            set the player's walk speed to 0.3
Pattern %item types% (is|are) enchanted [with %enchantment type%] %item types% (isn't|is not|aren't|are not) enchanted [with %enchantment type%]

Is Flying (Est en train de voler)

Compatible depuis Skript 1.4.4

Description

Vérifie si un joueur est en train de voler.

Exemples on any movement:
    if player is flying:
        kick the player due to "Interdiction de voler !"
Pattern %players% (is|are) flying %players% (isn't|is not|aren't|are not) flying

Is Holding (Tient quelque chose)

Compatible depuis Skript 1.0

Description

Vérifie si un joueur tient un objet (item) spécifique dans sa main. Cette condition ne fonctionnera pas avec un enderman. Utilisez plutôt cette syntaxe " if entity is an enderman holding ".

Exemples on right click on dropper:
    if player is holding gold nugget:
        cancel event
        remove 1 gold nugget from player's inventory
        add 1 gold nugget to event-block's inventory
        send "&aVous avez fait un don d'une pépite !"
Pattern [%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%

Is in World (est dans un monde spécifique)

Compatible depuis Skript 1.4

Description

Vérifie si un joueur est dans un monde spécifique.

Exemples command /spawn:
    trigger:
        if player is in world "world":
            teleport player to spawn point
        else if player is in world "world_nether":
            send "&cVous ne pouvez pas utliser cette commande ici"
Pattern %entities% (is|are) in [[the] world[s]] %worlds% %entities% (is not|isn't|are not|aren't) in [[the] world[s]] %worlds%

Is Member/Owner of Region (Est membre/propriétaire d'une région)

Compatible depuis Skript 2.1

Description

Vérifie si un joueur est membre ou propriétaire d'une région particulière.
Cette condition requière un plugin de région compatible (ex : Worldguard).
Compatibilité Worldguard : Skript 2.1 -> Worldguard 5.9 | Skript 2.2 -> Worldguard 6.0

Exemples on region enter:
    if player is the owner of the region:
        send "&eBienvenue dans votre propriété (&r%region%&e) !"
Pattern %offlineplayers% (is|are) ([a] member|[(the|an)] owner) of [[the] region] %regions%  %offlineplayers% (is|are)(n't| not) ([a] member|[(the|an)] owner) of [[the] region] %regions%

Is of Type (Est de tel ou tel type)

Compatible depuis Skript 1.4

Description

Vérifie le type d'un objet (item) ou d'une entité. Cette condition est surtout utilisé sur des variables.
Note : semble ne pas fonctionner correctement

Exemples command /bonusweapon:
    trigger:
        set {bonusWeapon} to item-argument
on damage:
    if attacker's tool is of type {bonusWeapon}:
        chance of 100%:
            damage victim by 10
Pattern %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%