Aller au contenu
  • 0

Hat > permission dans un certain block


Question

Posté(e)

Bonsoir ou Bonjour j'ai un problème je bloque sur un truc voici mon code:

command /phat <text>:
   trigger:
       if arg 1 is "Beacon":
           play "NOTE_PLING" specifically to player with pitch 2 and volume 3
           equip player with beacon
           message "&4&lVous avez changer votre tête en &6&l%arg 1%"
       if arg 1 is "Dirt":
           play "NOTE_PLING" specifically to player with pitch 2 and volume 3
           equip player with dirt
           message "&4&lVous avez changer votre tête en &6&l%arg 1%"

 

je voudrais que le beacon ait une permission mais pas Dirt par exemple comment faire ???

4 réponses à cette question

Messages recommandés

  • 0
Posté(e)

ah et pour ceux qui veulent le code pour en faire un personnalisé :) :

on rightclick with chest:
   open chest with 1 rows named "&1&lPalaceHat" to player
   wait 1 ticks
   format slot 0 of player with beacon named "&c&lBEACON !" to close then run [make player execute command "/phat Beacon"]
   format slot 1 of player with dirt named "&c&lDIRT !" to close then run [make player execute command "/phat Dirt"]

command /phat <text>:
   trigger:
       if arg 1 is "Beacon":
           if player has permission "phat.beacon":
               play "NOTE_PLING" specifically to player with pitch 2 and volume 3
               equip player with beacon
               message "&4&lYou change your head in: &6&l%arg 1%"
           else:
               message "&4&lYou don't have permission to use %arg 1% go buy &6&lVIP"
       if arg 1 is "Dirt":
           play "NOTE_PLING" specifically to player with pitch 2 and volume 3
           equip player with dirt

 

Bon skript :)

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