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%}
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.
Question
MrForoche
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%}28 réponses à cette question
Messages recommandés