Bonjour Skript-Mc ! Ajourd'hui je fais ce poste car je veux ajouter un cooldown de genre 5 minutes dans ma commande et que j'ai une erreur dessus !
command /mount:
permission: horse.legende
permission message: &4Vous n'avez pas la permission d'utiliser cette commande !
trigger:
execute command "playsound note.bassattack %player%"
push the player upward at speed 1
wait 10 tick
spawn 1 adult horse at player
set age of the last spawned entity to adult
equip the last spawned entity with a saddle and diamond horse armor
make player ride last spawned entity
set name of last spawned entity to "&rCheval de &6%player%"
message "&7[&6UraniaMC&7] &7Vous avez bien été monté sur votre cheval."
on vehicle exit:
name of player's vehicle is "&rCheval de &6%player%"
if player is riding a horse:
delete player's vehicle
L'erreur : the age of %entity% of the last spawned entity can't be set to anything (Horse.sk, line 9: set age of the last spawned entity to adult')