Aller au contenu
  • 0

Changé un armor stand (les vrais savent ;)


Question

Posté(e)

Bonjour,

Hier avec quelque membre nous avons trouvé comme faire pour téléporté un MiniMe,mais aurjourd'hui je voudrais savoir comment le changé , c'est a dire , s'il le mec a la perm "Vip.Mini" sa l'habie en full or

 

 

Code:

on damage:
   name of victim contains "&eMini"
   cancel event

on entity interact:
   name of event-entity contains "&eMini"
   cancel event

command /minime [<player>]:           #Aventurier
   trigger:
       arg 1 is set:
           make arg 1 execute command "/minime"
           message "&7« &bMini &7» &eForced %arg% to toggle their MiniMe!"
           stop
       {minime::%uuid of player%} isn't set:
           set {minime::%uuid of player%} to false
       {minime::%uuid of player%} is false:
           loop all armor stands:
               if name of loop-entity is "&eMini %player%":
                   delete loop-entity
           set {_l} to location of player
           set {_l} to location of player's head
           remove 0.2 from y coord of {_l}
           set {_l} to location .4 left of {_l}
           set {_l2} to {_l}
           set y coord of {_l2} to 0
           spawn an armor stand at {_l2}
           set {_s} to last spawned entity
           set is visible of {_s} to true
           set show base plate of {_s} to false
           set has gravity of {_s} to false
           set show arms of {_s} to true
           set is small of {_s} to true
           set helmet of {_s} to player's skull
           set display name of last spawned entity to "&eMini %player%"
           set name of last spawned entity to "&eMini %player%"
           set chestplate of {_s} to leather chestplate
           set leggings of {_s} to leather leggings
           set boots of {_s} to leather boots
           set {minime::%uuid of player%} to true
           wait 5 ticks
           teleport {_s} to {_l}
           message "&7« &bMini &7» &eVotre MiniMe est sur vous :)!"
           stop
       set {minime::%uuid of player%} to false
       message "&7« &bMini &7» &eVotre MiniMe vous a quitté !"
       loop all armor stands:
           if name of loop-entity is "&eMini %player%":
               delete loop-entity
       stop

on any movement:
   {minime::%uuid of player%} is true:
       set {_l} to location of player's head
       remove 0.3 from y coord of {_l}
       set {_l} to location .5 left of {_l}
       loop all armor stands:
           if name of loop-entity is "&eMini %player%":
               teleport loop-entity to {_l}
               set tool of loop-entity to tool of player
               show 1 "cloud:0" particles at location of loop-entity for loop-entity offset by 0.5, 0.7, 0.4
               set chestplate of loop-entity to chestplate of player
               set leggings of loop-entity to leggings of player
               set boots of loop-entity to boots of player
               chestplate of loop-entity is air:
                   set chestplate of loop-entity to leather chestplate
               leggings of loop-entity is air:
                   set leggings of loop-entity to leather chestplate
               boots of loop-entity is air:
                   set boots of loop-entity to leather chestplate
               stop

on join:
   if {minime::%uuid of player%} is true:
       loop all armor stands:
           if name of loop-entity is "&eMini %player%":
               delete loop-entity
       set {_l} to location of player
       set {_l} to location 1.5 left of player
       spawn an armor stand at {_l}
       set {_s} to last spawned entity
       set is visible of {_s} to true
       set show base plate of {_s} to false
       set has gravity of {_s} to false
       set show arms of {_s} to true
       set is small of {_s} to true
       set helmet of {_s} to player's skull
       set display name of last spawned entity to "&eMini %player%"
       set name of last spawned entity to "&eMini %player%"
       set chestplate of {_s} to leather chestplate
       set leggings of {_s} to leather leggings
       set boots of {_s} to leather boots
       message "&7« &bMini &7» &e&eVotre MiniMe est sur vous :)!"
       stop

on quit:
   loop all armor stands:
       if name of loop-entity is "&eMini %player%":
           delete loop-entity
           stop

0 réponse à cette question

Messages recommandés

Il n’y a pas encore eu de réponse à cette question

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