Aller au contenu
  • 0

Cancel event


Question

Posté(e)

Bonjour,

 

command /menunoble:

trigger:

wait 1 tick

open chest with 1 row named "&6Validation ou Non" to player

format slot 31 of player with emerald named "&6[&eValidation&6]" to run [make player execute command "/rankup"]

format slot 20 of player with anvil named "&6[&cRefus&6]" to run 'cancel event'

 

Help le cancel event ne marche pas

4 réponses à cette question

Messages recommandés

  • 0
Posté(e)

deja une GROSSE erreur : "Format slot 31" et "format slot 20" ne peuvent exister dans ton skript car ton "chest" a une seul ligne (9cases) soit 8 slot

 

   
command /menunoble:
   trigger:
       wait 1 tick
       open chest with 1 row named "&6Validation ou Non" to player
           format slot 0 of player with emerald named "&6[&eValidation&6]" to run [make player execute command "/rankup"]
           format slot 1 of player with anvil named "&6[&cRefus&6]" to run 'cancel event'

  • 0
Posté(e)

Tu veut cancel quel event ? Tu n'est pas dans un Événement mais dans un Trigger, seul les events peuvent être annulés, du genre "on move" ou "on quelque chose".

L’expression que tu cherche pour fermer l'inventaire fictif c'est format slot 1 of player with anvil named "&6[&cRefus&6]" to close

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