Guest User

Untitled

a guest
May 3rd, 2017
116
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.77 KB | None | 0 0
  1. options:
  2. przywolaj: &6&lPrzywolaj konia #NAZWA PRZYWOLYWACZA
  3. zabij: &4&lZabij konia #NAZWA 'ZABIJACZA'
  4.  
  5.  
  6. on rightclick:
  7. if name of player's tool is "{@przywolaj}":
  8. cancel event
  9. if {kon::%player%} is not set:
  10. spawn 1 horse at player
  11. set name of spawned entity to "Kon &a%player%"
  12. set {kon::%player%} to true
  13. else:
  14. send "&4&oZrespiles juz konia!"
  15. on rightclick on horse:
  16. if name of player's tool is "{@zabij}":
  17. if name of clicked entity is "Kon &a%player%":
  18. kill clicked entity
  19. clear {kon::%player%}
  20. else:
  21. send "&4&oTo nie twoj kon!"
  22. else:
  23.  
  24. if name of clicked entity is "Kon &a%player%":
  25. stop
  26. else:
  27. send "&4&oTo nie twoj kon!"
  28. #CLEAR DROPS
  29. on death:
  30. if victim is horse:
  31. if name of victim is set:
  32. clear drops
Advertisement
Add Comment
Please, Sign In to add comment