Aller au contenu
  • 0

Nombre de joueur dans un gui


Question

Posté(e)

Comme je m'explique très mal je vais plutôt vous montrez ce que je désire en code :p

on rightclick with clock:
   open chest with 3 rows named "&d&lMenu" to player
   wait 2 tick
   format slot 10 of player with NOMBRE DE PERSONNE DANS CE JEUX stick of knockback 1 named "&6KBgames" to run [make player execute command "/kbgames"]

 

J'ai déjà créer la variable mais je voudrai savoir comment l'integré dans le GUI

Une idée ? Merci d'avance :D

 

[spoiler=Code entier]

on rightclick with clock:
   open chest with 3 rows named "&d&lMenu" to player
   wait 2 tick
   format slot 0 of player with 1 stained glass pane named " " to be unstealable
   format slot 1 of player with 1 stained glass pane named " " to be unstealable
   format slot 2 of player with 1 stained glass pane named " " to be unstealable
   format slot 3 of player with 1 stained glass pane named " " to be unstealable
   format slot 4 of player with 1 stained glass pane named " " to be unstealable
   format slot 5 of player with 1 stained glass pane named " " to be unstealable
   format slot 6 of player with 1 stained glass pane named " " to be unstealable
   format slot 7 of player with 1 stained glass pane named " " to be unstealable
   format slot 8 of player with 1 stained glass pane named " " to be unstealable
   format slot 9 of player with 1 stained glass pane named " " to be unstealable
   format slot 17 of player with 1 stained glass pane named " " to be unstealable
   format slot 18 of player with 1 stained glass pane named " " to be unstealable
   format slot 19 of player with 1 stained glass pane named " " to be unstealable
   format slot 20 of player with 1 stained glass pane named " " to be unstealable
   format slot 21 of player with 1 stained glass pane named " " to be unstealable
   format slot 22 of player with 1 stained glass pane named " " to be unstealable
   format slot 23 of player with 1 stained glass pane named " " to be unstealable
   format slot 24 of player with 1 stained glass pane named " " to be unstealable
   format slot 25 of player with 1 stained glass pane named " " to be unstealable
   format slot 26 of player with 1 stained glass pane named " " to be unstealable
   format slot 10 of player with %{number.kb}% stick of knockback 1 named "&6KBgames" to run [make player execute command "/kbgames"]

 

 

7 réponses à cette question

Messages recommandés

  • 0
Posté(e)

La solution ci-dessus marche mais elle utilise skQuery, et son système de menus est assez buggé et limité. Je conseille donc d'utiliser TuSKe à la place (j'ai fait un tutoriel dessus).

 

EDIT : la solution au dessus ne marchera pas, c'est `{_n} of stick` et non `{_n} stick`

  • J'aime 1
  • 0
Posté(e)

Gros edit,j'ai supprimé tout le code que j'avais mis:

format slot 10 of player with stick of knockback 1 named "&6KBgames : %{nomdetavariable}% Connectés" to run [make player execute command "/kbgames"]

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