Aller au contenu
  • 0

Probleme avec le "named"


Question

Posté(e)

Si quelqu'un peut m'aider ?

 

La première ligne renvoi une erreur ;(

 

Voila le code :

on right click with stick named "&4Baton Magique !":
       set {ok} to true
       open chest with 1 row named "&6&lMenu" to player
       wait 1 tick
       format slot 2 of player with 64 of iron ingot named "&8Full Fer" to close then run [make player execute command "/full iron"]
       format slot 4 of player with 64 of diamond named "&bFull Diamant" to close then run [make player execute command "/full diamond"]
       format slot 6 of player with 64 of gold ingot named "&6Full Or" to close then run [make player execute command "/full gold"]
       stop

 

Et voila l'erreur:

[23:14:33 ERROR]: 'stick named "&4Baton Magique !"' is not an item type (fullfer.sk, line 1: on right click with stick named "&4Baton Magique !":')

 

Merci d'avoir lu :)

3 réponses à cette question

Messages recommandés

  • 0
Posté(e)

Le code corrigé :

on right click with stick:
   if name of player's tool is "&4Baton Magique !":
       set {ok} to true
       open chest with 1 row named "&6&lMenu" to player
       wait 1 tick
       format slot 2 of player with 64 of iron ingot named "&8Full Fer" to close then run [make player execute command "/full iron"]
       format slot 4 of player with 64 of diamond named "&bFull Diamant" to close then run [make player execute command "/full diamond"]
       format slot 6 of player with 64 of gold ingot named "&6Full Or" to close then run [make player execute command "/full gold"]
       stop

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