On rightclick with name tag: if name of player's tool is "&aZresp Konia": if {kon::%player%} is not set: spawn horse at player set name of spawned entity to "Kon %player%" set {kon::%player%} to spawned entity else: send "&4&oZrespiles juz swojego konia!" on rightclick on horse: if player's tool is not name tag with name "&4&oZabij Konia": if {kon::%player%} is clicked entity: stop else: cancel event send "&4&oBrak uprawnien!" else: if {kon::%player%} is clicked entity: clear {kon::%player%} kill clicked entity send "&4Zabiles konia" clear drops else: send "&4&oTo nie jest twoj kon!"