Advertisement
Guest User

Untitled

a guest
Jun 20th, 2019
124
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.62 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. function xp(p: player, n: number):
  32. increase level progress of {_p} by ({_n}/(exp level * 25)) + 25
  33. on damage of player:
  34. if damage is greater than victim's health:
  35. cancel the event
  36. teleport the victim to {spawn}
  37. heal the victim
  38. message "&8[&e*&8] &7You died by the hands of &c%attacker%" to the victim
  39. add 1 to {deaths::%victim%}
  40. on death:
  41. victim is not a player
  42. attacker is a player
  43. add 1 to {mobkills::%attacker%}
  44. cancel drops of xp
  45. if victim is drowned:
  46. xp(attacker, 5)
  47. if victim is husk:
  48. xp(attacker, 5)
  49. if victim is stray:
  50. xp(attacker, 7)
  51. if victim is vindicator:
  52. xp(attacker, 50)
  53. if victim is vex:
  54. xp(attacker, 2)
  55. if victim is evoker:
  56. xp(attacker, 75)
  57. if victim is chicken:
  58. xp(attacker, 1)
  59. if victim is sheep:
  60. xp(attacker, 2)
  61. if victim is cow:
  62. xp(attacker, 3)
  63. command /suicide:
  64. trigger:
  65. teleport the victim to {spawn}
  66. heal the victim
  67. message "&8[&e*&8] &7You died by the hands of &cyourself" to the victim
  68. broadcast "&8[&e*&8] &e%player% &7took their own life"
  69. add 1 to {deaths::%victim%}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement