Aller au contenu
  • 0

Menue a commande


Question

Posté(e)

Bonjour je voudrais savoir comment faire un menue genre : quand je click sur une bousole sa ouvre un menue avec des item dedans et genre quand je click dessue sa execute : ./server Lobby . ou autre Merci de m'aider :p

3 réponses à cette question

Messages recommandés

  • 0
Posté(e)

Rien de plus simple x) :p :

on click with a compass:
 cancel event
 open chest with 1 rows named "&3Menu de Téléporation" to player
 wait 1 tick
 format slot 0 of player with player's skull named "&6%player%" with lore "&a&oCliquez sur un case !" to be unstealable
 format slot 1 of player with air named "" to be unstealable
 format slot 2 of player with paper named "&6Lobby" with lore "&a&oCliquez pour vous téléporter au Lobby !" to close then run [make player execute command "/server lobby"]
 format slot 3 of player with air named "" to be unstealable
 format slot 4 of player with gold ingot named "&6La Mine !" with lore "&a&oDevenez Riche !" to close then run [make player execute command "serviceenbuid"]
 format slot 5 of player with air named "" to be unstealable
 format slot 6 of player with air named "" to be unstealable
 format slot 7 of player with air named "" to be unstealable
 format slot 8 of player with air named "" to be unstealable

command /serviceenbuid:
  trigger:
    message "&6Info: &eService en Construction !"
    stop

Nécessaire : SkQuery

  • J'aime 1
  • 0
Posté(e)
Rien de plus simple x) :p :

on rightclick with a compass:
 	cancel event
 	open chest with 1 rows named "&3Menu de Téléporation" to player
 	wait 1 tick
 	format slot 0 of player with player's skull named "&6%lplayer%" with lore "&7&oQuelle est votre destination ?||&a&oCliquez sur une case !" to be unstealable
 	format slot 1 of player with air named "" to be unstealable
 	format slot 2 of player with paper named "&6Lobby" with lore "&a&oCliquez pour vous téléporter au Lobby !" to close then run [make player execute command "/server lobby"]
 	format slot 3 of player with air named "" to be unstealable
 	format slot 4 of player with gold ingot named "&6La Mine !" with lore "&a&oDevenez Riche !" to close then run [say &6Info: &eService en Construction !]
 	format slot 5 of player with air named "" to be unstealable
 	format slot 6 of player with air named "" to be unstealable
 	format slot 7 of player with air named "" to be unstealable
 	format slot 8 of player with air named "" to be unstealable

Nécessaire : SkQuery

"format slot 8 of player with air named " " to be unstealable"

C'est ligne sserve a rien autant les enlevé

  • J'aime 1
×
×
  • 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.