Aller au contenu

Messages recommandés

Posté(e)

boujour comment faire que les autres joueurs ne l'entend pas mais la personne en question oui play raw sound "mob.villager.no" at player with pitch 1 volume 10

Posté(e)
boujour comment faire que les autres joueurs ne l'entend pas mais la personne en question oui play raw sound "mob.villager.no" at player with pitch 1 volume 10

J'ai rien compris :c , ceci n'est pas francais x)

Posté(e)

Salut!

Donc tout d'abord c'est très simple:

Le

play raw sound

signifie jouer un son le

"NOTE.PLING"

sert à choisir le " son " le

at player

veut dire QUE au player qui a fait l'évenement ou la commande etc.. et enfin le

with pitch 1 volume 10

sert à l'option du son donc au final ça donne

play raw sound "mob.wither.spawn" at player with pitch 1 volume 10

! Voilà mais la prochaine fois essaye de un peu soigner ton ortographe car j'ai pas trop comprit :/

Posté(e)
Envoie nous ton code de base. Tu as soit mis un make all players execute:

ou bien un loop all players j'imagine

Le problème vient peut être que c'est dans un menu et que sa execute un "execute player command"

je te montre le code

command /iron:
   permission: op
   trigger:
       wait 1 ticks
       open chest with 2 rows named "&cFer" to player
       wait 1 ticks
       format slot 0 of player with a iron ingot named "&aFer: ?$" to run [make player execute command "buy1Fer"]
       wait 1 ticks
       format slot 1 of player with 2 iron ingot named "&aFer: ?$" to run [make player execute command "buy2Fer"]
       wait 1 ticks
       format slot 2 of player with 4 iron ingot named "&aFer: ?$" to run [make player execute command "buy4Fer"]
       wait 1 ticks
       format slot 3 of player with 8 iron ingot named "&aFer: ?$" to run [make player execute command "buy8Fer"]
       wait 1 ticks
       format slot 4 of player with 16 iron ingot named "&aFer: ?$" to run [make player execute command "buy16Fer"]
       wait 1 ticks
       format slot 5 of player with 34 iron ingot named "&aFer: ?$" to run [make player execute command "buy34Fer"]
       wait 1 ticks
       format slot 6 of player with 48 iron ingot named "&aFer: ?$" to run [make player execute command "buy48Fer"]
       wait 1 ticks
       format slot 7 of player with 56 iron ingot named "&aFer: ?$" to run [make player execute command "buy56Fer"]
       wait 1 ticks
       format slot 8 of player with 64 iron ingot named "&aFer: ?$" to run [make player execute command "buy64Fer"]

command /buy1Fer:
   permission: op
   trigger:
       if player's balance is greater than or equal to 100:
           give iron ingot to player
           execute player command "eco take %player% 100"
           send "§aVous avez acheté §b1 §aFer pour "
           play raw sound "random.levelup" at player with pitch 1 volume 10
       else:
       send "§4/!\ §ctu n'as pas assez d'argent"
           play raw sound "mob.villager.no" at player with pitch 1 volume 10
command /buy2Fer:
   permission: op
   trigger:
       if player's balance is greater than or equal to 200:
           give 2 iron ingot to player
           execute console command "eco take %player% 200"
           send "§aVous avez acheté §b2 §aFer"
           play raw sound "random.levelup" at player with pitch 1 volume 10
       else:
           send "§4/!\ §ctu n'as pas assez d'argent"
           play raw sound "mob.villager.no" at player with pitch 1 volume 10
command /buy4Fer:
   permission: op
   trigger:
       if player's balance is greater than or equal to 400:
           give 4 iron ingot to player
           execute console command "eco take %player% 400"
           send "§aVous avez acheté §b4 §aFer"
           play raw sound "random.levelup" at player with pitch 1 volume 10
       else:
           send "§4/!\ §ctu n'as pas assez d'argent"       
           play raw sound "mob.villager.no" at player with pitch 1 volume 10           
command /buy8Fer:
   permission: op
   trigger:
       if player's balance is greater than or equal to 800:
           give 8 iron ingot to player
           execute console command "eco take %player% 800"
           send "§aVous avez acheté §b8 §aFer"
           play raw sound "random.levelup" at player with pitch 1 volume 10
       else:
           send "§4/!\ §ctu n'as pas assez d'argent"
           play raw sound "mob.villager.no" at player with pitch 1 volume 10
command /buy16Fer:
   permission: op
   trigger:
       if player's balance is greater than or equal to 1600:
           give 16 iron ingot to player
           execute console command "eco take %player% 1600"
           send "§aVous avez acheté §b16 §aFer"
           play raw sound "random.levelup" at player with pitch 1 volume 10
       else:
           send "§4/!\ §ctu n'as pas assez d'argent"       
           play raw sound "mob.villager.no" at player with pitch 1 volume 10
command /buy34Fer:
   permission: op
   trigger:
       if player's balance is greater than or equal to 3400:
           give 34 iron ingot to player
           execute console command "eco take %player% 3400"
           send "§aVous avez acheté §b34 §aFer"
           play raw sound "random.levelup" at player with pitch 1 volume 10
       else:
           send "§4/!\ §ctu n'as pas assez d'argent"
           play raw sound "mob.villager.no" at player with pitch 1 volume 10
command /buy48Fer:
   permission: op
   trigger:
       if player's balance is greater than or equal to 4800:
           give 48 iron ingot to player
           execute console command "eco take %player% 4800"
           send "§aVous avez acheté §b48 §aFer"
           play raw sound "random.levelup" at player with pitch 1 volume 10
       else:
           send "§4/!\ §ctu n'as pas assez d'argent"
           play raw sound "mob.villager.no" at player with pitch 1 volume 10           
command /buy56Fer:
   permission: op
   trigger:
       if player's balance is greater than or equal to 5600:
           give 56 iron ingot to player
           execute console command "eco take %player% 5600"
           send "§aVous avez acheté §b56 §aFer"
           play raw sound "random.levelup" at player with pitch 1 volume 10
       else:
           send "§4/!\ §ctu n'as pas assez d'argent"
           play raw sound "mob.villager.no" at player with pitch 1 volume 10
command /buy64Fer:
   permission: op
   trigger:
       if player's balance is greater than or equal to 6400:
           give 64 iron ingot to player
           execute console command "eco take %player% 6400"
           send "§aVous avez acheté §b64 §aFer"
           play raw sound "random.levelup" at player with pitch 1 volume 10
       else:
           send "§4/!\ §ctu n'as pas assez d'argent"
           play raw sound "mob.villager.no" at player with pitch 1 volume 10

Posté(e)
Salut!

Donc tout d'abord c'est très simple:

Le

play raw sound

signifie jouer un son le

"NOTE.PLING"

sert à choisir le " son " le

at player

veut dire QUE au player qui a fait l'évenement ou la commande etc.. et enfin le

with pitch 1 volume 10

sert à l'option du son donc au final ça donne

play raw sound "mob.wither.spawn" at player with pitch 1 volume 10

! Voilà mais la prochaine fois essaye de un peu soigner ton ortographe car j'ai pas trop comprit :/

Salut!

Donc tout d'abord c'est très simple:

Le

play raw sound

signifie jouer un son le

"NOTE.PLING"

sert à choisir le " son " le

at player

veut dire QUE au player qui a fait l'évenement ou la commande etc.. et enfin le

with pitch 1 volume 10

sert à l'option du son donc au final ça donne

play raw sound "mob.wither.spawn" at player with pitch 1 volume 10

! Voilà mais la prochaine fois essaye de un peu soigner ton ortographe car j'ai pas trop comprit :/

Le problème vient peut être que c'est dans un menu et que sa execute un "execute player command"

je te montre le code

command /iron:
   permission: op
   trigger:
       wait 1 ticks
       open chest with 2 rows named "&cFer" to player
       wait 1 ticks
       format slot 0 of player with a iron ingot named "&aFer: ?$" to run [make player execute command "buy1Fer"]
       wait 1 ticks
       format slot 1 of player with 2 iron ingot named "&aFer: ?$" to run [make player execute command "buy2Fer"]
       wait 1 ticks
       format slot 2 of player with 4 iron ingot named "&aFer: ?$" to run [make player execute command "buy4Fer"]
       wait 1 ticks
       format slot 3 of player with 8 iron ingot named "&aFer: ?$" to run [make player execute command "buy8Fer"]
       wait 1 ticks
       format slot 4 of player with 16 iron ingot named "&aFer: ?$" to run [make player execute command "buy16Fer"]
       wait 1 ticks
       format slot 5 of player with 34 iron ingot named "&aFer: ?$" to run [make player execute command "buy34Fer"]
       wait 1 ticks
       format slot 6 of player with 48 iron ingot named "&aFer: ?$" to run [make player execute command "buy48Fer"]
       wait 1 ticks
       format slot 7 of player with 56 iron ingot named "&aFer: ?$" to run [make player execute command "buy56Fer"]
       wait 1 ticks
       format slot 8 of player with 64 iron ingot named "&aFer: ?$" to run [make player execute command "buy64Fer"]

command /buy1Fer:
   permission: op
   trigger:
       if player's balance is greater than or equal to 100:
           give iron ingot to player
           execute player command "eco take %player% 100"
           send "§aVous avez acheté §b1 §aFer pour "
           play raw sound "random.levelup" at player with pitch 1 volume 10
       else:
       send "§4/!\ §ctu n'as pas assez d'argent"
           play raw sound "mob.villager.no" at player with pitch 1 volume 10
command /buy2Fer:
   permission: op
   trigger:
       if player's balance is greater than or equal to 200:
           give 2 iron ingot to player
           execute console command "eco take %player% 200"
           send "§aVous avez acheté §b2 §aFer"
           play raw sound "random.levelup" at player with pitch 1 volume 10
       else:
           send "§4/!\ §ctu n'as pas assez d'argent"
           play raw sound "mob.villager.no" at player with pitch 1 volume 10
command /buy4Fer:
   permission: op
   trigger:
       if player's balance is greater than or equal to 400:
           give 4 iron ingot to player
           execute console command "eco take %player% 400"
           send "§aVous avez acheté §b4 §aFer"
           play raw sound "random.levelup" at player with pitch 1 volume 10
       else:
           send "§4/!\ §ctu n'as pas assez d'argent"       
           play raw sound "mob.villager.no" at player with pitch 1 volume 10           
command /buy8Fer:
   permission: op
   trigger:
       if player's balance is greater than or equal to 800:
           give 8 iron ingot to player
           execute console command "eco take %player% 800"
           send "§aVous avez acheté §b8 §aFer"
           play raw sound "random.levelup" at player with pitch 1 volume 10
       else:
           send "§4/!\ §ctu n'as pas assez d'argent"
           play raw sound "mob.villager.no" at player with pitch 1 volume 10
command /buy16Fer:
   permission: op
   trigger:
       if player's balance is greater than or equal to 1600:
           give 16 iron ingot to player
           execute console command "eco take %player% 1600"
           send "§aVous avez acheté §b16 §aFer"
           play raw sound "random.levelup" at player with pitch 1 volume 10
       else:
           send "§4/!\ §ctu n'as pas assez d'argent"       
           play raw sound "mob.villager.no" at player with pitch 1 volume 10
command /buy34Fer:
   permission: op
   trigger:
       if player's balance is greater than or equal to 3400:
           give 34 iron ingot to player
           execute console command "eco take %player% 3400"
           send "§aVous avez acheté §b34 §aFer"
           play raw sound "random.levelup" at player with pitch 1 volume 10
       else:
           send "§4/!\ §ctu n'as pas assez d'argent"
           play raw sound "mob.villager.no" at player with pitch 1 volume 10
command /buy48Fer:
   permission: op
   trigger:
       if player's balance is greater than or equal to 4800:
           give 48 iron ingot to player
           execute console command "eco take %player% 4800"
           send "§aVous avez acheté §b48 §aFer"
           play raw sound "random.levelup" at player with pitch 1 volume 10
       else:
           send "§4/!\ §ctu n'as pas assez d'argent"
           play raw sound "mob.villager.no" at player with pitch 1 volume 10           
command /buy56Fer:
   permission: op
   trigger:
       if player's balance is greater than or equal to 5600:
           give 56 iron ingot to player
           execute console command "eco take %player% 5600"
           send "§aVous avez acheté §b56 §aFer"
           play raw sound "random.levelup" at player with pitch 1 volume 10
       else:
           send "§4/!\ §ctu n'as pas assez d'argent"
           play raw sound "mob.villager.no" at player with pitch 1 volume 10
command /buy64Fer:
   permission: op
   trigger:
       if player's balance is greater than or equal to 6400:
           give 64 iron ingot to player
           execute console command "eco take %player% 6400"
           send "§aVous avez acheté §b64 §aFer"
           play raw sound "random.levelup" at player with pitch 1 volume 10
       else:
           send "§4/!\ §ctu n'as pas assez d'argent"
           play raw sound "mob.villager.no" at player with pitch 1 volume 10

Posté(e)
players

Envoie nous ton code de base. Tu as soit mis un make all players execute:

ou bien un loop all players j'imagine

command /iron:
   permission: op
   trigger:
       wait 1 ticks
       open chest with 2 rows named "&cFer" to player
       wait 1 ticks
       format slot 0 of player with a iron ingot named "&aFer: ?$" to run [make player execute command "buy1Fer"]
       wait 1 ticks
       format slot 1 of player with 2 iron ingot named "&aFer: ?$" to run [make player execute command "buy2Fer"]
       wait 1 ticks
       format slot 2 of player with 4 iron ingot named "&aFer: ?$" to run [make player execute command "buy4Fer"]
       wait 1 ticks
       format slot 3 of player with 8 iron ingot named "&aFer: ?$" to run [make player execute command "buy8Fer"]
       wait 1 ticks
       format slot 4 of player with 16 iron ingot named "&aFer: ?$" to run [make player execute command "buy16Fer"]
       wait 1 ticks
       format slot 5 of player with 34 iron ingot named "&aFer: ?$" to run [make player execute command "buy34Fer"]
       wait 1 ticks
       format slot 6 of player with 48 iron ingot named "&aFer: ?$" to run [make player execute command "buy48Fer"]
       wait 1 ticks
       format slot 7 of player with 56 iron ingot named "&aFer: ?$" to run [make player execute command "buy56Fer"]
       wait 1 ticks
       format slot 8 of player with 64 iron ingot named "&aFer: ?$" to run [make player execute command "buy64Fer"]

command /buy1Fer:
   permission: op
   trigger:
       if player's balance is greater than or equal to 100:
           give iron ingot to player
           execute player command "eco take %player% 100"
           send "§aVous avez acheté §b1 §aFer pour "
           play raw sound "random.levelup" at player with pitch 1 volume 10
       else:
       send "§4/!\ §ctu n'as pas assez d'argent"
           play raw sound "mob.villager.no" at player with pitch 1 volume 10
command /buy2Fer:
   permission: op
   trigger:
       if player's balance is greater than or equal to 200:
           give 2 iron ingot to player
           execute console command "eco take %player% 200"
           send "§aVous avez acheté §b2 §aFer"
           play raw sound "random.levelup" at player with pitch 1 volume 10
       else:
           send "§4/!\ §ctu n'as pas assez d'argent"
           play raw sound "mob.villager.no" at player with pitch 1 volume 10
command /buy4Fer:
   permission: op
   trigger:
       if player's balance is greater than or equal to 400:
           give 4 iron ingot to player
           execute console command "eco take %player% 400"
           send "§aVous avez acheté §b4 §aFer"
           play raw sound "random.levelup" at player with pitch 1 volume 10
       else:
           send "§4/!\ §ctu n'as pas assez d'argent"       
           play raw sound "mob.villager.no" at player with pitch 1 volume 10           
command /buy8Fer:
   permission: op
   trigger:
       if player's balance is greater than or equal to 800:
           give 8 iron ingot to player
           execute console command "eco take %player% 800"
           send "§aVous avez acheté §b8 §aFer"
           play raw sound "random.levelup" at player with pitch 1 volume 10
       else:
           send "§4/!\ §ctu n'as pas assez d'argent"
           play raw sound "mob.villager.no" at player with pitch 1 volume 10
command /buy16Fer:
   permission: op
   trigger:
       if player's balance is greater than or equal to 1600:
           give 16 iron ingot to player
           execute console command "eco take %player% 1600"
           send "§aVous avez acheté §b16 §aFer"
           play raw sound "random.levelup" at player with pitch 1 volume 10
       else:
           send "§4/!\ §ctu n'as pas assez d'argent"       
           play raw sound "mob.villager.no" at player with pitch 1 volume 10
command /buy34Fer:
   permission: op
   trigger:
       if player's balance is greater than or equal to 3400:
           give 34 iron ingot to player
           execute console command "eco take %player% 3400"
           send "§aVous avez acheté §b34 §aFer"
           play raw sound "random.levelup" at player with pitch 1 volume 10
       else:
           send "§4/!\ §ctu n'as pas assez d'argent"
           play raw sound "mob.villager.no" at player with pitch 1 volume 10
command /buy48Fer:
   permission: op
   trigger:
       if player's balance is greater than or equal to 4800:
           give 48 iron ingot to player
           execute console command "eco take %player% 4800"
           send "§aVous avez acheté §b48 §aFer"
           play raw sound "random.levelup" at player with pitch 1 volume 10
       else:
           send "§4/!\ §ctu n'as pas assez d'argent"
           play raw sound "mob.villager.no" at player with pitch 1 volume 10           
command /buy56Fer:
   permission: op
   trigger:
       if player's balance is greater than or equal to 5600:
           give 56 iron ingot to player
           execute console command "eco take %player% 5600"
           send "§aVous avez acheté §b56 §aFer"
           play raw sound "random.levelup" at player with pitch 1 volume 10
       else:
           send "§4/!\ §ctu n'as pas assez d'argent"
           play raw sound "mob.villager.no" at player with pitch 1 volume 10
command /buy64Fer:
   permission: op
   trigger:
       if player's balance is greater than or equal to 6400:
           give 64 iron ingot to player
           execute console command "eco take %player% 6400"
           send "§aVous avez acheté §b64 §aFer"
           play raw sound "random.levelup" at player with pitch 1 volume 10
       else:
           send "§4/!\ §ctu n'as pas assez d'argent"
           play raw sound "mob.villager.no" at player with pitch 1 volume 10

Posté(e)
Salut!

Donc tout d'abord c'est très simple:

Le

play raw sound

signifie jouer un son le

"NOTE.PLING"

sert à choisir le " son " le

at player

veut dire QUE au player qui a fait l'évenement ou la commande etc.. et enfin le

with pitch 1 volume 10

sert à l'option du son donc au final ça donne

play raw sound "mob.wither.spawn" at player with pitch 1 volume 10

! Voilà mais la prochaine fois essaye de un peu soigner ton ortographe car j'ai pas trop comprit :/

        format slot 1 of player with 2 iron ingot named "&aFer: ?$" to run [make player execute command "buy2Fer"]
       wait 1 ticks
       format slot 2 of player with 4 iron ingot named "&aFer: ?$" to run [make player execute command "buy4Fer"]
       wait 1 ticks
       format slot 3 of player with 8 iron ingot named "&aFer: ?$" to run [make player execute command "buy8Fer"]
       wait 1 ticks
       format slot 4 of player with 16 iron ingot named "&aFer: ?$" to run [make player execute command "buy16Fer"]
       wait 1 ticks
       format slot 5 of player with 34 iron ingot named "&aFer: ?$" to run [make player execute command "buy34Fer"]
       wait 1 ticks
       format slot 6 of player with 48 iron ingot named "&aFer: ?$" to run [make player execute command "buy48Fer"]
       wait 1 ticks
       format slot 7 of player with 56 iron ingot named "&aFer: ?$" to run [make player execute command "buy56Fer"]
       wait 1 ticks
       format slot 8 of player with 64 iron ingot named "&aFer: ?$" to run [make player execute command "buy64Fer"]

command /buy1Fer:
   permission: op
   trigger:
       if player's balance is greater than or equal to 100:
           give iron ingot to player
           execute player command "eco take %player% 100"
           send "§aVous avez acheté §b1 §aFer pour "
           play raw sound "random.levelup" at player with pitch 1 volume 10
       else:
       send "§4/!\ §ctu n'as pas assez d'argent"
           play raw sound "mob.villager.no" at player with pitch 1 volume 10
command /buy2Fer:
   permission: op
   trigger:
       if player's balance is greater than or equal to 200:
           give 2 iron ingot to player
           execute console command "eco take %player% 200"
           send "§aVous avez acheté §b2 §aFer"
           play raw sound "random.levelup" at player with pitch 1 volume 10
       else:
           send "§4/!\ §ctu n'as pas assez d'argent"
           play raw sound "mob.villager.no" at player with pitch 1 volume 10
command /buy4Fer:
   permission: op
   trigger:
       if player's balance is greater than or equal to 400:
           give 4 iron ingot to player
           execute console command "eco take %player% 400"
           send "§aVous avez acheté §b4 §aFer"
           play raw sound "random.levelup" at player with pitch 1 volume 10
       else:
           send "§4/!\ §ctu n'as pas assez d'argent"      
           play raw sound "mob.villager.no" at player with pitch 1 volume 10          
command /buy8Fer:
   permission: op
   trigger:
       if player's balance is greater than or equal to 800:
           give 8 iron ingot to player
           execute console command "eco take %player% 800"
           send "§aVous avez acheté §b8 §aFer"
           play raw sound "random.levelup" at player with pitch 1 volume 10
       else:
           send "§4/!\ §ctu n'as pas assez d'argent"
           play raw sound "mob.villager.no" at player with pitch 1 volume 10
command /buy16Fer:
   permission: op
   trigger:
       if player's balance is greater than or equal to 1600:
           give 16 iron ingot to player
           execute console command "eco take %player% 1600"
           send "§aVous avez acheté §b16 §aFer"
           play raw sound "random.levelup" at player with pitch 1 volume 10
       else:
           send "§4/!\ §ctu n'as pas assez d'argent"      
           play raw sound "mob.villager.no" at player with pitch 1 volume 10
command /buy34Fer:
   permission: op
   trigger:
       if player's balance is greater than or equal to 3400:
           give 34 iron ingot to player
           execute console command "eco take %player% 3400"
           send "§aVous avez acheté §b34 §aFer"
           play raw sound "random.levelup" at player with pitch 1 volume 10
       else:
           send "§4/!\ §ctu n'as pas assez d'argent"
           play raw sound "mob.villager.no" at player with pitch 1 volume 10
command /buy48Fer:
   permission: op
   trigger:
       if player's balance is greater than or equal to 4800:
           give 48 iron ingot to player
           execute console command "eco take %player% 4800"
           send "§aVous avez acheté §b48 §aFer"
           play raw sound "random.levelup" at player with pitch 1 volume 10
       else:
           send "§4/!\ §ctu n'as pas assez d'argent"
           play raw sound "mob.villager.no" at player with pitch 1 volume 10          
command /buy56Fer:
   permission: op
   trigger:
       if player's balance is greater than or equal to 5600:
           give 56 iron ingot to player
           execute console command "eco take %player% 5600"
           send "§aVous avez acheté §b56 §aFer"
           play raw sound "random.levelup" at player with pitch 1 volume 10
       else:
           send "§4/!\ §ctu n'as pas assez d'argent"
           play raw sound "mob.villager.no" at player with pitch 1 volume 10
command /buy64Fer:
   permission: op
   trigger:
       if player's balance is greater than or equal to 6400:
           give 64 iron ingot to player
           execute console command "eco take %player% 6400"
           send "§aVous avez acheté §b64 §aFer"
           play raw sound "random.levelup" at player with pitch 1 volume 10
       else:
           send "§4/!\ §ctu n'as pas assez d'argent"
           play raw sound "mob.villager.no" at player with pitch 1 volume 10

Posté(e)
Salut!

Donc tout d'abord c'est très simple:

Le

play raw sound

signifie jouer un son le

"NOTE.PLING"

sert à choisir le " son " le

at player

veut dire QUE au player qui a fait l'évenement ou la commande etc.. et enfin le

with pitch 1 volume 10

sert à l'option du son donc au final ça donne

play raw sound "mob.wither.spawn" at player with pitch 1 volume 10

! Voilà mais la prochaine fois essaye de un peu soigner ton ortographe car j'ai pas trop comprit :/

        format slot 1 of player with 2 iron ingot named "&aFer: ?$" to run [make player execute command "buy2Fer"]
       wait 1 ticks
       format slot 2 of player with 4 iron ingot named "&aFer: ?$" to run [make player execute command "buy4Fer"]
       wait 1 ticks
       format slot 3 of player with 8 iron ingot named "&aFer: ?$" to run [make player execute command "buy8Fer"]
       wait 1 ticks
       format slot 4 of player with 16 iron ingot named "&aFer: ?$" to run [make player execute command "buy16Fer"]
       wait 1 ticks
       format slot 5 of player with 34 iron ingot named "&aFer: ?$" to run [make player execute command "buy34Fer"]
       wait 1 ticks
       format slot 6 of player with 48 iron ingot named "&aFer: ?$" to run [make player execute command "buy48Fer"]
       wait 1 ticks
       format slot 7 of player with 56 iron ingot named "&aFer: ?$" to run [make player execute command "buy56Fer"]
       wait 1 ticks
       format slot 8 of player with 64 iron ingot named "&aFer: ?$" to run [make player execute command "buy64Fer"]

command /buy1Fer:
   permission: op
   trigger:
       if player's balance is greater than or equal to 100:
           give iron ingot to player
           execute player command "eco take %player% 100"
           send "§aVous avez acheté §b1 §aFer pour "
           play raw sound "random.levelup" at player with pitch 1 volume 10
       else:
       send "§4/!\ §ctu n'as pas assez d'argent"
           play raw sound "mob.villager.no" at player with pitch 1 volume 10
command /buy2Fer:
   permission: op
   trigger:
       if player's balance is greater than or equal to 200:
           give 2 iron ingot to player
           execute console command "eco take %player% 200"
           send "§aVous avez acheté §b2 §aFer"
           play raw sound "random.levelup" at player with pitch 1 volume 10
       else:
           send "§4/!\ §ctu n'as pas assez d'argent"
           play raw sound "mob.villager.no" at player with pitch 1 volume 10
command /buy4Fer:
   permission: op
   trigger:
       if player's balance is greater than or equal to 400:
           give 4 iron ingot to player
           execute console command "eco take %player% 400"
           send "§aVous avez acheté §b4 §aFer"
           play raw sound "random.levelup" at player with pitch 1 volume 10
       else:
           send "§4/!\ §ctu n'as pas assez d'argent"      
           play raw sound "mob.villager.no" at player with pitch 1 volume 10          
command /buy8Fer:
   permission: op
   trigger:
       if player's balance is greater than or equal to 800:
           give 8 iron ingot to player
           execute console command "eco take %player% 800"
           send "§aVous avez acheté §b8 §aFer"
           play raw sound "random.levelup" at player with pitch 1 volume 10
       else:
           send "§4/!\ §ctu n'as pas assez d'argent"
           play raw sound "mob.villager.no" at player with pitch 1 volume 10
command /buy16Fer:
   permission: op
   trigger:
       if player's balance is greater than or equal to 1600:
           give 16 iron ingot to player
           execute console command "eco take %player% 1600"
           send "§aVous avez acheté §b16 §aFer"
           play raw sound "random.levelup" at player with pitch 1 volume 10
       else:
           send "§4/!\ §ctu n'as pas assez d'argent"      
           play raw sound "mob.villager.no" at player with pitch 1 volume 10
command /buy34Fer:
   permission: op
   trigger:
       if player's balance is greater than or equal to 3400:
           give 34 iron ingot to player
           execute console command "eco take %player% 3400"
           send "§aVous avez acheté §b34 §aFer"
           play raw sound "random.levelup" at player with pitch 1 volume 10
       else:
           send "§4/!\ §ctu n'as pas assez d'argent"
           play raw sound "mob.villager.no" at player with pitch 1 volume 10
command /buy48Fer:
   permission: op
   trigger:
       if player's balance is greater than or equal to 4800:
           give 48 iron ingot to player
           execute console command "eco take %player% 4800"
           send "§aVous avez acheté §b48 §aFer"
           play raw sound "random.levelup" at player with pitch 1 volume 10
       else:
           send "§4/!\ §ctu n'as pas assez d'argent"
           play raw sound "mob.villager.no" at player with pitch 1 volume 10          
command /buy56Fer:
   permission: op
   trigger:
       if player's balance is greater than or equal to 5600:
           give 56 iron ingot to player
           execute console command "eco take %player% 5600"
           send "§aVous avez acheté §b56 §aFer"
           play raw sound "random.levelup" at player with pitch 1 volume 10
       else:
           send "§4/!\ §ctu n'as pas assez d'argent"
           play raw sound "mob.villager.no" at player with pitch 1 volume 10
command /buy64Fer:
   permission: op
   trigger:
       if player's balance is greater than or equal to 6400:
           give 64 iron ingot to player
           execute console command "eco take %player% 6400"
           send "§aVous avez acheté §b64 §aFer"
           play raw sound "random.levelup" at player with pitch 1 volume 10
       else:
           send "§4/!\ §ctu n'as pas assez d'argent"
           play raw sound "mob.villager.no" at player with pitch 1 volume 10

Posté(e)

Evite les doubles postes >.<

 

Sinon, les play raw sound que tu as écrit sont justes, et ne doivent normalement jouer le son qu'au joueur cliquant sur l'objet du GUI.

 

PS: Dans cette partie du skript

 

command /buy1Fer:
   permission: op
   trigger:
       if player's balance is greater than or equal to 100:
           give iron ingot to player
           execute player command "eco take %player% 100"
           send "§aVous avez acheté §b1 §aFer pour "
           play raw sound "random.levelup" at player with pitch 1 volume 10
       else:
       send "§4/!\ §ctu n'as pas assez d'argent"
           play raw sound "mob.villager.no" at player with pitch 1 volume 10

 

Rajoute un tab avant le send "§4/!\ §ctu n'as pas assez d'argent"

Posté(e)
Evite les doubles postes >.<

 

Sinon, les play raw sound que tu as écrit sont justes, et ne doivent normalement jouer le son qu'au joueur cliquant sur l'objet du GUI.

 

PS: Dans cette partie du skript

 

command /buy1Fer:
   permission: op
   trigger:
       if player's balance is greater than or equal to 100:
           give iron ingot to player
           execute player command "eco take %player% 100"
           send "§aVous avez acheté §b1 §aFer pour "
           play raw sound "random.levelup" at player with pitch 1 volume 10
       else:
       send "§4/!\ §ctu n'as pas assez d'argent"
           play raw sound "mob.villager.no" at player with pitch 1 volume 10

 

Rajoute un tab avant le send "§4/!\ §ctu n'as pas assez d'argent"

mais enfaite j'ai fait un test avec une commande que j'ai crée /sound et j'execute le playsound seul mais sa ne marche toujours pas c'est surement un problème de serveur comment contourner ??

Posté(e)

wait 1 ticks

format slot 2 of player with 4 iron ingot named "&aFer: ?$" to run [make player execute command "buy4Fer"]

wait 1 ticks

format slot 3 of player with 8 iron ingot named "&aFer: ?$" to run [make player execute command "buy8Fer"]

wait 1 ticks

format slot 4 of player with 16 iron ingot named "&aFer: ?$" to run [make player execute command "buy16Fer"]

wait 1 ticks

format slot 5 of player with 34 iron ingot named "&aFer: ?$" to run [make player execute command "buy34Fer"]

wait 1 ticks

format slot 6 of player with 48 iron ingot named "&aFer: ?$" to run [make player execute command "buy48Fer"]

wait 1 ticks

format slot 7 of player with 56 iron ingot named "&aFer: ?$" to run [make player execute command "buy56Fer"]

wait 1 ticks

format slot 8 of player with 64 iron ingot named "&aFer: ?$" to run [make player execute command "buy64Fer"]

 

command /buy1Fer:

permission: op

trigger:

if player's balance is greater than or equal to 100:

give iron ingot to player

execute player command "eco take %player% 100"

send "§aVous avez acheté §b1 §aFer pour "

play raw sound "random.levelup" at player with pitch 1 volume 10

else:

send "§4/!\ §ctu n'as pas assez d'argent"

play raw sound "mob.villager.no" at player with pitch 1 volume 10

command /buy2Fer:

permission: op

trigger:

if player's balance is greater than or equal to 200:

give 2 iron ingot to player

execute console command "eco take %player% 200"

send "§aVous avez acheté §b2 §aFer"

play raw sound "random.levelup" at player with pitch 1 volume 10

else:

send "§4/!\ §ctu n'as pas assez d'argent"

play raw sound "mob.villager.no" at player with pitch 1 volume 10

command /buy4Fer:

permission: op

trigger:

if player's balance is greater than or equal to 400:

give 4 iron ingot to player

execute console command "eco take %player% 400"

send "§aVous avez acheté §b4 §aFer"

play raw sound "random.levelup" at player with pitch 1 volume 10

else:

send "§4/!\ §ctu n'as pas assez d'argent"

play raw sound "mob.villager.no" at player with pitch 1 volume 10

command /buy8Fer:

permission: op

trigger:

if player's balance is greater than or equal to 800:

give 8 iron ingot to player

execute console command "eco take %player% 800"

send "§aVous avez acheté §b8 §aFer"

play raw sound "random.levelup" at player with pitch 1 volume 10

else:

send "§4/!\ §ctu n'as pas assez d'argent"

play raw sound "mob.villager.no" at player with pitch 1 volume 10

command /buy16Fer:

permission: op

trigger:

if player's balance is greater than or equal to 1600:

give 16 iron ingot to player

execute console command "eco take %player% 1600"

send "§aVous avez acheté §b16 §aFer"

play raw sound "random.levelup" at player with pitch 1 volume 10

else:

send "§4/!\ §ctu n'as pas assez d'argent"

play raw sound "mob.villager.no" at player with pitch 1 volume 10

command /buy34Fer:

permission: op

trigger:

if player's balance is greater than or equal to 3400:

give 34 iron ingot to player

execute console command "eco take %player% 3400"

send "§aVous avez acheté §b34 §aFer"

play raw sound "random.levelup" at player with pitch 1 volume 10

else:

send "§4/!\ §ctu n'as pas assez d'argent"

play raw sound "mob.villager.no" at player with pitch 1 volume 10

command /buy48Fer:

permission: op

trigger:

if player's balance is greater than or equal to 4800:

give 48 iron ingot to player

execute console command "eco take %player% 4800"

send "§aVous avez acheté §b48 §aFer"

play raw sound "random.levelup" at player with pitch 1 volume 10

else:

send "§4/!\ §ctu n'as pas assez d'argent"

play raw sound "mob.villager.no" at player with pitch 1 volume 10

command /buy56Fer:

permission: op

trigger:

if player's balance is greater than or equal to 5600:

give 56 iron ingot to player

execute console command "eco take %player% 5600"

send "§aVous avez acheté §b56 §aFer"

play raw sound "random.levelup" at player with pitch 1 volume 10

else:

send "§4/!\ §ctu n'as pas assez d'argent"

play raw sound "mob.villager.no" at player with pitch 1 volume 10

command /buy64Fer:

permission: op

trigger:

if player's balance is greater than or equal to 6400:

give 64 iron ingot to player

execute console command "eco take %player% 6400"

send "§aVous avez acheté §b64 §aFer"

play raw sound "random.levelup" at player with pitch 1 volume 10

else:

send "§4/!\ §ctu n'as pas assez d'argent"

play raw sound "mob.villager.no" at player with pitch 1 volume 10[/code]

Tu as des erreurs?

Posté(e)
mais enfaite j'ai fait un test avec une commande que j'ai crée /sound et j'execute le playsound seul mais sa ne marche toujours pas c'est surement un problème de serveur comment contourner ??

Après ça peut venir de toi

Posté(e)
Non mais j'utilise spigot

C'est pas parce-que tu as spigot que ça va absolument fonctionner x) Mais je voulais dire essaye avec un ami a toi ton skript pour voir si lui entend car ça peut venir de ton pc

Posté(e)
C'est pas parce-que tu as spigot que ça va absolument fonctionner x) Mais je voulais dire essaye avec un ami a toi ton skript pour voir si lui entend car ça peut venir de ton pc

Non on as deja fais des avec les fonda deop ou op fonda ou citoyen sa envoye le son as tous les joueurs

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