Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- on load:
- set {speed} to 1
- set {hackspeed} to 5
- set {breaks} to 4
- set {dirtbreaks} to 6
- set {defspeed02} to 0.3
- set {number.2} to 2
- on damage of player:
- #REACH
- attacker is a player
- projectile doesn't exist
- if distance between attacker and victim is greater than 3:
- cancel event
- on walk on water:
- block at player is air
- block under player is water
- wait 5 ticks
- block under player is water
- wait 1 tick
- block at player is air
- block under player is water
- teleport player to block under player
- send "&6[&cWarthog&6] &9There was only one Jesus... You're not the choosen one!" to player
- on any movement:
- if {%player%.moving} is not set:
- set {%player%.moving} to true
- wait 10 ticks
- delete {%player%.moving}
- if {%player%.jumping} is not set:
- set {%player%.alty} to player's altitude
- wait 2 ticks
- if {%player%.alty} is less than player's altitude:
- set {%player%.jumping} to true
- wait 10 ticks
- delete {%player%.jumping}
- #NO SLOWDOWN
- block under player is not air:
- block at player's position is not air:
- set {%player%.groundpos} to player's position
- block under player is soulsand:
- player has potion of speed:
- stop
- player's walking speed is bigger than or equal to {defspeed02}:
- kick player due to "&6[&cWarthog&6] &9Got your soul! No, really... Hacking is not allowed on this server!"
- #FINALLY SUCCESSFUL FLYHACK BLOCKING
- player's gamemode is not creative:
- if player's fly mode is not true:
- player has permission "warthog.fly":
- add 1 to {warthog.novalue}
- else:
- set {%player%.yy} to player's altitude
- set {_block} to block at player
- set {_block2} to block under {_block}
- if {_block2} is not air:
- set {%player%.fly} to false
- stop
- else:
- wait 2 ticks
- set {_block} to block at player
- set {_block2} to block under {_block}
- if {_block2} is air or sugar cane:
- if {%player%.yy} is less than or equal to player's altitude:
- wait 3 ticks
- if {%player%.yy} is less than or equal to player's altitude:
- set {_block} to block at player
- set {_block2} to block under {_block}
- if {_block2} is air or sugar cane:
- wait 3 ticks
- if {%player%.yy} is less than or equal to player's altitude:
- wait 3 ticks
- if {%player%.yy} is less than or equal to player's altitude:
- set {_block} to block at player
- set {_block2} to block under {_block}
- if {_block2} is air or sugar cane:
- set {%player%.fly} to true
- delete {warthog.novalue}
- else:
- set {%player%.fly} to false
- if {%player%.fly} is true:
- if {%player%.groundpos} is set:
- teleport player to {%player%.groundpos}
- else:
- loop blocks under player:
- loop-block is not air:
- block above loop-block is air:
- teleport player to loop-block
- on chat:
- #VULGAR
- if message contains "cunt", "bitch", "motherfucker", "fucker", "fuck", "dildo", "son of bitch", "idiot", "kid" or "shit":
- cancel event
- kick player due to "&6[&cWarthog&6] &9You should not use vulgars!"
- broadcast "&6[&cWarthog&6] &9%player% was kicked due to using vulgar language."
- on tool change:
- set {%player%.changedtool} to true
- wait 2 ticks
- clear {%player%.changedtool}
- on leftclick:
- wait 1 tick
- if {%player%.changedtool} is true:
- kick player due to "&6[&cWarthog&6] How amazing! You just switched your tool 0.05 seconds after you clicked! Seems legit..."
- clear {%player%.changedtool}
- on mine of stone or any ore:
- #FAST BREAK
- player has wood pickaxe in hand:
- tool is not enchanted
- add 1 to {%player%.breaks}
- wait 20 ticks
- {%player%.breaks} is bigger than {breaks}:
- clear {%player%.breaks}
- kick player due to "&6[&cWarthog&6] &9Seems sooooo legit..."
- else:
- clear {%player%.breaks}
- player has stone pickaxe in hand:
- tool is not enchanted
- add 1 to {%player%.breaks}
- wait 20 ticks
- {%player%.breaks} is bigger than {breaks}+1:
- clear {%player%.breaks}
- kick player due to "&6[&cWarthog&6] &9Seems sooooo legit..."
- else:
- clear {%player%.breaks}
- player has iron pickaxe in hand:
- tool is not enchanted
- add 1 to {%player%.breaks}
- wait 20 ticks
- {%player%.breaks} is bigger than {breaks}+2:
- clear {%player%.breaks}
- kick player due to "&6[&cWarthog&6] &9Seems sooooo legit..."
- else:
- clear {%player%.breaks}
- player has gold pickaxe in hand:
- tool is not enchanted
- add 1 to {%player%.breaks}
- wait 20 ticks
- {%player%.breaks} is bigger than {breaks}+4:
- clear {%player%.breaks}
- kick player due to "&6[&cWarthog&6] &9Seems sooooo legit..."
- else:
- clear {%player%.breaks}
- player has diamond pickaxe in hand:
- tool is not enchanted
- add 1 to {%player%.breaks}
- wait 20 ticks
- {%player%.breaks} is bigger than {breaks}+3:
- clear {%player%.breaks}
- kick player due to "&6[&cWarthog&6] &9Seems sooooo legit..."
- else:
- clear {%player%.breaks}
- on mine of dirt, gravel, sand or netherrack:
- #FAST BREAK
- player has any shovel in hand:
- tool is not enchanted
- add 1 to {%player%.dirtbreaks}
- wait 20 ticks
- {%player%.dirtbreaks} is bigger than {dirtbreaks}:
- clear {%player%.dirtbreaks}
- kick player due to "&6[&cWarthog&6] &9Seems sooooo legit..."
- else:
- clear {%player%.dirtbreaks}
- on unstore:
- #AUTO-LOOT
- if {%player%.unstore} is not set:
- set {%player%.unstore} to 1
- else:
- add 1 to {%player%.unstore}
- wait 5 ticks
- if {%player%.unstore} is bigger than 2:
- kick player due to "&6[&cWarthog&6] &9Can't you just take those items one by one?!"
- clear {%player%.unstore.start}
- clear {%player%.unstore}
- else:
- clear {%player%.unstore.start}
- clear {%player%.unstore}
- on quit:
- clear {%player%.groundpos}
- clear {%player%.fly}
- on damage:
- if {%attacker%.chicken} is not set:
- set {_pos} to position of block 1.7 meters above attacker's head
- spawn chicken at {_pos}
- set name of spawned chicken to "KA"
- set {_trap} to spawned chicken
- set {%attacker%.chicken} to true
- hide spawned chicken from all players
- reveal spawned chicken to attacker
- wait 3 seconds
- clear {%attacker%.chicken}
- loop 14 times:
- wait 2 ticks
- push spawned chicken backwards at speed 0.1
- set {_pos} to position of block 1.7 meters above attacker's head
- teleport spawned chicken to {_pos}
- set {_pos} to position of block 1.7 meters above attacker's head
- if {%attacker%.moving} is true:
- push spawned chicken in direction of attacker at speed 0.13
- if attacker is sprinting:
- push spawned chicken in direction of attacker at speed 0.19
- else:
- push spawned chicken in direction of attacker at speed 0.06
- add 1 to {_loop}
- if {_loop} is 13:
- hide {_trap} to attacker
- teleport {_trap} to position of block 10 meters under attacker
- kill {_trap}
- if spawned chicken is dead:
- hide spawned chicken to attacker
- if name of victim is "KA":
- kick attacker due to "&6[&cWarthog&6] &9Your skills are awesome. However... What would you do without Kill Aura?"
Add Comment
Please, Sign In to add comment