Solved Set the speed of the horse

  • Welcome to skUnity!

    Welcome to skUnity! This is a forum where members of the Skript community can communicate and interact. Skript Resource Creators can post their Resources for all to see and use.

    If you haven't done so already, feel free to join our official Discord server to expand your level of interaction with the comminuty!

    Now, what are you waiting for? Join the community now!

  • LOOKING FOR A VERSION OF SKRIPT?

    You can always check out skUnity Downloads for downloads and any other information about Skript!

Status
Not open for further replies.

Dabriel

Member
Aug 13, 2018
45
5
0
27
Hello there Skripters!

I'm trying to set the speed of the horse, so when it spawns, the speed will always be the same, it wont be random.
Giving the horse a potion effect won't do it, because the horse will spawn with random speed numbers.
I heard it's possible using NBT tags?
Please, let's find a way to set the speed of the horse to be always for an example: 14
Thanks!
 
code_language.skript:
spawn a horse at player
set {_} to last spawned horse
equip {_} with a saddle
add "{Tame:1,Attributes:[{Name:generic.movementSpeed,Base:0.5}]}" to nbt of {_}

Requires SKStuff
 
Status
Not open for further replies.