Aller au contenu

[Modération] Tools.


Messages recommandés

Posté(e)

Titre du sujet :[ Modération] Tools.

Sujet :

Version de minecraft / skript : 1.8

Type du skript : Skript de Tools Modo

Description du script :

Bonjour je souhaiterais un skript qui me permetterais aux Modérateurs :

Command :

> /ad join

Rejoindre : Dans l'invantaire >

Un baton de blaze FREEZ (On click = True; On reclick = False);

Une epeé KnockBack (en bois); un stick Téléportation Aléatoire;

Une nether start VANISH (On click = True; On reclick = False);

Une plume FLY (On click = True; On reclick = False);

Une potion de speed (Ouvre un cofre avec des popo de speed en 1(= speed1),2(= speed2),3(= speed3)

 

> /ad leave (Quitter l'interface (Reprendre les items d'avant) (Le meme gamemode) (meme cord)

 

> /ad infos >

send "/ad join [Join]

send "/ad leave [Leave]

  • Une pemssion : ad.sk

 

Merci de votre aide et bonne journée.

Posté(e)

Bonsoir, je t'ai réalisé ton skript, je tiens a préciser que je ne l'ai pas testé dis moi s'il y a des erreurs ;)

 

command /ad <text>:
   permission: ad.sk
   permission message: &4Erreur >> &cTu n'as pas la permission !
   trigger:
       clear player's inventory
       if arg 1 is not set:
           send "&4Erreur >> &cTu dois faire '/ad join/leave/infos' !
       if arg 1 is "join":
           send "&aTu as bien rejoint l'interface !"
           set slot 0 of player with blaze rod named "&bFreeze"
           set slot 1 of player with wooden_sword named "&6KnockBack"
           set slot 2 of player with nether star named "&eVanish" to run command "/vanish"
           set slot 3 of player with feather named "&cFly" to run command "/fly"
       if arg 1 is "leave":
           clear player's inventory
           send "&aTu as bien quitté l'interface !"
       if arg 1 is "infos":
           send "&6==========/&c!&6\=========="
           send ""
           send "&c/ad join : &7Rejoindre l'interface de modération."
           send "&c/ad leave : &7Quitter l'interface de modération."
           send ""
           send "&6==========/&c!&6\=========="
on rightclick on a player:
   if player's tool is a blaze rod:
       if name of player's tool is "&bFreeze":
           player has permission "ad.sk":
               make player execute command "/freeze %clicked entity%"

Posté(e)

Voilà, je t'ai fait un petit Skript. Il est plutôt complet. Dis-moi s'il fonctionne bien ?

 

command /ad <string>:
   permission: ad.sk
   trigger:
       set {vanish.%player%} to false
       set {freeze.%player%} to false
       set {fly.%player%} to false

       if arg-1 is "join":
           open the player's inventory for the player

           loop 36 times:
               set {chest::%player%::%loop-number - 1%} to slot "%loop-number - 1%" parsed as an integer of current inventory of player
           wait 1 tick
           close the player's inventory

           clear the player's inventory

           add blaze rod named "&bFreeze" to player
           add wooden sword named "&3Knockback" to player
           add stick named "&5Teleportation aleatoire" to player
           add nether star named "&cVanish" to player
           add feather named "&2Fly" to player
           add water bottle named "&eSac a potions" to player

           set {ad.%player%} to true

       if arg-1 is "leave":
           if {ad.%player%} is true:
               set {ad.%player%} to false

               clear the player's inventory
               wait 3 ticks
               open the player's inventory for the player
               loop {chest::%player%::*}:
                   add loop-value to slot loop-index parsed as integer of current inventory of player

               wait 1 tick
               close player's inventory


on rightclick holding a nether star:
   if {ad.%player%} is true:
       if {vanish.%player%} is true:
           set {vanish.%player%} to false
           disenchant the player's tool
           message "&e[Vanish] : &cdesactive" to player
           loop all players:
               reveal player to loop-player
           stop 

       if {vanish.%player%} is false:
           set {vanish.%player%} to true
           enchant the player's tool with power 1
           message "&e[Vanish] : &2active" to player
           loop all players:
               hide player to loop-player
           stop

on rightclick holding a wooden sword:
   if {ad.%player%} is true: 
       push entity's target in player's direction at speed 1.5
       push entity's target upwards at speed 0.4

on rightclick holding a stick:
   if {ad.%player%} is true:
       set {_x} to a random number between -10000 and 10000
       set {_z} to a random number between -10000 and 10000

       set {_loc} to the location at {_x}, 70, {_z} in "world"
       teleport the player to {_loc}

on rightclick holding a blaze rod:
   if {ad.%player%} is true:
       if {freeze.%player%} is true:
           set {freeze.%player%} to false
           disenchant the player's tool
           message "&e[blaze rod] : &cdesactivee" to player
           set {_name} to the targeted player
           set {freezed.%{_name}%} to false
           remove slowness from {_name}
           remove jump boost from {_name}
           stop

       if {freeze.%player%} is false:
           set {freeze.%player%} to true
           enchant the player's tool with power 1
           message "&e[blaze rod] : &2activee" to player
           set {_name} to the targeted player         
           make console execute command "/effect %{_name}% minecraft:slowness 1000000 100"
           make console execute command "/effect %{_name}% minecraft:jump_boost 100000 100"
           stop

on rightclick holding a feather:
   if {ad.%player%} is true:
       if {fly.%player%} is true:
           set {fly.%player%} to false
           disenchant the player's tool
           message "&e[Fly] : &cdesactive" to player
           disable fly for player
           stop

       if {fly.%player%} is false:
           set {fly.%player%} to true
           enchant the player's tool with power 1
           message "&e[Fly] : &2active" to player
           enable fly for player 
           stop 

on rightclick holding a water bottle:
   if {ad.%player%} is true:
       open chest with 1 rows named "&eSac a potion" to player
       wait 2 ticks
       format slot 1 of player with sugar named "&bPotion de vitesse" with lore "&7Octroie Vitesse 3 - &810 mn" to run [make console execute command "/effect %player% minecraft:speed 600 3"]
       format slot 3 of player with blaze powder named "&cPotion de force" with lore "&7Octroie force 2 - &810 mn" to run [make console execute command "/effect %player% minecraft:strength 600 3"]
       format slot 5 of player with golden carrot named "&9Potion de Vision nocturne" with lore "&7Octroie Vision nocture - &810 mn"  to run [make console execute command "/effect %player% minecraft:night_vision 600 3"]

       format slot 8 of player with water bottle named "&bClear Effet" to run [make console execute command "/heal %player%"]

on respawn:
   wait 3 seconds
   if {ad.%player%} is true:
       make player execute command "/ad leave"

on join:
   wait 3 seconds
   if {ad.%player%} is true:
       make player execute command "/ad leave" 

 

Je l'ai testé et il fonctionne chez moi.

×
×
  • 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.