Aller au contenu
  • 0

Besoin d'aide pour un skript


Question

Posté(e)

Bonjour à tous

 

voici le skript que je veux faire :

 

on rightclick on sign:
   line 1 of the clicked block is "&4Repair"
   line 2 of the clicked block is "CLIQUE ICI":
       if player is holding diamond sword:
           repair the tool of player
       if player is wearing a diamond helmet:
           repair the helmet of player
       if player is wearing a diamond chestplate:
           repair the chestplate of player
       if player is wearing a diamond leggings:
           repair the leggings of player
       if player is wearing a diamond boots:
           repair the boots of player
   message "&eTu as réparé ton équipement avec succès."

 

il me faut genre une fin, quand par exemple le joueur n'a pas le stuff équipé sur lui et aussi quand le stuff est réparé que il ne peut pas utilisez là pancarte, tant que son stuff n'est pas cassé, un peux comme le repair de essentials

 

j'espère avoir de l'aide :)

 

 

Cordialement

6 réponses à cette question

Messages recommandés

  • 0
Posté(e)

J'ai pas trés bien mais compris mais:

on rightclick on sign:
   line 1 of the clicked block is "&4Repair"
   line 2 of the clicked block is "CLIQUE ICI":
       if player is holding diamond sword:
           repair the tool of player
       if player is wearing a diamond helmet:
           repair the helmet of player
       if player is wearing a diamond chestplate:
           repair the chestplate of player
       if player is wearing a diamond leggings:
           repair the leggings of player
       if player is wearing a diamond boots:
           repair the boots of player
       else:
           send "&cTu ne pas repair!" to player
   message "&eTu as réparé ton équipement avec succès."

  • 0
Posté(e)
on rightclick on sign:
   line 1 of the clicked block is "&4Repair"
   line 2 of the clicked block is "CLIQUE ICI":
       make player execute command "/repair"
       message "&eTu as réparé ton équipement avec succès."

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