Aller au contenu
  • 0

An internal error...


Question

Posté(e)

Salut j'ai un léger problème avec mon skript. Aucunes erreurs au lancement du skript pourtant certains de mes menus ne marchent pas:

# Coffre magique

command /§coffremagique:
   trigger:
       wait 2 ticks
       open chest with 6 rows named "&dCoffre Magique" to player
       set {_s} to 0
       loop 54 times:
           format slot {_s} of player with magenta glass pane named " " to be unstealable
           add 1 to {_s}
       format slot 53 of player with arrow named "&fFermer" to close
       format slot 13 of player with leather helmet named "&6Chapeaux" with lore "&7Magnifique ma chérie !" to run [make player execute command "§chapeaux"]
       format slot 22 of player with leather chestplate named "&6Tee-Shirts" with lore "&7Magnifique ma chérie !" to run [make player execute command "§tee-shirts"]
       format slot 31 of player with leather leggings named "&6Pantalons" with lore "&7Magnifique ma chérie !" to run [make player execute command "§pantalons"]
       format slot 40 of player with leather boots named "&6Chaussures" with lore "&7Magnifique ma chérie !" to run [make player execute command "§chaussures"]
       format slot 11 of player with saddle named "&6Montures" with lore "&7Envie d'une balade ?" to run [make player execute command "§montures"]
       format slot 15 of player with piston base named "&6Gadgets" with lore "&7Le fun est présent !" to run [make player execute command "§gadgets"]
       format slot 38 of player with redstone dust named "&6Particules" with lore "&7La classe à l'état pur..." to run [make player execute command "§particules"]
       format slot 42 of player with note block named "&6Musiques" with lore "&7Que du bon son !" to run [make player execute command "§musiques"]

command /§chapeaux:
   trigger:
       open chest with 6 rows named "&dCoffre Magique &8» &6Chapeaux" to player
       set {_s} to 0
       loop 54 times:
           format slot {_s} of player with orange glass pane named " " to be unstealable
           add 1 to {_s}
       format slot 53 of player with arrow named "&fRetour" to run [make player execute command "§coffremagique"]

command /§tee-shirts:
   trigger:
       open chest with 6 rows named "&dCoffre Magique &8» &6Tee-Shirts" to player
       set {_s} to 0
       loop 54 times:
           format slot {_s} of player with orange glass pane named " " to be unstealable
           add 1 to {_s}
       format slot 53 of player with arrow named "&fRetour" to run [make player execute command "§coffremagique"]

command /§pantalons:
   trigger:
       open chest with 6 rows named "&dCoffre Magique &8» &6Pantalons" to player
       set {_s} to 0
       loop 54 times:
           format slot {_s} of player with orange glass pane named " " to be unstealable
           add 1 to {_s}
       format slot 53 of player with arrow named "&fRetour" to run [make player execute command "§coffremagique"]

command /§chaussures:
   trigger:
       open chest with 6 rows named "&dCoffre Magique &8» &6Chaussures" to player
       set {_s} to 0
       loop 54 times:
           format slot {_s} of player with orange glass pane named " " to be unstealable
           add 1 to {_s}
       format slot 53 of player with arrow named "&fRetour" to run [make player execute command "§coffremagique"]

command /§montures:
   trigger:
       open chest with 6 rows named "&dCoffre Magique &8» &6Montures" to player
       set {_s} to 0
       loop 54 times:
           format slot {_s} of player with orange glass pane named " " to be unstealable
           add 1 to {_s}
       format slot 53 of player with arrow named "&fRetour" to run [make player execute command "§coffremagique"]

command /§gadgets:
   trigger:
       open chest with 6 rows named "&dCoffre Magique &8» &6Gadgets" to player
       set {_s} to 0
       loop 54 times:
           format slot {_s} of player with orange glass pane named " " to be unstealable
           add 1 to {_s}
       format slot 53 of player with arrow named "&fRetour" to run [make player execute command "§coffremagique"]

command /§particules:
   trigger:
       open chest with 6 rows named "&dCoffre Magique &8» &6Particules" to player
       set {_s} to 0
       loop 54 times:
           format slot {_s} of player with orange glass pane named " " to be unstealable
           add 1 to {_s}
       format slot 53 of player with arrow named "&fRetour" to run [make player execute command "§coffremagique"]

command /§musiques:
   trigger:
       open chest with 6 rows named "&dCoffre Magique &8» &6Musiques" to player
       set {_s} to 0
       loop 54 times:
           format slot {_s} of player with orange glass pane named " " to be unstealable
           add 1 to {_s}
       format slot 53 of player with arrow named "&fRetour" to run [make player execute command "§coffremagique"]

 

Je vous expliques j'ai un menu avec des items à l'intérieur et certains ne peuvent pas s'ouvrir et dans le chat il y a ce message: "An internal error occurred while attempting to perfom this command"

Merci beaucoup pour les personnes qui m'aideront :D

3 réponses à cette question

Messages recommandés

  • 0
Posté(e)

Essaye de passer sous l'add-on TuSKe pour tes gui, ce qui est vraiment très conseiller.

Et pour les commandes § ne pouvant pas être exécuter manuellement, de 1, si elle le peuvent avec des mods, mais les joueurs ne connaissent pas les commandes donc ça va mais pour éviter tout problèmes, remplace ces commandes par des fonctions.

  • J'aime 2
  • 0
Posté(e)
Salut j'ai un léger problème avec mon skript. Aucunes erreurs au lancement du skript pourtant certains de mes menus ne marchent pas:

# Coffre magique

command /§coffremagique:
   trigger:
       wait 2 ticks
       open chest with 6 rows named "&dCoffre Magique" to player
       set {_s} to 0
       loop 54 times:
           format slot {_s} of player with magenta glass pane named " " to be unstealable
           add 1 to {_s}
       format slot 53 of player with arrow named "&fFermer" to close
       format slot 13 of player with leather helmet named "&6Chapeaux" with lore "&7Magnifique ma chérie !" to run [make player execute command "§chapeaux"]
       format slot 22 of player with leather chestplate named "&6Tee-Shirts" with lore "&7Magnifique ma chérie !" to run [make player execute command "§tee-shirts"]
       format slot 31 of player with leather leggings named "&6Pantalons" with lore "&7Magnifique ma chérie !" to run [make player execute command "§pantalons"]
       format slot 40 of player with leather boots named "&6Chaussures" with lore "&7Magnifique ma chérie !" to run [make player execute command "§chaussures"]
       format slot 11 of player with saddle named "&6Montures" with lore "&7Envie d'une balade ?" to run [make player execute command "§montures"]
       format slot 15 of player with piston base named "&6Gadgets" with lore "&7Le fun est présent !" to run [make player execute command "§gadgets"]
       format slot 38 of player with redstone dust named "&6Particules" with lore "&7La classe à l'état pur..." to run [make player execute command "§particules"]
       format slot 42 of player with note block named "&6Musiques" with lore "&7Que du bon son !" to run [make player execute command "§musiques"]

command /§chapeaux:
   trigger:
       open chest with 6 rows named "&dCoffre Magique &8» &6Chapeaux" to player
       set {_s} to 0
       loop 54 times:
           format slot {_s} of player with orange glass pane named " " to be unstealable
           add 1 to {_s}
       format slot 53 of player with arrow named "&fRetour" to run [make player execute command "§coffremagique"]

command /§tee-shirts:
   trigger:
       open chest with 6 rows named "&dCoffre Magique &8» &6Tee-Shirts" to player
       set {_s} to 0
       loop 54 times:
           format slot {_s} of player with orange glass pane named " " to be unstealable
           add 1 to {_s}
       format slot 53 of player with arrow named "&fRetour" to run [make player execute command "§coffremagique"]

command /§pantalons:
   trigger:
       open chest with 6 rows named "&dCoffre Magique &8» &6Pantalons" to player
       set {_s} to 0
       loop 54 times:
           format slot {_s} of player with orange glass pane named " " to be unstealable
           add 1 to {_s}
       format slot 53 of player with arrow named "&fRetour" to run [make player execute command "§coffremagique"]

command /§chaussures:
   trigger:
       open chest with 6 rows named "&dCoffre Magique &8» &6Chaussures" to player
       set {_s} to 0
       loop 54 times:
           format slot {_s} of player with orange glass pane named " " to be unstealable
           add 1 to {_s}
       format slot 53 of player with arrow named "&fRetour" to run [make player execute command "§coffremagique"]

command /§montures:
   trigger:
       open chest with 6 rows named "&dCoffre Magique &8» &6Montures" to player
       set {_s} to 0
       loop 54 times:
           format slot {_s} of player with orange glass pane named " " to be unstealable
           add 1 to {_s}
       format slot 53 of player with arrow named "&fRetour" to run [make player execute command "§coffremagique"]

command /§gadgets:
   trigger:
       open chest with 6 rows named "&dCoffre Magique &8» &6Gadgets" to player
       set {_s} to 0
       loop 54 times:
           format slot {_s} of player with orange glass pane named " " to be unstealable
           add 1 to {_s}
       format slot 53 of player with arrow named "&fRetour" to run [make player execute command "§coffremagique"]

command /§particules:
   trigger:
       open chest with 6 rows named "&dCoffre Magique &8» &6Particules" to player
       set {_s} to 0
       loop 54 times:
           format slot {_s} of player with orange glass pane named " " to be unstealable
           add 1 to {_s}
       format slot 53 of player with arrow named "&fRetour" to run [make player execute command "§coffremagique"]

command /§musiques:
   trigger:
       open chest with 6 rows named "&dCoffre Magique &8» &6Musiques" to player
       set {_s} to 0
       loop 54 times:
           format slot {_s} of player with orange glass pane named " " to be unstealable
           add 1 to {_s}
       format slot 53 of player with arrow named "&fRetour" to run [make player execute command "§coffremagique"]

 

Je vous expliques j'ai un menu avec des items à l'intérieur et certains ne peuvent pas s'ouvrir et dans le chat il y a ce message: "An internal error occurred while attempting to perfom this command"

Merci beaucoup pour les personnes qui m'aideront :D

normalement après le open chest tu dois mettre un wait 1 tick à la ligne après je crois c’est sa le problème, mais en effet tuske serait mieux .

Invité
Ce sujet ne peut plus recevoir de nouvelles réponses.
×
×
  • 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.