Aller au contenu

tp en l'air, ou en dessous, mais au même cordonné (x, z)


Messages recommandés

Posté(e)

Bonjour je voudrais créer deux commandes: /up, /down.

 

Quand je fais /up, je veux que ça me tp 105 blocs en l'air, mais au même coordonnée x et z,peut importe ou je suis sur la map (donc tp: ~ ~105 ~). Et pour le down, je veux pareille mais que me tp vers le sol a de 105 blocs, (donc tp: ~ ~-105 ~).

Merci

Posté(e)
command /up:
   trigger:
       set {_loc.x} to x-location of player
       set {_loc.y} to y-location of player
       set {_loc.z} to z-location of player
       add 130 to {_loc.y}
       wait a tick
       teleport player to ({_loc.x}, {_loc.y}, {_loc.z})


command /down:
   trigger:
       set {_loc.x} to x-location of player
       set {_loc.y} to y-location of player
       set {_loc.z} to z-location of player
       add -130 to {_loc.y}
       wait a tick
       teleport player to ({_loc.x}, {_loc.y}, {_loc.z})

Posté(e)
command /up:
   trigger:
       set {_loc} to location of player
       set y-location of {_loc} to y-location of {_loc} + 105
       teleport player to {_loc}

command /down:
   trigger:
       set {_loc} to location of player
       set y-location of {_loc} to y-location of {_loc} - 105
       teleport player to {_loc}

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