Aller au contenu
  • 0

Formater un slot en pouvant récupérer l'item


Question

Posté(e)

Bonjour,

 

Version serveur: spigot 1.8

Version skript: skript 2.2 v8b

Addons: Skquery/Skrayfall/SkUtilities/WildSkript/Sketch

 

Je voulais savoir comment formater un slot mais en pouvant récupérer le slot formaté.

 

Voici le code mais le "to do nothing" ne fonctionne pas.

 

open chest with 4 rows named "&bRécompense pour %arg 2%" to player
              set {_count} to 0
              loop 36 times:
                   format slot {_count} of player with {inventaire.%UUID of player%.%{_count}%} to do nothing
                   add 1 to {_count}

 

Merci d'avance

Cordialement, Xamez (new pseudo)

 

EDIT: Sinon le faire par give mais la, je ne sais pas comment faire xD

7 réponses à cette question

Messages recommandés

  • 0
Posté(e)
EDIT: Sinon le faire par give mais la, je ne sais pas comment faire xD

 

format slot {_count} of player with {inventaire.%UUID of player%.%{_count}%} to do nothing

 

devient

 

format slot {_count} of player with {inventaire.%UUID of player%.%{_count}%} to run "/give %player% {inventaire.%UUID of player%.%{_count%} 1"

(to close then run si tu veux fermer l'inventaire en même temps)

  • 0
Posté(e)
format slot {_count} of player with {inventaire.%UUID of player%.%{_count}%} to do nothing

 

devient

 

format slot {_count} of player with {inventaire.%UUID of player%.%{_count}%} to run "/give %player% {inventaire.%UUID of player%.%{_count%} 1"

(to close then run si tu veux fermer l'inventaire en même temps)

 

Merci mais du coup il faut unformat le slot sinon le joueur va pouvoir clicker a l'infini

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