Aller au contenu

Téleporter des joueurs?


Messages recommandés

Posté(e)

Bonjour, je débute et j'aimerais savoir quel est le code pour téléporter les joueurs dans un monde "world" aléatoire.

Je le ferais via une commande qui lanceras un chrono.

 

Merci.

Posté(e)

command /randomwarp:
   aliases:rw
   trigger:
       if {random.1} is not set:
           send "&3Le warp &61 &3n'est pas définit !"           
       if {random.2} is not set:
           send "&3Le warp &62 &3n'est pas définit !"           
       if {random.3} is not set:
           send "&3Le warp &63 &3n'est pas définit !"               
       if {random.4} is not set:
           send "&3Le warp &64 &3n'est pas définit !"           
       if {random.5} is not set:
           send "&3Le warp &65 &3n'est pas définit !"           
command /setrandomwarp [<text>]:
   aliases:srw
   trigger:
       if arg i is not set:
       send "&3La commande est &6/swr [1/2/3/4/5/etc...]"
       if arg 1 is "1":
           set {random.1} to location of player
           send "&3Tu vien de définir le war 1"
       if arg 1 is "2":
           set {random.2} to location of player
           send "&3Tu vien de définir le war 1"
       if arg 1 is "3":
           set {random.3} to location of player7
           send "&3Tu vien de définir le war 1"
       if arg 1 is "4":
           set {random.4} to location of player
           send "&3Tu vien de définir le war 1"
       if arg 1 is "5":
           set {random.5} to location of player
           send "&3Tu vien de définir le war 1"           
command /gowarp:
   aliases:gw
   trigger:
       if arg 1 is not set:
           send "&3La commande est /gowarp [warp]"
       else:
           chance of 50%:
               teleport player to {random.1}
               send "&3Tu as été téléporté"
           chance of 50%:
               teleport player to {random.2}
               send "&3Tu as été téléporté"
           chance of 50%:
               teleport player to {random.3}
               send "&3Tu as été téléporté"
           chance of 50%:
               teleport player to {random.4}
               send "&3Tu as été téléporté"
           chance of 50%:
               teleport player to {random.5}
               send "&3Tu as été téléporté"

 

Tu adapte en fonction de ce que tu as besoin

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