variables: {kon.przywolany.%player%} = false command /Kon: permission: kon.get permission message: &cNie mozesz brac konia bez pozwolenia! trigger: if {kon::cooldown::%player%} is set: if difference between {kon::cooldown::%player%} and now is less than 30 seconds: send "&cMusisz odczekac &630 &csekund po kazdym przwolaniu konia!" to player stop set {kon::cooldown::%player%} to now give a hay block of fortune 10 named "&6Przywolaj Konia" to the player on rightclick: player is holding hay block of fortune 10 named "&6Przywolaj Konia": if {kon.przywolany.%player%} = false: spawn 1 horse at location of player tame last spawned horse to player set the name of spawned entity to "%player%" make player ride spawned horse equip spawned horse with saddle set {kon.przywolany.%player%} to true send "&aPrzywolales swojego konia!" else if {kon.przywolany.%player%} = true: set {kon.przywolany.%player%} to false send "&cOdeslales swojego konia!" loop all horses: if name of loop-horses contain "%player%": kill loop-horses on death of horse: if victim's name contains "%player%": clear drops on vehicle exit: loop horses in radius 2 around player: name of loop-horse is "%player%": kill loop-horse stop