Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- variables:
- {deaths::%player%} = 0
- {mobkills::%player%} = 0
- command /stats <player=%player%>:
- aliases: status, information, info
- trigger:
- open virtual chest inventory with size 6 named "&6Information" to player
- format gui slot 4 of player with arg 1's skull named "&e%arg 1%&f's profile"
- set {_a} to 8
- loop 9 times:
- add 1 to {_a}
- format gui slot {_a} of player with lime stained glass pane named "&a*"
- format gui slot 25 of player with diamond sword named "&cKills - &f%{mobkills::%arg 1%}%"
- format gui slot 43 of player with diamond sword named "&4Deaths - &f%{deaths::%arg 1%}%"
- if arg 1's helmet is not air:
- format gui slot 19 of player with arg 1's helmet
- else:
- 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!"
- if arg 1's chestplate is not air:
- format gui slot 28 of player with arg 1's chestplate
- else:
- 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!"
- if arg 1's leggings are not air:
- format gui slot 37 of player with arg 1's leggings
- else:
- 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!"
- if arg 1's boots are not air:
- format gui slot 46 of player with arg 1's boots
- else:
- 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!"
- on damage of player:
- if damage is greater than victim's health:
- cancel the event
- teleport the victim to {spawn}
- heal the victim
- message "&8[&e*&8] &7You died by the hands of &c%attacker%" to the victim
- add 1 to {deaths::%victim%}
- on death:
- victim is not a player
- attacker is a player
- add 1 to {mobkills::%attacker%}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement