Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # Effort
- Variables:
- {killstreak::%player%} = 0
- {kills::%player%} = 0
- {deaths::%player%} = 0
- {xpmultiplier} = 1
- {tokens::%player%} = 0
- Options:
- # Main
- on join:
- clear player's inventory
- teleport player to {spawn}
- command /setspawn:
- permission: admin
- trigger:
- set {spawn} to location of player
- wait 1 tick
- send "&7You set the spawn point to &b%{spawn}%&7!"
- command /xpmultiplier [<number>]:
- aliases: /xpm
- trigger:
- if arg-1 is set:
- set {xpmultiplier} to arg-1
- send "&7You changed the xp multiplier to &b%arg-1%&7!"
- else:
- send "&7You must include a number!"
- #PVP
- on damage:
- if attacker is player:
- if victim is player:
- if victim's health < damage:
- heal the victim
- add 1 to {tokens::%attacker%}
- add 1 to {kills::%attacker%}
- add 1 to {deaths::%victim%}
- set {_xp-earned} to (10*{xpmultiplier})
- wait 1 tick
- add {_xp-earned} to {xp::%attacker%}
- clear {killstreak::%victim%}
- send attacker title "&b&lKILL" with subtitle "&7You killed &b%victim%&7!"
- teleport victim to {spawn}
- execute console command "/playsound minecraft:entity.enderdragon_fireball.explode master %victim% ~ ~ ~ 1000 2"
- set {_health} to attacker's health
- broadcast "&b%attacker% &7killed &b%victim% &7with &c%{_health}%&4❤"
- add 1 to {killstreak::%attacker%}
- wait 1 tick
- if {killstreak::%attacker%} is equal to 3:
- broadcast "&b%attacker% &7is now on a kill streak of &b&l3&7!"
- else if {killstreak::%attacker%} is equal to 5:
- broadcast "&b%attacker% &7is now on a kill streak of &b&l5&7!"
- else if {killstreak::%attacker%} is equal to 10:
- broadcast "&b%attacker% &7is now on a kill streak of &b&l10&7!"
- heal the victim
- if {xp::%attacker%} is greater than or equal to {xpneeded::%player%}:
- add 1 to {level::%player%}
- set {xp::%player%} to 0
- wait 1 tick
- set {xpneeded::%player%} to {xpneeded::%player%}+({xpneeded::%player%}*0.25)
- wait 1 tick
- set {xpneeded::%player%} to round({xpneeded::%player%})
- wait 1 tick
- send player title "&3&lLEVEL UP" with subtitle "&7You are now level &b%{level::%player%}%" for 2 seconds
- else:
- set action bar of attacker to "&7You dealt &c%damage%&4❤ &7to &b%victim%"
- execute console command "/playsound minecraft:entity.enderdragon.hurt master %attacker% ~ ~ ~ 1000 2"
- every 2 seconds:
- loop all players:
- wipe loop-player's sidebar
- set name of sidebar of loop-player to "&b&lEFFORT"
- set score "" in sidebar of loop-player to 10
- set score " &3Player Stats" in sidebar of loop-player to 9
- set score "&r" in sidebar of loop-player to 8
- set score "&fTokens: &b%{tokens::%loop-player%}%❂" in sidebar of loop-player to 7
- set score "&fKills: &b%{kills::%loop-player%}%" in sidebar of loop-player to 6
- set score "&fDeaths: &b%{deaths::%loop-player%}%" in sidebar of loop-player to 5
- set score "&fLevel: &b%{level::%loop-player%}%" in sidebar of loop-player to 4
- set score "&fXP: &b%{xp::%loop-player%}%&f/&b%{xpneeded::%loop-player%}%" in sidebar of loop-player to 3
- set {kdr::%loop-player%} to ({kills::%loop-player%}/{deaths::%loop-player%})
- set score "&fKDR: &b%{kdr::%loop-player%}%" in sidebar of loop-player to 2
- set score "&r&r" in sidebar of loop-player to 1
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement