Aller au contenu
  • 0

Besoin d'aide s.v.p


Question

Posté(e)

Bonjour,Bonsoir! J'aimerais savoir pourquoi le deuxième GUI ouvre pas quand je cloque sur la table de craft.

c
command /portable2:
  trigger:
    open chest with 1 rows named "&c--------" to player
    wait 1 tick
    format slot 0 of player with workbench named "&2&lTable de Craft" with lore "&6Clique ici pour ouvrir le menu des tables de craft." to close then run [make player execute command "/tdcp"]
    wait 1 tick
    format slot 1 of player with furnace named "&2&lFours" with lore "&6Clique ici pour ouvrir le menu des fours." to be unstealable
    wait 1 tick
    format slot 2 of player with chest named "&2&lCoffres" with lore "&6Clique ici pour ouvrir le menu des coffres" to close then run [make player execute command "/."]
    wait 1 tick
    format slot 3 of player with brewing stand item named "&2&lStandes d'alchimie" with lore "&6Clique ici pour ouvrir le menu des standes d'alchimie."  to be unstealable
    wait 1 tick
    format slot 4 of player with enchantment table named "&2&lTable d''enchantement" with lore "&6Clique ici pour ouvrir le menu des tables d'enchantement." to close then run [make player execute command "/."]
    wait 1 tick
    format slot 5 of player with cauldron item named "&2&lPoubelle" with lore "&6Clique ici pour ouvrir la poubelle." to be unstealable
    wait 1 tick
    format slot 6 of player with iron pickaxe named "&2&lDécrafteur" with lore "&6Clique ici pour détruire vos objets." to close then run [make player execute command "/."]
    wait 1 tick
    format slot 7 of player with anvil named "&2&lEnclume" with lore "&6Clique ici pour ouvrir l'enclume." to close then run [make player execute command "/."]
    wait 1 tick  
    format slot 8 of player with 166 named "&c&lFermer le menu" with lore "&6Clique ici pour fermer le menu." to close then run [make player execute command "/."]

command /tdcp:
  trigger:
    open chest with 1 rows named "&cVotre Portable Direct-Fight" to player
    wait 1 tick
    format slot 0 of player with green wool named "&2&lAcheter une Table de Craft" with lore "&6Prix 2000" to close then run [make player execute command "/."]
    wait 1 tick
    format slot 4 of player with workbench named "&2&lOuvrir la Table de Craft" to close then run [make player execute command "/."]
    wait 1 tick  
    format slot 8 of player with red wool named "&c&lRetourner au Menu Principal" to close then run [make player execute command "/portable2"]

13 réponses à cette question

Messages recommandés

  • 0
Posté(e)

Et puis les waits tick c'pour un style... Jai aucune erreur, mes GUI ouvre normalement

Il parcontre, il veut pas ouvrir les deuxieme GUI quand jclique sur la Table de Craft

  • 0
Posté(e)

Salut Alexeuh,

Pour que ton deuxième menu s'ouvre avec la table de craft il faut mettre :

"on rightclick on crafting table:"

Et j'ai rajouté comme a dit marc le wait 3 tick.

 

Voici le code corrigé. (Non testé)

command /portable2:
  trigger:
    open chest with 1 rows named "&c--------" to player
    wait 3 tick
    format slot 0 of player with workbench named "&2&lTable de Craft" with lore "&6Clique ici pour ouvrir le menu des tables de craft." to close then run [make player execute command "/tdcp"]
    wait 1 tick
    format slot 1 of player with furnace named "&2&lFours" with lore "&6Clique ici pour ouvrir le menu des fours." to be unstealable
    wait 1 tick
    format slot 2 of player with chest named "&2&lCoffres" with lore "&6Clique ici pour ouvrir le menu des coffres" to close then run [make player execute command "/."]
    wait 1 tick
    format slot 3 of player with brewing stand item named "&2&lStandes d'alchimie" with lore "&6Clique ici pour ouvrir le menu des standes d'alchimie."  to be unstealable
    wait 1 tick
    format slot 4 of player with enchantment table named "&2&lTable d''enchantement" with lore "&6Clique ici pour ouvrir le menu des tables d'enchantement." to close then run [make player execute command "/."]
    wait 1 tick
    format slot 5 of player with cauldron item named "&2&lPoubelle" with lore "&6Clique ici pour ouvrir la poubelle." to be unstealable
    wait 1 tick
    format slot 6 of player with iron pickaxe named "&2&lDécrafteur" with lore "&6Clique ici pour détruire vos objets." to close then run [make player execute command "/."]
    wait 1 tick
    format slot 7 of player with anvil named "&2&lEnclume" with lore "&6Clique ici pour ouvrir l'enclume." to close then run [make player execute command "/."]
    wait 1 tick 
    format slot 8 of player with 166 named "&c&lFermer le menu" with lore "&6Clique ici pour fermer le menu." to close then run [make player execute command "/."]

on rightclick on crafting table:
    open chest with 1 rows named "&cVotre Portable Direct-Fight" to player
    wait 3 tick
    format slot 0 of player with green wool named "&2&lAcheter une Table de Craft" with lore "&6Prix 2000" to close then run [make player execute command "/."]
    wait 1 tick
    format slot 4 of player with workbench named "&2&lOuvrir la Table de Craft" to close then run [make player execute command "/."]
    wait 1 tick 
    format slot 8 of player with red wool named "&c&lRetourner au Menu Principal" to close then run [make player execute command "/portable2"]

  • 0
Posté(e)

Essaie peut être cela:

 

command /tdcp:
  trigger:
   close inventory
   wait 3 tick
   open chest with 1 rows named "&cVotre Portable Direct-Fight" to player
   wait 3 tick
   format slot 0 of player with green wool named "&2&lAcheter une Table de Craft" with lore "&6Prix 2000" to close then run [make player execute command "/."]
   wait 1 tick
   format slot 4 of player with workbench named "&2&lOuvrir la Table de Craft" to close then run [make player execute command "/."]
   wait 1 tick 
   format slot 8 of player with red wool named "&c&lRetourner au Menu Principal" to close then run [make player execute command "/portable2"]

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