Résultats de la recherche

Vider
Événements
Conditions
Effets
Expressions
Types
Fonctions
Sections

Create Clan (Créer un clan)

Compatible depuis TuSKe inconnu

Description

permet de créer un clan
plugin requis: SimpleClans

Exemples create a new clan named "MonSuperClan" with tag "MSC" for player
Pattern create [a] [new] clan named %string% with tag %string% (to|for) %player

Create a GUI (Créer un GUI)

Compatible depuis TuSKe 1.7.5

Description

Crée un nouveau gui avec un identifiant donné (facultatif), en utilisant un inventaire de base, et une forme (facultatif)

Exemples on skript load:
    create a gui with id "LobbySelector" with virtual chest with 4 rows named "&4Lobby Selector":
        make gui slot 2 with diamond sword named "PVP":
            execute player command "/server pvp" #'on skript load' event doesn't have a 'player', but it will recognize it as it does have.
        make gui slot 4 with grass named "SkyBlock":
            execute player command "/server skyblock"

command /lobby:
    trigger:
        open gui "LobbySelector" to player
Pattern create [a] [new] gui [[with id] %-string%] with %inventory% [and shape %-strings%]  (change|edit) %guiinventory% 

Arrow pickup (Au ramassage d'une flèche)

Compatible depuis Skellett 1.9.6B

Description

Evènement appelé lorsqu'un joueur ramasse une flèche, soit sur le sol soit sur le mur.

Event-value :

  • Event-arrow et Event-entity : Retourne l'entité
  • Event-location : Retourne le lieu de ramassage
  • Event-player : Retourne le joueur qui ramasse la flèche.

Exemples On shoot:
    if event-projectile is an arrow:
        set {list.fleche::%UUID of event-projectile%} to "%shooter%"

on arrow pickup:
    if {list.fleche::%UUID of event-entity%} isn't "%event-player%":
        cancel event
        send "&cErreur : Cette flèche n'est pas la tienne." to event-player
Pattern [on] [skellett] arrow pickup

Block break xp drop (Lorsqu'un block drop de l'exp)

Compatible depuis Skellett 1.9.6b

Description

Evènement appelé lorsqu'un block cassé fait apparaitre de l'expérience.
Tu peux utiliser l'expression [dropped] block[[']s] (xp|experience)  pour jouer avec l'expérience apparu.

Exemples on block break xp drop:
    broadcast "Un block a libéré %dropped block xp% expérience"

 
Pattern [on] block [break] (xp|exp|experience) [drop]

Breeding (A la reproduction)

Compatible depuis Skellett 1.9.6b

Description

Evènement appelé lorsque deux entités se reproduise.
Tu peux utiliser les expressions suivantes pour récupérer les valeurs :

  • bre[e]d[ing] (item|material) [used]
  • breeder
  • [final] bre[e]d[ed] entity
  • bre[e]d[ing] (xp|experience)
  • bre[e]d[ing] father
  • bre[e]d[ing] mother
Cet évènement ne marche qu'avec minecraft 1.10+

Exemples on breeding:
    add 1 to {reproduction::%breed father%}
Pattern
[on] [skellett] bre[e]d[ing]

Options Dynamiques

Compatible depuis skript-mirror 0.17.0

Description

Ceci n'est pas un évenement mais une section primaire permettant de créer des options dynamiques.
En effet, la section primaire  options: de Skript contient des valeurs statiques (inchangeables)
Les options dynamiques permettent donc de retourner des élements dynamiques tels que les variables.
Une fois l'option dynamique définie, elle est accessible via {@option name} uniquement dans le même script.
Une section secondaire get: est nécessaire. Le code dans cette section est executé une fois parsé. Cette section doit retourner une valeur (via l'effet  #Return) et ne doit pas contenir de délais

Exemples import:
    org.bukkit.Bukkit  #Importe la classe Bukkit
option nms:
    get:
        set {_version} to Bukkit.getServer().getClass().getPackage().getName().split("\.")[3]
        return "net.minecraft.server.%{_nms version}%"
import:
    {@nms}.MinecraftServer
    {@nms}.Block
    {@nms}.PacketPlayOutSetSlot
Pattern option %text%:

Brewing stand fuel increased (Lorsque le combustible d'un alambic augmente)

Compatible depuis Skellett 1.9.6b

Description

Evènement appelé lorsqu'un combustible d'un alambic augmente, par exemple quand on met de la poudre de blaze pour la première fois dans l'alambic.
Expressions associés :

  • [skellett] [the] brew[ing] [stand[[']s]] fuel [power]
  • [skellett] event-fuel[power]
  • [skellett] [the] fuel [power] of [the] brew[ing] [stand]
  • [(the|is)] brew[ing] [stand[s]] consuming [state]

Exemples on brewing stand fuel increase:
    set event-fuel to 5#Le carburant est maintenant limité à 5 utilisation.
Pattern [on] brew[ing] [stand] fuel [increase] 

Citizens - Click (Au click sur un citizens)

Compatible depuis Skellett 1.9.6b

Description

Evènement appelé lorsqu'un joueur clique sur un NPC.

Event values :

  • Event-player
  • Event-npc

Exemples on npc click:
    send "&6%event-npc% : &7Salut toi !" to event-player
Pattern [on] (npc|citizen) click

Citizens - Combust (Lorsqu'un npc brûle)

Compatible depuis Skellett 1.9.6b

Description

Evènement appelé lorsqu'un npc commence à brûler à cause d'un block comme par exemple le magma block, la lave...

Event values :

  • Event-npc
  • Event-block

Exemples on npc ignition by a block:
    cancel event
    broadcast "%event-npc% : Je ne brûle pas moi ! Je suis immortel !"
Pattern [on] (npc|citizen) (combust[ion]|ignition) (by|from) [a] block

Citizens - Combust by entity (Npc brûle à cause d'une entité)

Compatible depuis Skellett 1.9.6b

Description

Evènement appelé lorsqu'un npc commence à brûler à cause d'une entité.

Event values :

  • Event-npc
  • Event-entity

Exemples
on npc ignition by an entity:
    broadcast "%event-npc% : Ah ouais t'es sur ? Tu va le regretter !"
    kill event-entity
 
Pattern
[on] (npc|citizen) (combust[ion]|ignition) (by|from) [a[n]] entity