Aller au contenu
KawaiY

Skript d'1v1

Messages recommandés

Hey!

J'ai créer un skript d'1v1 seulement beaucoup de choses sont à faire, et j'avoue que là je suis déboussoler :')

Voici le code:

 

command /duel <player>:

trigger:

if arg-1 is not set:

send "&7• &cVeuillez choisir un joueur !"

else:

send "&7• &cDuel envoyé à %arg-1%"

send "&7• &e%player% &cvous demande en duel, faites /accept %player% !" to arg 1

set {joueur1} to command sender

set {joueur2} to arg-1

 

command /accept <player>:

trigger:

teleport arg 1 to {spawn1}

teleport player to {spawn2}

equip player with a diamond chestplate of protection 2

equip player with a diamond helmet of projectile protection 2

equip player with a diamond leggings of protection 2

equip player with a diamond boots of projectile protection 2

set slot 0 of player to diamond sword of sharpness 3

set slot 1 of player to fishing rod of unbreaking 3

set slot 2 of player to lava bucket

set slot 3 of player to water bucket

set slot 4 of player to 6 golden apple

set slot 5 of player to 3 golden apple named "&6Golden Head"

set slot 6 of player to 64 steak

set slot 7 of player to 64 cobble

set slot 8 of player to water bucket

set slot 8 of player to bow of power 3

set slot 12 of player to 32 arrow

set slot 29 of player to lava bucket

set slot 30 of player to water bucket

equip arg 1 with a diamond chestplate of protection 2

equip arg 1 with a diamond helmet of projectile protection 2

equip arg 1 with a diamond leggings of protection 2

equip arg 1 with a diamond boots of projectile protection 2

set slot 0 of arg 1 to diamond sword of sharpness 3

set slot 1 of arg 1 to fishing rod of unbreaking 3

set slot 2 of arg 1 to lava bucket

set slot 3 of arg 1 to water bucket

set slot 4 of arg 1 to 6 golden apple

set slot 5 of arg 1 to 3 golden apple named "&6Golden Head"

set slot 6 of arg 1 to 64 steak

set slot 7 of arg 1 to 64 cobble

set slot 8 of arg 1 to water bucket

set slot 8 of arg 1 to bow of power 3

set slot 12 of arg 1 to 32 arrow

set slot 29 of arg 1 to lava bucket

set slot 30 of arg 1 to water bucket

send "&7• &cDuel contre &e%arg-1%&c !" to player

send "&7• &cDuel contre &e%player%&c !" to arg 1

apply resistance 2 to player for 3 seconds

apply resistance 2 to arg 1 for 3 seconds

send "&7• &c3... &7•" to player

wait 1 real seconds

send "&7• &c2... &7•" to player

wait 1 real seconds

send "&7• &c1... &7•" to player

wait 1 real seconds

send "&7• &cGO ! &7•" to player

send "&7• &c3... &7•" to arg 1

wait 1 real seconds

send "&7• &c2... &7•" to arg 1

wait 1 real seconds

send "&7• &c1... &7•" to arg 1

wait 1 real seconds

send "&7• &cGO ! &7•" to arg 1

heal player

heal arg 1

 

 

command /setspawn1:

trigger:

set {spawn1} to location of player

 

command /setspawn2:

trigger:

set {spawn2} to location of player

 

C'est peut-être pas opti et c'est justement ça le problème, je galère sur ce skript, merci d'avance!

Partager ce message


Lien à poster
Partager sur d’autres sites

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