Aller au contenu
  • 0

Aide pour Skript de kit UHC


Question

13 réponses à cette question

Messages recommandés

  • 0
Posté(e)

Code corrigé et fonctionnel chez moi :

 

command /kit uhc:
   trigger:
       if player is op:
           set {kit.uhc} to true
           equip player with iron helmet of protection 1
           equip player with diamond chestplate of protection 1
           equip player with iron leggings of protection 2
           equip player with diamond boots of protection 1
           set slot 1 of the player to diamond sword of sharpness 2
           set slot 2 of the player to rod of unbreaking 1
           set slot 3 of the player to bow of power 2
           set slot 4 of the player to cobblestone
           set slot 6 of the player to  3 golden apple
           set slot 8 of the player to water bucket
           set slot 9 of the player to lava bucket
           wait 1 second
           set {kit.uhc} to false
           stop
       else:
           message "Tu n'as pas la permission d'utiliser cette commande fdp !"
           stop
       if {kit.uhc} is true:
           set {kit.uhc} to false
           wait 300 seconds
           stop

on death:
   if {kit.uhc} is true:
       set {kit.uhc} to false
       stop

on join:
   set {kit.uhc} to false
   stop

  • 0
Posté(e)
Code corrigé et fonctionnel chez moi :

 

command /kit uhc:
   trigger:
       if player is op:
           set {kit.uhc} to true
           equip player with iron helmet of protection 1
           equip player with diamond chestplate of protection 1
           equip player with iron leggings of protection 2
           equip player with diamond boots of protection 1
           set slot 1 of the player to diamond sword of sharpness 2
           set slot 2 of the player to rod of unbreaking 1
           set slot 3 of the player to bow of power 2
           set slot 4 of the player to cobblestone
           set slot 6 of the player to  3 golden apple
           set slot 8 of the player to water bucket
           set slot 9 of the player to lava bucket
           wait 1 second
           set {kit.uhc} to false
           stop
       else:
           message "Tu n'as pas la permission d'utiliser cette commande fdp !"
           stop
       if {kit.uhc} is true:
           set {kit.uhc} to false
           wait 300 seconds
           stop

on death:
   if {kit.uhc} is true:
       set {kit.uhc} to false
       stop

on join:
   set {kit.uhc} to false
   stop

Bonjour,

 

Chez moi ça ne marche pas, voici les erreurs http://prntscr.com/cbq5oc

  • 0
Posté(e)

Déjà la syntaxe correcte pour le "<Set Slot>" c'est "<Set slot 0 of the player to 1 paper named "X">". Il faut préciser le nombre d'items sinon cela ne marchera pas.

 

Et pour la détection de pseudo tu fais :

 

set {_p} to "%player%"
if {_p} is "[Pseudo]":
   ...

  • 0
Posté(e)
Déjà la syntaxe correcte pour le "<Set Slot>" c'est "<Set slot 0 of the player to 1 paper named "X">". Il faut préciser le nombre d'items sinon cela ne marchera pas.

 

Et pour la détection de pseudo tu fais :

 

set {_p} to "%player%"
if {_p} is "[Pseudo]":
   ...

Je n'ai pas compris de quoi tu parles pour ta détection du joueur

  • 0
Posté(e)
Pour avoir le pseudo du joueur. Toi tu as mis "<If player is iDrek0_>". Mais ça ne marchera pas. Il faut faire comme ça :

 

set {_p} to "%player%"
if {_p} is "iDrek0_":
   ...

où est-ce que j'ai mis "if player is iDrek0_" ?

  • 0
Posté(e)
Je parle de ton Screen d'erreur :

1472486486-f6159f0d0b124d5a8ee76f3366f0e95d.png

Oui mais ça c'était un autre Skript dont je ne me sers pu ^^

Et au pire, tu ne connais pas un Skript déjà existant qui pourrait faire ce que j'essaye de faire avec le mien ? xD

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