Description
Vérifie si un joueur se protège avec son épée.
on damage:
if victim is blocking:
cancel event
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)
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
Description
Vérifie si un inventaire, un slot d'inventaire ou un texte est vide.
Note : semble ne pas fonctionner correctement
on break of chest:
if event-block's inventory isn't empty:
send "&cAction annulée. Ce coffre est plein."
%inventories/slots/texts% (is|are) empty
%inventories/slots/texts% (isn't|is not|aren't|are not) empty
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.
show the victim's inventory to the player
open dropper inventory for all players
close the player's inventory
Description
Vérifie si un objet (item) est enchanté.
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
%item types% (is|are) enchanted [with %enchantment type%]
%item types% (isn't|is not|aren't|are not) enchanted [with %enchantment type%]
Description
Vérifie si un joueur est en train de voler.
on any movement:
if player is flying:
kick the player due to "Interdiction de voler !"
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 ".
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 !"
[%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%
Description
Vérifie si un joueur est dans un monde spécifique.
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"
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
on region enter:
if player is the owner of the region:
send "&eBienvenue dans votre propriété (&r%region%&e) !"
%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%
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
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
%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%