Advertisement
Guest User

Untitled

a guest
Jun 20th, 2019
127
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.89 KB | None | 0 0
  1. variables:
  2. {deaths::%player%} = 0
  3. {mobkills::%player%} = 0
  4. command /stats <player=%player%>:
  5. aliases: status, information, info
  6. trigger:
  7. open virtual chest inventory with size 6 named "&6Information" to player
  8. format gui slot 4 of player with arg 1's skull named "&e%arg 1%&f's profile"
  9. set {_a} to 8
  10. loop 9 times:
  11. add 1 to {_a}
  12. format gui slot {_a} of player with lime stained glass pane named "&a*"
  13. format gui slot 25 of player with diamond sword named "&cKills - &f%{mobkills::%arg 1%}%"
  14. format gui slot 43 of player with diamond sword named "&4Deaths - &f%{deaths::%arg 1%}%"
  15. if arg 1's helmet is not air:
  16. format gui slot 19 of player with arg 1's helmet
  17. else:
  18. format gui slot 19 of player with red stained glass pane named "&cNo Helmet Slot" with lore "&7This player does not have any helmet on them!"
  19. if arg 1's chestplate is not air:
  20. format gui slot 28 of player with arg 1's chestplate
  21. else:
  22. format gui slot 28 of player with red stained glass pane named "&cNo Chestplate Slot" with lore "&7This player does not have any chestplate on them!"
  23. if arg 1's leggings are not air:
  24. format gui slot 37 of player with arg 1's leggings
  25. else:
  26. format gui slot 37 of player with red stained glass pane named "&cNo Leggings Slot" with lore "&7This player does not have leggings on them!"
  27. if arg 1's boots are not air:
  28. format gui slot 46 of player with arg 1's boots
  29. else:
  30. format gui slot 46 of player with red stained glass pane named "&cNo Boots Slot" with lore "&7This player does not have boots on them!"
  31. on damage of player:
  32. if damage is greater than victim's health:
  33. cancel the event
  34. teleport the victim to {spawn}
  35. heal the victim
  36. message "&8[&e*&8] &7You died by the hands of &c%attacker%" to the victim
  37. add 1 to {deaths::%victim%}
  38. on death:
  39. victim is not a player
  40. attacker is a player
  41. add 1 to {mobkills::%attacker%}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement