Aller au contenu
  • 0

Enlever une armure a un joueur !


Question

Posté(e)

Salut, je voudrais que quand je clique droit sur un jouer avec une blaze_rod, ça lui give certains effets et lui mette un spawner sur la tête (bizarre je sais :))

 

Code :

on right click on a player with 369:
   make console execute command "/effect %clicked entity% 2 99999 10"
   make console execute command "/effect %clicked entity% 4 99999 10"
   make console execute command "/effect %clicked entity% 9 99999 10"
   make console execute command "/effect %clicked entity% 15 99999 10"
   make console execute command "/effect %clicked entity% 18 99999 10"

 

Mais quand tu fais clique droit avec une ficelle, ça lui enlève ses effets et lui enlève le spawner de la tête. Je ne sais pas comment faire pour le déséquiper...

 

Code :

on right click on a player with 287:
   make console execute command "/effect %clicked entity% clear"
   set clicked entity helmet of clicked entity to air

 

Mais ici le

set clicked entity helmet of clicked entity to air

ne marche pas.

 

Help me please !

3 réponses à cette question

Messages recommandés

  • 0
Posté(e)

J'ai trouvé, excuser moi du dérangement. Voici le code pour ceux a qui cela aiderai :

 

Code:

on right click on a player with 287:
   make console execute command "/effect %clicked entity% clear"
   set clicked entity's helmet to air

  • 0
Posté(e)
on rightclick:
   if targeted entity is a player:
       if player's tool is a 287:
           cancel event
           set slot 36 of targeted entity to air
           set slot 37 of targeted entity to air
           set slot 38 of targeted entity to air
           set slot 39 of targeted entity to air

  • J'aime 1
  • 0
Posté(e)
on rightclick:
   if targeted entity is a player:
       if player's tool is a 287:
           cancel event
           set slot 36 of targeted entity to air
           set slot 37 of targeted entity to air
           set slot 38 of targeted entity to air
           set slot 39 of targeted entity to air

Merci a toi de m'avoir répondu je mais un j'aime a ton commentaire.

  • J'aime 1
×
×
  • 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.