Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- options:
- Prefix: &f[&7SpecInfo&f]&r
- Prefix.Short: &f[&9S&f]&r
- PermissionDeny: No permission!
- Gold: &7%player%&r:&6GOLD &r[V:&6%{_Count}%&r] [T:&6%({SpecInfo.Mined.Gold::%player%})%&r]
- Diamond: &7%player%&r:&3DIAMOND &r[V:&3%{_Count}%&r] [T:&3%({SpecInfo.Mined.Diamond::%player%})%&r]
- PvP.Bow: &4PvP&r:&a%attacker%&r-B>&c%victim% &r[&a%health of attacker%&r:&c%health of victim%&r] [&6%{_Damage}%&r]
- PvP.Melee: &4PvP&r:&a%attacker%&r-M>&c%victim% &r[&a%health of attacker%&r:&c%health of victim%&r] [&6%{_Damage}%&r]
- PvP.ProjectileUnknown: &4PvP&r:&a%attacker%&r-?P>&c%victim% &r[&a%health of attacker%&r:&c%health of victim%&r] [&6%{_Damage}%&r]
- PvP.Unknown: &4PvP&r:&a%attacker%&r-?>&c%victim% &r[&a%health of attacker%&r:&c%health of victim%&r] [&6%{_Damage}%&r]
- PvE.NS.Fall: &5PvE&r:&c%victim%&r<-&dFall &r[&c%health of victim%&r] [&6%{_Damage}%&r]
- PvE.NS.Lava: &5PvE&r:&c%victim%&r<-&dLava &r[&c%health of victim%&r] [&6%{_Damage}%&r]
- PvE.NS.Fire: &5PvE&r:&c%victim%&r<-&dFire &r[&c%health of victim%&r] [&6%{_Damage}%&r]
- PvE.NS.Burning: &5PvE&r:&c%victim%&r<-&dBurn &r[&c%health of victim%&r] [&6%{_Damage}%&r]
- PvE.NS.Drowning: &5PvE&r:&c%victim%&r<-&dDrown &r[&c%health of victim%&r] [&6%{_Damage}%&r]
- PvE.NS.Poison: &5PvE&r:&c%victim%&r<-&dPoison &r[&c%health of victim%&r] [&6%{_Damage}%&r]
- PvE.NS.Wither: &5PvE&r:&c%victim%&r<-&dWither &r[&c%health of victim%&r] [&6%{_Damage}%&r]
- PvE.NS.Starvation: &5PvE&r:&c%victim%&r<-&dStarv. &r[&c%health of victim%&r] [&6%{_Damage}%&r]
- PvE.NS.Suffocation: &5PvE&r:&c%victim%&r<-&dSuffoc. &r[&c%health of victim%&r] [&6%{_Damage}%&r]
- PvE.NS.Anvil: &5PvE&r:&c%victim%&r<-&dAnvil &r[&c%health of victim%&r] [&6%{_Damage}%&r]
- PvE.NS: &5PvE&r:&c%victim%&r<-&d??? &r[&c%health of victim%&r] [&6%{_Damage}%&r]
- PvE.Zombie: &5PvE&r:&c%victim%&r<-&dZombie &r[&c%health of victim%&r] [&6%{_Damage}%&r]
- PvE.Skeleton: &5PvE&r:&c%victim%&r<-&dSkeleton &r[&c%health of victim%&r] [&6%{_Damage}%&r]
- PvE.Spider: &5PvE&r:&c%victim%&r<-&dSpider &r[&c%health of victim%&r] [&6%{_Damage}%&r]
- PvE.Creeper: &5PvE&r:&c%victim%&r<-&dCreeper &r[&c%health of victim%&r] [&6%{_Damage}%&r]
- PvE.Enderman: &5PvE&r:&c%victim%&r<-&dEnderman &r[&c%health of victim%&r] [&6%{_Damage}%&r]
- PvE.Silverfish: &5PvE&r:&c%victim%&r<-&dSilverfish &r[&c%health of victim%&r] [&6%{_Damage}%&r]
- PvE.Slime: &5PvE&r:&c%victim%&r<-&dSlime &r[&c%health of victim%&r] [&6%{_Damage}%&r]
- PvE.Witch: &5PvE&r:&c%victim%&r<-&dWitch &r[&c%health of victim%&r] [&6%{_Damage}%&r]
- PvE.Ghast: &5PvE&r:&c%victim%&r<-&dGhast &r[&c%health of victim%&r] [&6%{_Damage}%&r]
- PvE.Blaze: &5PvE&r:&c%victim%&r<-&dBlaze &r[&c%health of victim%&r] [&6%{_Damage}%&r]
- PvE.MCube: &5PvE&r:&c%victim%&r<-&dMCube &r[&c%health of victim%&r] [&6%{_Damage}%&r]
- PvE.Pigman: &5PvE&r:&c%victim%&r<-&dPigman &r[&c%health of victim%&r] [&6%{_Damage}%&r]
- PvE: &5PvE&r:&c%victim%&r<-&d?%attacker% &r[&c%health of victim%&r] [&6%{_Damage}%&r]
- Craft.GoldenApple: &2Craft&r: &a%player%&r<->&6Golden Apple
- Craft.GoldenHead: &2Craft&r: &a%player%&r<->&5Golden Head
- Craft.NotchApple: &2Craft&r: &a%player%&r<->&6&lUBER APPLE
- Craft.EnchantTable: &2Craft&r: &a%player%&r<->&dEnchanting Table
- Craft.Anvil: &2Craft&r: &a%player%&r<->&7Anvil
- Craft.Diamond.Helmet: &2Craft&r: &a%player%&r<->&bDia. Helmet
- Craft.Diamond.Chest: &2Craft&r: &a%player%&r<->&bDia. Chest
- Craft.Diamond.Leggings: &2Craft&r: &a%player%&r<->&bDia. Leggings
- Craft.Diamond.Boots: &2Craft&r: &a%player%&r<->&bDia. Boots
- Heal.Apple: &aHeal: &6%player%&r<->&6Golden Apple
- Heal.Head: &aHeal: &6%player%&r<->&5Golden Head
- Portal: &dPortal:&r&6%player% &rfrom &a%{_from}% &rto &c%world of player%
- ConsoleDeny: You cannot execute this as the console!
- On.Already: Your &6SpecInfo &ris already &aon&r!
- On.ToSender: Your &6SpecInfo &ris now &aon&r!
- On.Notify: &c%command sender% &aenabled &rhis &6SpecInfo&r!
- Off.Already: Your &6SpecInfo &ris already &coff&r!
- Off.ToSender: Your &6SpecInfo &ris now &coff&r!
- Off.Notify: &c%command sender% &cdisabled &rhis &6SpecInfo&r!
- Reset.ToSender: You reset the &6SpecInfo&r!
- Reset.Notify: &c%command sender% &rreset the &6SpecInfo&r!
- Help.Help: &e/specinfo help &9- &7This help page
- Help.On: &e/specinfo on &9- &7Turn your SpecInfo on
- Help.Off: &e/specinfo off &9- &7Turn your SpecInfo off
- Help.Reset: &e/specinfo reset &9- &7Reset the SpecInfo
- # variables
- # {SpecInfo.Mined.Gold::%player%} - integer
- # {SpecInfo.Mined.Diamond::%player%} - integer
- # {SpecInfo.TrackedBlock::%x%x%y%x%z%} - true/null
- # {SpecInfo.LastDamage::%player%} - system time
- # {SpecInfo.Enabled::%player%} - player has specinfo on
- command /specinfo [<text>]:
- description: Specinfo command
- trigger:
- if arg 1 is not set:
- command sender command "/specinfo help"
- else if arg 1 is equal to "help":
- if command sender does not have the permission "skript.specinfo.help":
- message "{@PermissionDeny}"
- else:
- message "{@Help.Help}"
- message "{@Help.On}"
- message "{@Help.Off}"
- message "{@Help.Reset}"
- else if arg 1 is equal to "on":
- #code for on
- if command sender does not have the permission "skript.specinfo.on":
- message "{@PermissionDeny}"
- else if command sender is console:
- message "{@ConsoleDeny}"
- else if {SpecInfo.Enabled::%player%} is true:
- message "{@Prefix} {@On.Already}"
- else:
- set {SpecInfo.Enabled::%player%} to true
- message "{@Prefix} {@On.ToSender}"
- loop all players:
- loop-player has the permission "skript.specinfo.notify"
- loop-player is not command sender
- message "{@Prefix} {@On.Notify}" to loop-player
- else if arg 1 is equal to "off":
- #code for off
- if command sender does not have the permission "skript.specinfo.off":
- message "{@PermissionDeny}"
- else if command sender is console:
- message "{@ConsoleDeny}"
- else if {SpecInfo.Enabled::%player%} is not set:
- message "{@Prefix} {@Off.Already}"
- else:
- delete {SpecInfo.Enabled::%player%}
- message "{@Prefix} {@Off.ToSender}"
- loop all players:
- loop-player has the permission "skript.specinfo.notify"
- loop-player is not command sender
- message "{@Prefix} {@Off.Notify}" to loop-player
- else if arg 1 is equal to "reset":
- #code for reset
- if command sender does not have the permission "skript.specinfo.reset":
- message "{@PermissionDeny}"
- else:
- delete {SpecInfo.Mined.Gold::*}
- delete {SpecInfo.Mined.Diamond::*}
- delete {SpecInfo.TrackedBlock::*}
- delete {SpecInfo.LastDamage::*}
- delete {SpecInfo.Enabled::*}
- message "{@Prefix} {@Reset.ToSender}"
- loop all players:
- loop-player has the permission "skript.specinfo.notify"
- loop-player is not command sender
- message "{@Prefix} {@Reset.Notify}" to loop-player
- else:
- command sender command "/specinfo help"
- on mine of gold ore:
- {SpecInfo.TrackedBlock::%x-coordinate of event-block%x%y-coordinate of event-block%x%z-coordinate of event-block%} is not set
- set {_Count} to 0
- loop blocks in radius 2 around event-block:
- loop-block is equal to gold ore
- increase {_Count} by 1
- set {SpecInfo.TrackedBlock::%x-coordinate of loop-block%x%y-coordinate of loop-block%x%z-coordinate of loop-block%} to true
- if {SpecInfo.Mined.Gold::%player%} is not set:
- set {SpecInfo.Mined.Gold::%player%} to {_Count}
- else:
- increase {SpecInfo.Mined.Gold::%player%} by {_Count}
- loop all players:
- {SpecInfo.Enabled::%loop-player%} is true
- message "{@Prefix.Short} {@Gold}" to loop-player
- command "/playsound note.bassattack %loop-player%"
- on mine of diamond ore:
- {SpecInfo.TrackedBlock::%x-coordinate of event-block%x%y-coordinate of event-block%x%z-coordinate of event-block%} is not set
- set {_Count} to 0
- loop blocks in radius 2 around event-block:
- loop-block is equal to diamond ore
- increase {_Count} by 1
- set {SpecInfo.TrackedBlock::%x-coordinate of loop-block%x%y-coordinate of loop-block%x%z-coordinate of loop-block%} to true
- if {SpecInfo.Mined.Diamond::%player%} is not set:
- set {SpecInfo.Mined.Diamond::%player%} to {_Count}
- else:
- increase {SpecInfo.Mined.Diamond::%player%} by {_Count}
- loop all players:
- {SpecInfo.Enabled::%loop-player%} is true
- message "{@Prefix.Short} {@Diamond}" to loop-player
- command "/playsound note.harp %loop-player%"
- 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
- on portal:
- player's gamemode is not creative
- set {_from} to world of player
- wait 2 ticks
- loop all players:
- {SpecInfo.Enabled::%loop-player%} is true
- message "{@Prefix.Short} {@Portal}" to loop-player
- on craft:
- if event-item is golden apple item:
- player's gamemode is not creative
- if (name of event-item) is not set:
- loop all players:
- {SpecInfo.Enabled::%loop-player%} is true
- message "{@Prefix.Short} {@Craft.GoldenApple}" to loop-player
- else:
- loop all players:
- {SpecInfo.Enabled::%loop-player%} is true
- message "{@Prefix.Short} {@Craft.GoldenHead}" to loop-player
- if event-item is enchanted golden apple:
- player's gamemode is not creative
- loop all players:
- {SpecInfo.Enabled::%loop-player%} is true
- message "{@Prefix.Short} {@Craft.NotchApple}" to loop-player
- else if event-item is enchantment table:
- player's gamemode is not creative
- loop all players:
- {SpecInfo.Enabled::%loop-player%} is true
- message "{@Prefix.Short} {@Craft.EnchantTable}" to loop-player
- else if event-item is diamond helmet:
- player's gamemode is not creative
- loop all players:
- {SpecInfo.Enabled::%loop-player%} is true
- message "{@Prefix.Short} {@Craft.Diamond.Helmet}" to loop-player
- else if event-item is diamond chestplate:
- player's gamemode is not creative
- loop all players:
- {SpecInfo.Enabled::%loop-player%} is true
- message "{@Prefix.Short} {@Craft.Diamond.Chest}" to loop-player
- else if event-item is diamond leggings:
- player's gamemode is not creative
- loop all players:
- {SpecInfo.Enabled::%loop-player%} is true
- message "{@Prefix.Short} {@Craft.Diamond.Leggings}" to loop-player
- else if event-item is diamond boots:
- player's gamemode is not creative
- loop all players:
- {SpecInfo.Enabled::%loop-player%} is true
- message "{@Prefix.Short} {@Craft.Diamond.Boots}" to loop-player
- on eat:
- event-item is golden apple item
- player's gamemode is not creative
- if (name of event-item) is not set:
- loop all players:
- {SpecInfo.Enabled::%loop-player%} is true
- message "{@Prefix.Short} {@Heal.Apple}" to loop-player
- else:
- loop all players:
- {SpecInfo.Enabled::%loop-player%} is true
- message "{@Prefix.Short} {@Heal.Head}" to loop-player
Advertisement
Add Comment
Please, Sign In to add comment