Aller au contenu

Le Skript vous à t-il aidé?  

5 membres ont voté

  1. 1. Le Skript vous à t-il aidé?

    • Oui.
      3
    • Non.
      0
    • Pas plus que ça.
      2


Messages recommandés

Posté(e)

I) SKC4 c'est quoi ?.

Skc4 c'est un skript, simple de compréhension mais il faut des connaissances.

Alors pour commencer le skript (Skc4).

 

Utilise des variables et des enregistrements des locations des blocs:

Il utilise aussi des beacons comme emplacement de c4 (pour le c4).

Pour utiliser le c4, il vous faut 1 nether quartz en main puis tapé la commande /c4: (Qui renommera l'item "C4")

Alors à partir de la vous pouvez commencer à placer le c4.

Puis si vous voulez le désactiver, il faut faire clic droit avec un "Tripwire hook" renommé "Désactiver le c4".

II) Code.

command /c4:
   permission: c4.admin
   permission message: &cVous n'avez pas la permission
   trigger:
       if the player is holding a Nether Quartz:
           set the name of tool of player to "&cC4"
       else:
           send "&a Vous devez avoir un &6Nether Quartz&a en main" to the player

command /c4des:
   permission: c4des.admin
   permission message: &cVous n'avez pas la permission
   trigger:
       if the player is holding a Tripwire hook:
           set the name of tool of player to "&cDésactiver le C4"
       else:
           send "&a Vous devez avoir un &6Tripwire hook&a en main" to the player


on rightclick on Beacon:
   cancel event
   if the player is holding a nether quartz:
       if name of held item is "&cC4":
           remove 1 nether quartz from player
           wait 1 ticks
           play mob spawner flames at the block to the player
           wait 3 seconds
           play mob spawner flames at the block to the player
           wait 3 seconds
           play mob spawner flames at the block to the player
           wait 1 tick
           play mob spawner flames at the block to the player
           wait 1 tick
           set {explosionc4.des.%location of block%} to true
           wait 1 tick
           set {pos.%location of block%} to location of block
           wait 1 tick
           set {blocked.c4.%location of block%} to true
           wait 1 tick
           broadcast "&c&lVous avez 2 minute pour désactiver le c4 en (XYZ: %{pos.%location of block%}%)"
           wait 1 tick
           play mob spawner flames at the block to the player
           wait 2 seconds
           play mob spawner flames at the block to the player
           wait 2 seconds
           play mob spawner flames at the block to the player
           wait 1 tick
           play mob spawner flames at the block to the player
           wait 1 tick
           wait 2 minutes #minute
           if {explosionc4.des.%location of block%} is true:
               create explosion of force 0 at event-block
               broadcast "&c&lLa Charge de c4 en (XYZ: %{pos.%location of block%}%) a explosée"
               wait 1 seconds
               loop entities in radius 25 around event-block:
                   kill loop-entity
                   send "&c&lVous êtes mort par un c4" to loop-entity
   else:
       message "&c&lEmplacement à c4 (Térroriste autorisé)"


on rightclick on Beacon:
   if the player is holding a Tripwire hook:
       if name of held item is "&cDésactiver le C4":
           if {blocked.c4.%location of block%} is true:
               set {blocked.c4.%location of block%} to false
               wait 1 ticks
               remove 1 tripwire hook from player
               play mob spawner flames at the block to the player
               wait 2 seconds
               play mob spawner flames at the block to the player
               wait 2 seconds
               play mob spawner flames at the block to the player
               wait 1 tick
               play mob spawner flames at the block to the player
               wait 1 tick
               message "&c&l20 secondes avant désactivation"
               wait 10 seconds
               play mob spawner flames at the block to the player
               wait 2 seconds
               play mob spawner flames at the block to the player
               wait 2 seconds
               play mob spawner flames at the block to the player
               wait 1 tick
               play mob spawner flames at the block to the player
               wait 1 tick
               message "&c&l10 secondes avant désactivation"
               play mob spawner flames at the block to the player
               wait 2 seconds
               play mob spawner flames at the block to the player
               wait 2 seconds
               play mob spawner flames at the block to the player
               wait 1 tick
               play mob spawner flames at the block to the player
               wait 10 seconds
               delete {explosionc4.des.%location of block%}
               wait 1 tick
               broadcast "&c&lLa charge de c4 en (XYZ: %{pos.%location of block%}%) a été désactivée"

Posté(e)
I) SKC4 c'est quoi ?.

Skc4 c'est un skript, simple de compréhension mais il faut des connaissances.

Alors pour commencer le skript (Skc4).

 

Utilise des variables et des enregistrements des locations des blocs:

Il utilise aussi des beacons comme emplacement de c4 (pour le c4).

Pour utiliser le c4, il vous faut 1 nether quartz en main puis tapé la commande /c4: (Qui renommera l'item "C4")

Alors à partir de la vous pouvez commencer à placer le c4.

Puis si vous voulez le désactiver, il faut faire clic droit avec un "Tripwire hook" renommé "Désactiver le c4".

II) Code.

command /c4:
   permission: c4.admin
   permission message: &cVous n'avez pas la permission
   trigger:
       if the player is holding a Nether Quartz:
           set the name of tool of player to "&cC4"
       else:
           send "&a Vous devez avoir un &6Nether Quartz&a en main" to the player

command /c4des:
   permission: c4des.admin
   permission message: &cVous n'avez pas la permission
   trigger:
       if the player is holding a Tripwire hook:
           set the name of tool of player to "&cDésactiver le C4"
       else:
           send "&a Vous devez avoir un &6Tripwire hook&a en main" to the player


on rightclick on Beacon:
   cancel event
   if the player is holding a nether quartz:
       if name of held item is "&cC4":
           remove 1 nether quartz from player
           wait 1 ticks
           play mob spawner flames at the block to the player
           wait 3 seconds
           play mob spawner flames at the block to the player
           wait 3 seconds
           play mob spawner flames at the block to the player
           wait 1 tick
           play mob spawner flames at the block to the player
           wait 1 tick
           set {explosionc4.des.%location of block%} to true
           wait 1 tick
           set {pos.%location of block%} to location of block
           wait 1 tick
           set {blocked.c4.%location of block%} to true
           wait 1 tick
           broadcast "&c&lVous avez 2 minute pour désactiver le c4 en (XYZ: %{pos.%location of block%}%)"
           wait 1 tick
           play mob spawner flames at the block to the player
           wait 2 seconds
           play mob spawner flames at the block to the player
           wait 2 seconds
           play mob spawner flames at the block to the player
           wait 1 tick
           play mob spawner flames at the block to the player
           wait 1 tick
           wait 2 minutes #minute
           if {explosionc4.des.%location of block%} is true:
               create explosion of force 0 at event-block
               broadcast "&c&lLa Charge de c4 en (XYZ: %{pos.%location of block%}%) a explosée"
               wait 1 seconds
               loop entities in radius 25 around event-block:
                   kill loop-entity
                   send "&c&lVous êtes mort par un c4" to loop-entity
   else:
       message "&c&lEmplacement à c4 (Térroriste autorisé)"


on rightclick on Beacon:
   if the player is holding a Tripwire hook:
       if name of held item is "&cDésactiver le C4":
           if {blocked.c4.%location of block%} is true:
               set {blocked.c4.%location of block%} to false
               wait 1 ticks
               remove 1 tripwire hook from player
               play mob spawner flames at the block to the player
               wait 2 seconds
               play mob spawner flames at the block to the player
               wait 2 seconds
               play mob spawner flames at the block to the player
               wait 1 tick
               play mob spawner flames at the block to the player
               wait 1 tick
               message "&c&l20 secondes avant désactivation"
               wait 10 seconds
               play mob spawner flames at the block to the player
               wait 2 seconds
               play mob spawner flames at the block to the player
               wait 2 seconds
               play mob spawner flames at the block to the player
               wait 1 tick
               play mob spawner flames at the block to the player
               wait 1 tick
               message "&c&l10 secondes avant désactivation"
               play mob spawner flames at the block to the player
               wait 2 seconds
               play mob spawner flames at the block to the player
               wait 2 seconds
               play mob spawner flames at the block to the player
               wait 1 tick
               play mob spawner flames at the block to the player
               wait 10 seconds
               delete {explosionc4.des.%location of block%}
               wait 1 tick
               broadcast "&c&lLa charge de c4 en (XYZ: %{pos.%location of block%}%) a été désactivée"

 

Super Skript, continue comme ça !

×
×
  • Créer...

Information importante

Nous avons placé des cookies sur votre appareil pour aider à améliorer ce site. Vous pouvez choisir d’ajuster vos paramètres de cookie, sinon nous supposerons que vous êtes d’accord pour continuer.