Aller au contenu
  • 0

AIDE menu gui


Question

Posté(e)

Bonjour, je souhaite ouvrir un gui à partir d'une commande

 

Cela marche mais ne marche pas quand je fais un 2eme gui dans la meme commande

 

command /shop [<text>] [<text>]:
   trigger:
       if arg 1 is "":
           open chest with 3 rows named "&a&l[&d&lKingShop&a&l]" to player
           wait 1 tick
           format slot 11 of player with 1 of stone named "&aBloc" to close then run "sudo %player% shop block#1096"
           format slot 12 of player with 1 of raw fish named "&aNourriture" to close
           format slot 14 of player with 1 of redstone named "&aMinerais" to close
           format slot 16 of player with 1 of flint named "&aIci, c'est bizzare :P, mais viens voir :)" to close
           format slot 0 of player with 1 of orange glass to close
           format slot 1 of player with 1 of orange glass to close
           format slot 2 of player with 1 of orange glass to close
           format slot 3 of player with 1 of orange glass to close
           format slot 4 of player with 1 of orange glass to close
           format slot 5 of player with 1 of orange glass to close
           format slot 6 of player with 1 of orange glass to close
           format slot 7 of player with 1 of orange glass to close
           format slot 8 of player with 1 of orange glass to close
           format slot 9 of player with 1 of orange glass to close
           format slot 17 of player with 1 of orange glass to close
           format slot 18 of player with 1 of orange glass to close
           format slot 19 of player with 1 of orange glass to close
           format slot 20 of player with 1 of orange glass to close
           format slot 21 of player with 1 of orange glass to close
           format slot 22 of player with 1 of orange glass to close
           format slot 23 of player with 1 of orange glass to close
           format slot 24 of player with 1 of orange glass to close
           format slot 25 of player with 1 of orange glass to close
           format slot 26 of player with 1 of orange glass to close
       if arg 1 is "block#1096":
           open chest with 3 rows named "&a&l[&d&lKingShop&a&l]" to player
           wait 2 ticks
           format slot 11 of player with 1 of stone named "&aBloc" to close
           format slot 12 of player with 1 of raw fish named "&aNourriture" to close
           format slot 14 of player with 1 of redstone named "&aMinerais" to close
           format slot 16 of player with 1 of flint named "&aIci, c'est bizzare :P, mais viens voir :)" to close
           format slot 0 of player with 1 of orange glass to close
           format slot 1 of player with 1 of orange glass to close
           format slot 2 of player with 1 of orange glass to close
           format slot 3 of player with 1 of orange glass to close
           format slot 4 of player with 1 of orange glass to close
           format slot 5 of player with 1 of orange glass to close
           format slot 6 of player with 1 of orange glass to close
           format slot 7 of player with 1 of orange glass to close
           format slot 8 of player with 1 of orange glass to close
           format slot 9 of player with 1 of orange glass to close

 

mes messages d'erreur commence à partir de format slot apres le arg 1 is "block#1096":

 

Les messages sont tous les meme : "indentation error: expected 2 tabs, but found 3 tabs ( shop.sk line 31 etc etc )

2 réponses à cette question

Messages recommandés

  • 0
Posté(e)
Bonjour, je souhaite ouvrir un gui à partir d'une commande

 

Cela marche mais ne marche pas quand je fais un 2eme gui dans la meme commande

 

command /shop [<text>] [<text>]:
   trigger:
       if arg 1 is "":
           open chest with 3 rows named "&a&l[&d&lKingShop&a&l]" to player
           wait 1 tick
           format slot 11 of player with 1 of stone named "&aBloc" to close then run "sudo %player% shop block#1096"
           format slot 12 of player with 1 of raw fish named "&aNourriture" to close
           format slot 14 of player with 1 of redstone named "&aMinerais" to close
           format slot 16 of player with 1 of flint named "&aIci, c'est bizzare :P, mais viens voir :)" to close
           format slot 0 of player with 1 of orange glass to close
           format slot 1 of player with 1 of orange glass to close
           format slot 2 of player with 1 of orange glass to close
           format slot 3 of player with 1 of orange glass to close
           format slot 4 of player with 1 of orange glass to close
           format slot 5 of player with 1 of orange glass to close
           format slot 6 of player with 1 of orange glass to close
           format slot 7 of player with 1 of orange glass to close
           format slot 8 of player with 1 of orange glass to close
           format slot 9 of player with 1 of orange glass to close
           format slot 17 of player with 1 of orange glass to close
           format slot 18 of player with 1 of orange glass to close
           format slot 19 of player with 1 of orange glass to close
           format slot 20 of player with 1 of orange glass to close
           format slot 21 of player with 1 of orange glass to close
           format slot 22 of player with 1 of orange glass to close
           format slot 23 of player with 1 of orange glass to close
           format slot 24 of player with 1 of orange glass to close
           format slot 25 of player with 1 of orange glass to close
           format slot 26 of player with 1 of orange glass to close
       if arg 1 is "block#1096":
           open chest with 3 rows named "&a&l[&d&lKingShop&a&l]" to player
           wait 2 ticks
           format slot 11 of player with 1 of stone named "&aBloc" to close
           format slot 12 of player with 1 of raw fish named "&aNourriture" to close
           format slot 14 of player with 1 of redstone named "&aMinerais" to close
           format slot 16 of player with 1 of flint named "&aIci, c'est bizzare :P, mais viens voir :)" to close
           format slot 0 of player with 1 of orange glass to close
           format slot 1 of player with 1 of orange glass to close
           format slot 2 of player with 1 of orange glass to close
           format slot 3 of player with 1 of orange glass to close
           format slot 4 of player with 1 of orange glass to close
           format slot 5 of player with 1 of orange glass to close
           format slot 6 of player with 1 of orange glass to close
           format slot 7 of player with 1 of orange glass to close
           format slot 8 of player with 1 of orange glass to close
           format slot 9 of player with 1 of orange glass to close

 

mes messages d'erreur commence à partir de format slot apres le arg 1 is "block#1096":

 

Les messages sont tous les meme : "indentation error: expected 2 tabs, but found 3 tabs ( shop.sk line 31 etc etc )

Bonjour,

Ce sont des justes des erreurs de tabulation lié à ton "#". Je me suis aussi permis de convertir ton code sous tuske en l’optimisant. Tuske est bien mieux que SkQuery pour faire les guis.

command /shop [<text>] [<text>]:
   trigger:
       open virtual chest inventory with size 3 named "&a&l[&d&lKingShop&a&l]" to player
       if arg 1 is "":
           format gui slot 11 of player with 1 of stone named "&aBloc" to close then run player command "sudo %player% shop block#1096"
           format gui slot 12 of player with 1 of raw fish named "&aNourriture" to close
           format gui slot 14 of player with 1 of redstone named "&aMinerais" to close
           format gui slot 16 of player with 1 of flint named "&aIci, c'est bizzare :P, mais viens voir :)" to close
           format gui slot 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 17, 18, 19, 20, 21, 22, 23, 24, 25 and 26 of player with 1 of orange glass to close
       if arg 1 is "block##1096":
           format gui slot 11 of player with 1 of stone named "&aBloc" to close
           format gui slot 12 of player with 1 of raw fish named "&aNourriture" to close
           format gui slot 14 of player with 1 of redstone named "&aMinerais" to close
           format gui slot 16 of player with 1 of flint named "&aIci, c'est bizzare :P, mais viens voir :)" to close
           format gui slot 0, 1, 2, 3, 4, 5, 6, 7, 8 and 9 of player with 1 of orange glass to close

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