Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- on damage of player:
- victim's gamemode is not creative
- if {SpecInfo.LastDamage::%victim%} is set:
- if {SpecInfo.LastDamage::%victim%} was less than 0.15 seconds ago:
- stop
- set {SpecInfo.LastDamage::%victim%} to now
- set {_Damage} to (health of victim)
- wait 1 tick
- set {_Damage} to {_Damage}-(health of victim)
- if {_Damage} is equal to 0:
- stop
- if attacker is a player:
- if damage was caused by projectile:
- if projectile is an arrow:
- loop all players:
- {SpecInfo.Enabled::%loop-player%} is true
- message "{@Prefix.Short} {@PvP.Bow}" to loop-player
- else:
- loop all players:
- {SpecInfo.Enabled::%loop-player%} is true
- message "{@Prefix.Short} {@PvP.ProjectileUnknown}" to loop-player
- else:
- if damage was caused by attack:
- loop all players:
- {SpecInfo.Enabled::%loop-player%} is true
- message "{@Prefix.Short} {@PvP.Melee}" to loop-player
- else:
- loop all players:
- {SpecInfo.Enabled::%loop-player%} is true
- message "{@Prefix.Short} {@PvP.Unknown}" to loop-player
- else if attacker is not set:
- if damage was caused by fall:
- loop all players:
- {SpecInfo.Enabled::%loop-player%} is true
- message "{@Prefix.Short} {@PvE.NS.Fall}" to loop-player
- else if damage was caused by lava:
- loop all players:
- {SpecInfo.Enabled::%loop-player%} is true
- message "{@Prefix.Short} {@PvE.NS.Lava}" to loop-player
- else if damage was caused by fire:
- loop all players:
- {SpecInfo.Enabled::%loop-player%} is true
- message "{@Prefix.Short} {@PvE.NS.Fire}" to loop-player
- else if damage was caused by burning:
- loop all players:
- {SpecInfo.Enabled::%loop-player%} is true
- message "{@Prefix.Short} {@PvE.NS.Burning}" to loop-player
- else if damage was caused by drowning:
- loop all players:
- {SpecInfo.Enabled::%loop-player%} is true
- message "{@Prefix.Short} {@PvE.NS.Drowning}" to loop-player
- else if damage was caused by poison:
- loop all players:
- {SpecInfo.Enabled::%loop-player%} is true
- message "{@Prefix.Short} {@PvE.NS.Poison}" to loop-player
- else if damage was caused by wither:
- loop all players:
- {SpecInfo.Enabled::%loop-player%} is true
- message "{@Prefix.Short} {@PvE.NS.Wither}" to loop-player
- else if damage was caused by starvation:
- loop all players:
- {SpecInfo.Enabled::%loop-player%} is true
- message "{@Prefix.Short} {@PvE.NS.Starvation}" to loop-player
- else if damage was caused by suffocation:
- loop all players:
- {SpecInfo.Enabled::%loop-player%} is true
- message "{@Prefix.Short} {@PvE.NS.Suffocation}" to loop-player
- else if damage was caused by falling block:
- loop all players:
- {SpecInfo.Enabled::%loop-player%} is true
- message "{@Prefix.Short} {@PvE.NS.Anvil}" to loop-player
- else:
- loop all players:
- {SpecInfo.Enabled::%loop-player%} is true
- message "{@Prefix.Short} {@PvE.NS}" to loop-player
- else:
- if attacker is a zombie:
- loop all players:
- {SpecInfo.Enabled::%loop-player%} is true
- message "{@Prefix.Short} {@PvE.Zombie}" to loop-player
- else if attacker is a skeleton:
- loop all players:
- {SpecInfo.Enabled::%loop-player%} is true
- message "{@Prefix.Short} {@PvE.Skeleton}" to loop-player
- else if attacker is a spider:
- loop all players:
- {SpecInfo.Enabled::%loop-player%} is true
- message "{@Prefix.Short} {@PvE.Spider}" to loop-player
- else if attacker is a creeper:
- loop all players:
- {SpecInfo.Enabled::%loop-player%} is true
- message "{@Prefix.Short} {@PvE.Creeper}" to loop-player
- else if attacker is a enderman:
- loop all players:
- {SpecInfo.Enabled::%loop-player%} is true
- message "{@Prefix.Short} {@PvE.Enderman}" to loop-player
- else if attacker is a silverfish:
- loop all players:
- {SpecInfo.Enabled::%loop-player%} is true
- message "{@Prefix.Short} {@PvE.Silverfish}" to loop-player
- else if attacker is a slime:
- loop all players:
- {SpecInfo.Enabled::%loop-player%} is true
- message "{@Prefix.Short} {@PvE.Slime}" to loop-player
- else if attacker is a witch:
- loop all players:
- {SpecInfo.Enabled::%loop-player%} is true
- message "{@Prefix.Short} {@PvE.Witch}" to loop-player
- else if attacker is a ghast:
- loop all players:
- {SpecInfo.Enabled::%loop-player%} is true
- message "{@Prefix.Short} {@PvE.Ghast}" to loop-player
- else if attacker is a blaze:
- loop all players:
- {SpecInfo.Enabled::%loop-player%} is true
- message "{@Prefix.Short} {@PvE.Blaze}" to loop-player
- else if attacker is a magma cube:
- loop all players:
- {SpecInfo.Enabled::%loop-player%} is true
- message "{@Prefix.Short} {@PvE.MCube}" to loop-player
- else if attacker is a zombie pigman:
- loop all players:
- {SpecInfo.Enabled::%loop-player%} is true
- message "{@Prefix.Short} {@PvE.Pigman}" to loop-player
- else:
- loop all players:
- {SpecInfo.Enabled::%loop-player%} is true
- message "{@Prefix.Short} {@PvE}" to loop-player
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement