Aller au contenu
  • 0

Give un item avec une variable


Question

Posté(e)

Bonjours,

 

j'aimerai savoir pourquoi mon code est faux car je ne trouve pas l'erreur peut être qu'on ne peut pas faire comme je l'ai fait :oops:, bref.

Voici le code:

 

command /Give1:
   trigger:
       chance of 16%:
           give an {C1.P1.%player%} named "%{C1.P1.name.%player%}%" with lore "&7(Clic Gauche)" to slot 3 of {player1} inventory
       chance of 16%:
           give an {C2.P1.%player%} named "%{C2.P1.name.%player%}%" with lore "&7(Clic Gauche)" to slot 3 of {player1} inventory
       chance of 16%:
           give an {C3.P1.%player%} named "%{C3.P1.name.%player%}%" with lore "&7(Clic Gauche)" to slot 3 of {player1} inventory
       chance of 16%:
           give an {C4.P1.%player%} named "%{C4.P1.name.%player%}%" with lore "&7(Clic Gauche)" to slot 3 of {player1} inventory
       chance of 16%:
           give an {C5.P1.%player%} named "%{C5.P1.name.%player%}%" with lore "&7(Clic Gauche)" to slot 3 of {player1} inventory
       chance of 16%:
           give an {C6.P1.%player%} named "%{C6.P1.name.%player%}%" with lore "&7(Clic Gauche)" to slot 3 of {player1} inventory
       chance of 16%:
           give an {C1.P1.%player%} named "%{C1.P1.name.%player%}%" with lore "&7(Clic Gauche)" to slot 4 of {player1} inventory
       chance of 16%:
           give an {C2.P1.%player%} named "%{C2.P1.name.%player%}%" with lore "&7(Clic Gauche)" to slot 4 of {player1} inventory
       chance of 16%:
           give an {C3.P1.%player%} named "%{C3.P1.name.%player%}%" with lore "&7(Clic Gauche)" to slot 4 of {player1} inventory
       chance of 16%:
           give an {C4.P1.%player%} named "%{C4.P1.name.%player%}%" with lore "&7(Clic Gauche)" to slot 4 of {player1} inventory
       chance of 16%:
           give an {C5.P1.%player%} named "%{C5.P1.name.%player%}%" with lore "&7(Clic Gauche)" to slot 4 of {player1} inventory
       chance of 16%:
           give an {C6.P1.%player%} named "%{C6.P1.name.%player%}%" with lore "&7(Clic Gauche)" to slot 4 of {player1} inventory
       chance of 16%:
           give an {C1.P1.%player%} named "%{C1.P1.name.%player%}%" with lore "&7(Clic Gauche)" to slot 5 of {player1} inventory
       chance of 16%:
           give an {C2.P1.%player%} named "%{C2.P1.name.%player%}%" with lore "&7(Clic Gauche)" to slot 5 of {player1} inventory
       chance of 16%:
           give an {C3.P1.%player%} named "%{C3.P1.name.%player%}%" with lore "&7(Clic Gauche)" to slot 5 of {player1} inventory
       chance of 16%:
           give an {C4.P1.%player%} named "%{C4.P1.name.%player%}%" with lore "&7(Clic Gauche)" to slot 5 of {player1} inventory
       chance of 16%:
           give an {C5.P1.%player%} named "%{C5.P1.name.%player%}%" with lore "&7(Clic Gauche)" to slot 5 of {player1} inventory
       chance of 16%:
           give an {C6.P1.%player%} named "%{C6.P1.name.%player%}%" with lore "&7(Clic Gauche)" to slot 5 of {player1} inventory

 

l'erreur est la suivante:

 

Can't understand this condition/effect: give an {C3.P1.%player%} named "%{C3.P1.name.%player%}%" with lore "&7(Clic Gauche)" to slot 4 of {player1} inventory')

 

Cordialement,

Ludofx.

5 réponses à cette question

Messages recommandés

  • 0
Posté(e)

Comme cela peut être :

give a {C1.P1.%player%} named "%{C1.P1.name.%player%}%" with lore "&7(Clic Gauche)" to slot 3 of {player1}'s inventory

ou

give a {C1.P1.%player%} named "%{C1.P1.name.%player%}%" with lore "&7(Clic Gauche)" to slot 3 of "%{player1}%"'s inventory

  • 0
Posté(e)

Je n'ai pas d'erreur avec ce code:

give 1 of {C1.P1.%player%} named "%{C1.P1.name.%player%}%" with lore "&7(Clic Gauche)" to slot 3 of {player1}

(Je te laisse remplacer tous les give en gardant ce modèle ^^)

  • 0
Posté(e)
Je n'ai pas d'erreur avec ce code:

give 1 of {C1.P1.%player%} named "%{C1.P1.name.%player%}%" with lore "&7(Clic Gauche)" to slot 3 of {player1}

(Je te laisse remplacer tous les give en gardant ce modèle ^^)

 

En effet ton changement marche, Merci Beaucoup.

Je met en Résolu. ;)

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