Aller au contenu
  • 0

Commande non exécuter !


Question

Posté(e)

Hello, j'ai un petit soucis, voici mon code:

 

           format slot 31 of player with a pumpkin named "&aNom" with lore "&7..." to close then run [make console execute command "/test"]

 

L'inventaire fonctionne correctement, le problème c'est que la commande n'exécute pas une commande crée par moi même. Exemple, je met "/kill" la commande va s'exécuter mais si je crée la commande "/test", non.

 

Merci à celui qui serait résoudre ce problème...

14 réponses à cette question

Messages recommandés

  • 0
Posté(e)

on right click holding a compass:
   if player's tool is a compass:
       if name of player's tool is "&bMenu principal":
           open chest with 6 rows named "&bMenu principal" to player
           wait 1 tick
           format slot 12 of player with a anvil named "&7Kits" with lore "&7Customisez vos kits !" to close then run [make console execute command "/ez"]
           format slot 14 of player with a name tag named "&7Groupe" with lore "&7Jouez entre amis dès maintenant !" to close then run [make console execute command "/test"]
           format slot 30 of player with a saddle named "&eMontures" with lore "&7Aux galops !" to close then run [make console execute command "/test"]
           format slot 31 of player with a pumpkin named "&aChapeaux" with lore "&7Couvrez vous ! Il fait froid..." to close then run [make console execute command "/skull"]
           format slot 32 of player with a lead named "&dFamiliers" with lore "&7Ne soyez plus seul !" to close then run [make console execute command "/test"]
           format slot 40 of player with a leather boots named "&bBottes" with lore "&7Customisez vos bottes à votre façon !" to close then run [make console execute command "/test"]

 

Voici mon code

  • 0
Posté(e)
ton code en entier donc donne aussi ta commande car il se peut que tu donne des mauvais info as executer aussi ...

Ok, voici mon code entièrement:

 

command /chapeaux:
   trigger:
       open chest with 3 row named "&aChapeaux" to player
       wait a tick
       format slot 0 of player with skull of "%player%" parsed as offline player named "%player%" to close

on join:
   set player's game mode to adventure
   set slot 0 of player to compass named "&bMenu principal"
   set slot 1 of player to wooden sword named "&eDuel"
   set slot 4 of player to command block named "&cÉvénement"

on right click holding a compass:
   if player's tool is a compass:
       if name of player's tool is "&bMenu principal":
           open chest with 6 rows named "&bMenu principal" to player
           wait 1 tick
           format slot 12 of player with a anvil named "&7Kits" with lore "&7Customisez vos kits !" to close then run [make console execute command "/test"]
           format slot 14 of player with a name tag named "&7Groupe" with lore "&7Jouez entre amis dès maintenant !" to close then run [make console execute command "/test"]
           format slot 30 of player with a saddle named "&eMontures" with lore "&7Aux galops !" to close then run [make console execute command "/test"]
           format slot 31 of player with a pumpkin named "&aChapeaux" with lore "&7Couvrez vous ! Il fait froid..." to close then run [make console execute command "/chapeaux"]
           format slot 32 of player with a lead named "&dFamiliers" with lore "&7Ne soyez plus seul !" to close then run [make console execute command "/test"]
           format slot 40 of player with a leather boots named "&bBottes" with lore "&7Customisez vos bottes à votre façon !" to close then run [make console execute command "/test"]

on right click holding a command block:
   if player's tool is a command block:
       if name of player's tool is "&cÉvénement":
           if player has permission "pvp.event":
               send "&cCréation en cours..."
           else:
               send "&cVous ne possèdez pas le grade requis !"


on right click holding a wooden sword:
   if player's tool is a wooden sword:
       if name of player's tool is "&eDuel":
           open chest with 3 rows named "&eDuel" to player
           wait 1 tick
           format slot 11 of player with a lava bucket named "&6Uhc Build" with lore "&7Stuff: ||&7x16 Items ||&7x16 Items" to close then run [make console execute command "/test"]
           format slot 12 of player with a potion named "&bPotions" with lore "&7Stuff: ||&7x16 Items ||&7x16 Items" to close then run [make console execute command "/test"]
           format slot 14 of player with a enchanted golden apple named "&eGapple" with lore "&7Stuff: ||&7x16 Items ||&7x16 Items" to close then run [make console execute command "/test"]
           format slot 15 of player with a raw pufferfish named "&aCombo" with lore "&7Stuff: ||&7x16 Items ||&7x16 Items" to close then run [make console execute command "/test"]

  • 0
Posté(e)

Personnellement, je recommande (et je le ferais toujours) d'utiliser TuSKe pour les GUIs. En effet, avec TuSKe, il n'y a pas besoin d'attendre 1 tick, la syntaxe est plus intuitive et on peut formatter plusieurs slots de plusieurs joueur en une seule ligne. Aussi, contrairement à skQuery, TuSKe est encore développé. Vu que la syntaxe est différente, je te donne le code TuSKe-isé.

open chest with 6 rows named "&bMenu principal" to player
format gui slot 12 of player with a anvil named "&7Kits" with lore "&7Customisez vos kits !" to close then run console command "/test"
format gui slot 14 of player with a name tag named "&7Groupe" with lore "&7Jouez entre amis dès maintenant !" to close then run console command "/test"
format gui slot 30 of player with a saddle named "&eMontures" with lore "&7Aux galops !" to close then run console command "/test"
format gui slot 31 of player with a pumpkin named "&aChapeaux" with lore "&7Couvrez vous ! Il fait froid..." to close then run console command "/chapeaux"
format gui slot 32 of player with a lead named "&dFamiliers" with lore "&7Ne soyez plus seul !" to close then run console command "/test"
format gui slot 40 of player with a leather boots named "&bBottes" with lore "&7Customisez vos bottes à votre façon !" to close then run console command "/test"

 

Téléchargement : https://github.com/Tuke-Nuke/TuSKe/releases

  • 0
Posté(e)

alors pour ta commande /chapeaux c'est simple quand tu veut passer d'un menu GUI a un autre tu ne close pas pour reouvrire un menu mais tu run directement pour que sa ouvre le menu sur l'ancien

 format slot 31 of player with a pumpkin named "&aNom" with lore "&7..." to run [make console execute command "/chapeaux"]

Voila :)

  • 0
Posté(e)
[/code]

Voila :)

ça ne marche pas :x Le menu se ferme pas et n'ouvre pas le /chapeaux.

Même si je fais un send "text" to player, le message ne s'envoie pas...

  • 0
Posté(e)
Tu peux essayer avec TuSKe que j'ai présenté plus haut. Vois si ça résout ton issue.

Je viens d'installer l'addon, malheureusement cela ne marche pas.. Je peut déplacer les items, et cela n’exécute pas la commande..

  • 0
Posté(e)
Je viens d'installer l'addon, malheureusement cela ne marche pas.. Je peut déplacer les items, et cela n’exécute pas la commande..

Bizarre, mais je ne pourrais regarder ça que demain soir.

  • 0
Posté(e)

je sais pourquoi ta commande n est pas exécuter tu fait une commande console sauf que la console ne peut pas cibler le joueur comme sa il faudrait un arg player

  • J'aime 1
  • 0
Posté(e)
je sais pourquoi ta commande n est pas exécuter tu fait une commande console sauf que la console ne peut pas cibler le joueur comme sa il faudrait un arg player

Cela fonctionne xD, merci beaucoup <3

  • 0
Posté(e)
ça ne marche pas :x Le menu se ferme pas et n'ouvre pas le /chapeaux.

Même si je fais un send "text" to player, le message ne s'envoie pas...

Oui désolé j'avais pas fais attention que cetai un execute console command x)

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