Aller au contenu
  • 0

Arrive pas a supprimé une entité


Question

Posté(e)

Bonjour ,

Avec @tutur1004

nous avons codé un script , c'est a dire le pet qui vous suis parfois ,

On a reussi a crée ect , mais pas le supprimé

 

Voici le code:

 

command /petmini [<text>]:
   trigger:
       if arg 1 is set:
           if arg 1 is "me":
               set {_l} to location of player's head
               set {tonpet.%player%} to player
               remove 0.2 from y coord of {_l}
               add 0.5 to z coord of {_l}
               set {_l} to location .4 left of {_l}
               spawn an armor stand at {_l}
               set {armor::%uuid of player%} to last spawned entity
               set is visible of {armor::%uuid of player%} to true
               set show base plate of {armor::%uuid of player%} to false
               set has gravity of {armor::%uuid of player%} to false
               set show arms of {armor::%uuid of player%} to true
               set is small of {armor::%uuid of player%} to true
               set helmet of {armor::%uuid of player%} to player's skull
               set display name of last spawned entity to "&eMini %player%"
               set chestplate of {armor::%uuid of player%} to leather chestplate
               set leggings of {armor::%uuid of player%} to leather leggings
               set boots of {armor::%uuid of player%} to leather boots
               set {minime::%uuid of player%} to true
               wait 5 ticks
               teleport {armor::%uuid of player%} to {_l}
               set {pos.armor::%uuid of player%} to {_l}
               stop
#
command /petminiappel:
   trigger:
       if {minime::%uuid of player%} is true:
           teleport {armor::%uuid of player%} to player
           set {_l} to location of player's head
           set {pos.armor::%uuid of player%} to {_l}
#
command /petminiremove:
   trigger:
       if {minime::%uuid of player%} is true:
           set {_x} to x-location of {pos.armor::%uuid of player%}
           set {_y} to y-location of {pos.armor::%uuid of player%}            
           set {_z} to z-location of {pos.armor::%uuid of player%}
           kill all ArmorStand at {pos.armor::%uuid of player%}

Messages recommandés

  • 0
Posté(e)
Thx sa marche

 

Edit:

Tu sais comment faire pour le poussé un peu plus en arrière ? Pck la il est trop proche du joueur :/

Non désolé. =( Le code marche vraiment chez toi ? Tu utilises quelle version de Umbaska ? Et quel version de MC et Java ? =D

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