Aller au contenu
  • 0

Format Slot - Coffre


Question

Posté(e)

Bonsoir !

J'aurais besoin d'aide sur cette ligne de code:

format slot 0 of player with %arg-1% named "&aSkript-mc" to run [make player execute command "/skript %arg-1% %{_test}%"]

Cela est-il possible ? J'ai l'erreur suivante : "is not a text"

J'ai donc mettre des variables dans mes format slot.

 

Merci d'avance ;)

15 réponses à cette question

Messages recommandés

  • 0
Posté(e)

essay :

format slot 0 of player with 1 OF arg-1 named "&aSkript-mc" to run [make player execute command "/skript %arg-1% %{_test}%"]

ou

format slot 0 of player with {_arg-1} named "&aSkript-mc" to run [make player execute command "/skript %arg-1% %{_test}%"]

et Avant tu set {_arg-1} comme l'argument 1

  • 0
Posté(e)

Voilà mon code actuel:

command /skript [<integer>]: 
   trigger:
       if arg 1 is set: 
           wait 5 tick
           open chest with 3 rows named "&f[&9LockyCraft&f]" to player     
           wait 1 tick
           set {_test} to 1
           set {_arg1} to arg-1
           format slot 0 of player with {_arg1} named "&aSkript-mc" to run [make player execute command "/skript %arg-1% %{_test}%"]    

  • 0
Posté(e)
Voilà mon code actuel:

command /skript [<text>]:
   trigger:
       if arg 1 is set:
           wait 5 tick
           open chest with 3 rows named "&f[&9LockyCraft&f]" to player    
           wait 1 tick
           set {_test} to 1
           set {_arg1} to arg-1
           format slot 0 of player with {_arg1} named "&aSkript-mc" to run [make player execute command "/skript %arg-1% %{_test}%"]    

Essay avec l'arg texte pour voir

  • 0
Posté(e)
Merci beaucoup pour vos réponses ! Il fallait en fait définir une variable de type "item" ... Logique quoi

Tu ne ma pas écouter :

Essay sans le lambda

Edit: ta variable, (arg) est de quelle type (number, text, item...)

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