ShipaOff Posté(e) le 14 juillet 2021 Posté(e) le 14 juillet 2021 (modifié) Bonjour / Bonsoire Version de Minecraft : 1.16.5 Type du skript : skript de spawn aléatoire Description du script : Bonjour j'ai fait un skript minecraft pour un ffarush qui donne sa command /FFaKits: trigger: make console execute command "clear %player%" send "&bFFARush &3>> &bTeleportation !" give a iron sword of sharpness 2, unbreaking 4, knockback 1 to the player give a iron pickaxe of unbreaking 4, efficiency 2 to the player give 64 cooked beef with name "&b&lSteak" to the player give 2950 sandstone of sharpness 2 to the player equip player with iron helmet of protection 1 equip player with iron chestplate of protection 2 equip player with iron leggings of protection 1 equip player with iron boots of protection 1, feather falling 4 mais j'aimerais que le joueur soit tp aléatoirement entre different point de spawn ( differentes coordonés ) mais je n'y arrive pas comment faire ( j'attend un exemple et une explication si possible ) Modifié le 14 juillet 2021 par ShipaOff
Shykuzo Posté(e) le 14 juillet 2021 Posté(e) le 14 juillet 2021 Il y a 1 heure, ShipaOff a dit : Bonjour / Bonsoire Version de Minecraft : 1.16.5 Type du skript : skript de spawn aléatoire Description du script : Bonjour j'ai fait un skript minecraft pour un ffarush qui donne sa command /FFaKits: trigger: make console execute command "clear %player%" send "&bFFARush &3>> &bTeleportation !" give a iron sword of sharpness 2, unbreaking 4, knockback 1 to the player give a iron pickaxe of unbreaking 4, efficiency 2 to the player give 64 cooked beef with name "&b&lSteak" to the player give 2950 sandstone of sharpness 2 to the player equip player with iron helmet of protection 1 equip player with iron chestplate of protection 2 equip player with iron leggings of protection 1 equip player with iron boots of protection 1, feather falling 4 mais j'aimerais que le joueur soit tp aléatoirement entre different point de spawn ( differentes coordonés ) mais je n'y arrive pas comment faire ( j'attend un exemple et une explication si possible ) Avant de t'aider, j'aimerais te signaler que tu es dans la mauvaise section, tu es censé de trouvé dans "Skript > Aide" et pas "Skript > Demande de Skript". Sinon, voilà ce que tu peux faire : # Création d'une commande avant de créer / supprimer / lister des points d'apparitions. command /spawnpoint [<text=help>] [<text>]: trigger: if arg 1 is "help": send "- create : Créer un point de spawn" to player send "- delete : Supprimer un point de spawn" to player send "- list : Liste les points de spawn existants" to player stop # Je sais pas si mettre un stop est utile, je ne pense pas mais j'en met toujours, on sait jamais. else: if arg 1 is "create": add location of player to {Spawnpoint::*} send "Point de spawn créer !" to player stop if arg 1 is "delete": if arg 2 is not set: send "Erreur: Veuillez saisir le numéro d'un point de spawn !" to player stop else: delete {Spawnpoint::%arg-2%} send "Point de spawn supprimer !" to player stop if arg 1 is "list": loop {Spawnpoint::*}: send "%loop-number% : %loop-value%" to player stop # Pour la téléportation aléatoire. # Ajoute sa dans ton code lorsque la TP doit se faire. set {_SizeOfSpawnPoint} to size of {Spawnpoint::*} set {_RandomInteger} to a random integer between 1 and {_SizeOfSpawnPoint} teleport player to {Spawnpoint::%{_RandomInteger}%} Voilà, rien de plus simple. Je ne me suis pas appliqué sur le code, c'est juste pour t'aider, à toi de l'arranger comme bon te semble. Il y a d'autres méthodes pour faire la même chose mais comme tu m'as l'air d'être un débutant, j'ai préféré choisir une méthode, qui, pour moi, sera la plus simple pour toi. Rien qu'en lisant le code, tu peux tout comprendre, suffit d'avoir de petites bases en anglais 🙂
Joriis Posté(e) le 18 juillet 2021 Posté(e) le 18 juillet 2021 Le sujet a été résolu. Il a donc été verrouillé. Cordialement, l'équipe.
Messages recommandés