Aller au contenu
  • 0

Inverser les clicks


Question

Posté(e)

Re-Bonjour (oui c'est encore moi.. x)) quelqu'un pourrait il refaire exactement le même skript mais en inversent les clicks svp ?

 

on rightclick on a player:
   if clicked player has a light green dye of knockback 4 named "&aBooster" with lore "&cClic droit pour désactiver" in his inventory:
       player is holding a light green dye of knockback 4 named "&aBooster" with lore "&cClic droit pour désactiver"
       push clicked player upward at speed 1.5
       show 15 "lava" particles at clicked player for player offset by 1.5, 1.5, 1.5
       send "&aTu as été propulsé par %player%" to clicked player
       send "&aTu as propulsé %clicked player%" to player
       stop
   else if clicked player has a gray dye named "Booster désactivé" with lore "&aClic droit pour activer" in his inventory:
       player is holding a light green dye of knockback 4 named "&aBooster" with lore "&cClic droit pour désactiver"
       send "&4Ce joueur a desactive le booster" to player
       stop
   else if player is holding a gray dye named "Booster désactivé" with lore "&aClic droit pour activer":
       send "&4Ton booster n'est pas activé" to player
       stop
on leftclick:
   if player is holding a light green dye of knockback 4:
       player is holding a light green dye of knockback 4 named "&aBooster" with lore "&cClic droit pour désactiver"
       remove all light green dye from the player
       wait 1 tick
       set slot 0 of player to gray dye named "Booster désactivé" with lore "&aClic droit pour activer"
       send "&aTu as désactivé ton booster" to player
       stop
   if player is holding a gray dye:
       player is holding a gray dye named "Booster désactivé" with lore "&aClic droit pour activer"
       remove all gray dye from the player
       send "&aTu as activé ton booster" to player
       wait 1 tick
       set slot 0 of player to light green dye of knockback 4 named "&aBooster" with lore "&cClic droit pour désactiver"
       stop

10 réponses à cette question

Messages recommandés

  • 0
Posté(e)

Bah la quand on fait click droit sa éjecte le joueur et quand on fait click gauche sa active ou désactive le booster mais moi je voudrais que quand on fait click gauche sa éjecte le joueur et que quand on fait click droit sa active ou désactive le booster.

  • 0
Posté(e)
Re-Bonjour (oui c'est encore moi.. x)) quelqu'un pourrait il refaire exactement le même skript mais en inversent les clicks svp ?

 

on rightclick on a player:
   if clicked player has a light green dye of knockback 4 named "&aBooster" with lore "&cClic droit pour désactiver" in his inventory:
       player is holding a light green dye of knockback 4 named "&aBooster" with lore "&cClic droit pour désactiver"
       push clicked player upward at speed 1.5
       show 15 "lava" particles at clicked player for player offset by 1.5, 1.5, 1.5
       send "&aTu as été propulsé par %player%" to clicked player
       send "&aTu as propulsé %clicked player%" to player
       stop
   else if clicked player has a gray dye named "Booster désactivé" with lore "&aClic droit pour activer" in his inventory:
       player is holding a light green dye of knockback 4 named "&aBooster" with lore "&cClic droit pour désactiver"
       send "&4Ce joueur a desactive le booster" to player
       stop
   else if player is holding a gray dye named "Booster désactivé" with lore "&aClic droit pour activer":
       send "&4Ton booster n'est pas activé" to player
       stop
on leftclick:
   if player is holding a light green dye of knockback 4:
       player is holding a light green dye of knockback 4 named "&aBooster" with lore "&cClic droit pour désactiver"
       remove all light green dye from the player
       wait 1 tick
       set slot 0 of player to gray dye named "Booster désactivé" with lore "&aClic droit pour activer"
       send "&aTu as désactivé ton booster" to player
       stop
   if player is holding a gray dye:
       player is holding a gray dye named "Booster désactivé" with lore "&aClic droit pour activer"
       remove all gray dye from the player
       send "&aTu as activé ton booster" to player
       wait 1 tick
       set slot 0 of player to light green dye of knockback 4 named "&aBooster" with lore "&cClic droit pour désactiver"
       stop

Aucun effort sérieusement la --'

  • J'aime 1
  • 0
Posté(e)
Sérieusement? Tu te fous de nous attend! Il suffit juste de remplacer 2 trucs, même un enfant de 2 ans saurait le faire... Aucune recherche...

 

Ca me saoule de voir ca à longueur de journée

  • J'aime 1
  • 0
Posté(e)

Pas besoin de s'énerver j'ai déjà ésseiller d'inverser avant de demander mais j'ai une erreur --'

A leftclick on a entity is an attack and thus not covered by the "click" event, but the "demage" event

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.