Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # Hydra AntiCheat from the developers of WASP AntiCheat know as xXPureLifeXx#4033, _LkZ#9628
- # Detections: Killaura, Fly, Speed, Reach, SelfHurt, NoFall and AirWalk (More Coming Soon)
- # Main Developer: _LkZ
- # Developer: xXPureLifeXx
- # find our terms of use and more updates at: https://hydra-anticheat.carrd.co
- # the guy who like fixed all the lag and added 3 new epic detections: dnadany (https://discord.gg/6RFZYxt)
- options:
- version: 1.2
- NoPermission: &c&lHydra &8>> &4Invalid Permission!
- chatCoolDownMessage: &c&lHydra &8>> &4There is a 3 second delay between every message!
- variables:
- eula: false
- kick_10_alerts: true
- command /hydra [<text>] [<offline player>]:
- permission: hydra.command.command
- permission message: {@NoPermission}
- trigger:
- if arg 1 is not set:
- send "&c&lHydra &8>> &c/hydra help"
- if arg 1 is "help":
- send "&c&lHydra AntiCheat. &fMade by _LkZ, and xXPureLifeXx"
- send "&c/hydra help"
- send "&c/hydra freeze <player>"
- send "&c/hydra alerts <player>"
- if arg 1 is "freeze":
- if arg 2 is set:
- if player has permission "hydra.command.freeze":
- if {freezed::%arg 2%} is false:
- set {freezed.%arg 2%} to true
- send "&c&lHydra &8>> &c%arg 2%&f is now frozen!"
- else:
- set {freezed::%arg 2%} to false
- send "&c&lHydra &8>> &c%arg 2% is no longer frozen!"
- else:
- send "{@NoPermission}"
- if arg 1 is "alerts":
- if arg 2 is set:
- if player has permission "hydra.command.logs":
- send "&cAuto Clicker Logs: %{autoclickerlogs::%arg 2%}%"
- send "&cKillaura logs: %{killauralogs::%arg 2%}%"
- send "&cSpeed / Flight Logs: %{speedalerts::%arg 2%}%"
- send "&cReach Logs: %{reachalerts::%arg 2%}%"
- send "&cAnti Knockback Logs: %{antikbalerts::%arg 2%}%"
- send "&cFast Bow Logs: %{fastbowalerts::%arg 2%}%"
- else:
- send "{@NoPermission}"
- else:
- send "&c&lHydra &8>> &cPlease specify a player!"
- every 30 seconds:
- delete {alerts::*}
- on left click:
- add 1 to {killaura::%player%}
- if {killaura::%player%} >= 20:
- set {_ping} to player's ping
- send "&c&lHydra &8>> &c%player%&f has failed Auto Clicking (&c%{_ping}%&c MS&f) (%{killaura::%player%}%&c&l CPS" to all players where [player input has permission "hydra.logs"]
- add 1 to {autoclickerlogs::%player%}
- execute console command "auratest %player%"
- add 1 to {alerts::%player%}
- if {alerts::%player%} >= 10:
- kick player due to "&c&lHydra &8>> &cCheating"
- on left click:
- add 1 to {clickauratest::%player%}
- if {clickauratest::%player%} >= 13:
- execute console command "auratest %player%"
- every 1 second:
- delete {clickauratest::*}
- delete {killaura::*}
- command /ka [<text>]:
- trigger:
- if {invtget::%player%} is true:
- if arg 1 is "<none>":
- add 1 to {invt::%player%}
- if {invt::%player%} > 3:
- set {_ping} to player's ping
- send "&c&lHydra &8>> &c%player% has failed &cInvalid Target&f. (&c%{_ping}%&f)" to all players where [player input has permission "hydra.logs"]
- add 1 to {killauralogs::%player%}
- add 1 to {alerts::%player%}
- if {alerts::%player%} >= 10:
- kick player due to "&c&lHydra &8>> &cCheating"
- else:
- stop
- on damage:
- set {invtget::%attacker%} to true
- wait 2 ticks
- set {invtget::%attacker%} to false
- on left click:
- if {invtget::%player%} is true:
- make player execute command "ka %targeted entity%"
- on damage:
- add 1 to {hits::%attacker%}
- on left click:
- add 1 to {leftclicks::%player%}
- on death:
- if {hits::%attacker%} = {leftclicks::%attacker%}:
- execute console command "auratest %attacker%"
- command /auratest [<player>]:
- permission: hydra.command.auratest
- permission message: &c&lHydra >> No Permissions
- trigger:
- if {auratest.%arg 1%} is false:
- set {loc} to location behind arg 1
- set {attacker} to arg 1
- set {auratest.%arg 1%} to true
- spawn a zombie at {loc}
- set {bot} to last spawned entity
- wait 5 ticks
- set {auratest.%arg 1%} to false
- delete last spawned entity
- on damage:
- if attacker is {attacker}:
- if victim is {bot}:
- delete {bot}
- set {_ping} to attacker's ping
- send "&c&lHydra &r&8>> &c%attacker%&f has failed KillAura. (&c%{_ping}%&c MS&f)" to all players where [player input has permission "hydra.logs"]
- add 1 to {killauralogs::%attacker%}
- add 1 to {alerts::%attacker%}
- if {alerts::%attacker%} >= 10:
- kick attacker due to "&c&lHydra &8>> &cCheating"
- else:
- if victim is {bot}:
- cancel event
- on any move:
- player is not flying
- block below player is air
- block north below player is air
- block south below player is air
- block west below player is air
- block east below player is air
- block north east below player is air
- block south east below player is air
- block north west below player is air
- block south west below player is air
- the gliding state of player is true:
- player's chestplate is elytra:
- stop
- else:
- block under player is air
- player is on ground
- set {_y} to player's y coordinate
- wait 1 tick
- set {_ping} to player's ping
- set {_y.2} to player's y coordinate
- if {_y} > {_y.2}:
- send "&c&lHydra &8>> &c%player%&f has failed Fly. (&c%{_ping}%&c MS&f)" to all players where [player input has permission "hydra.logs"]
- else if {_y} = {_y.2}:
- send "&c&lHydra &8>> &c%player%&f has failed AirWalk. (&c%{_ping}%&c MS&f)" to all players where [player input has permission "hydra.logs"]
- else if {_y} > {_y.2}:
- send "&c&lHydra &8>> &c%player%&f has failed NoFall. (&c%{_ping}%&c MS&f)" to all players where [player input has permission "hydra.logs"]
- teleport player to {flysetback::%player%}
- on any move:
- player is not flying
- player's gamemode is not creative
- block below player is air
- block north below player is air
- block south below player is air
- block west below player is air
- block east below player is air
- block north east below player is air
- block south east below player is air
- block north west below player is air
- block south west below player is air
- player is not on ground
- the gliding state of player is true:
- player's chestplate is elytra:
- stop
- set {fly::%player%} to 0
- else:
- set {ylocation::%player%} to the y location of player
- set {flysetback::%player%} to location of the player
- wait 2 ticks
- set {ylocation2::%player%} to the y location of player
- wait 1 tick
- if difference between {ylocation::%player%} and {ylocation2::%player%} = 0:
- add 1 to {fly::%player%}
- if {fly::%player%} > 4:
- teleport player to {flysetback::%player%}
- set {_ping} to player's ping
- send "&c&lHydra &8>> &c%player%&f has failed Flight. (&c%{_ping}%&c MS&f)" to all players where [player input has permission "hydra.logs"]
- add 1 to {speedalerts::%player%}
- add 1 to {alerts::%player%}
- if {alerts::%player%} >= 10:
- kick player due to "&c&lHydra &8>> &cCheating"
- every 2 seconds:
- delete {fly::*}
- on flight toggle:
- if {speedcheck::%player%} is true:
- set {speedcheck::%player%} to false
- else:
- wait 15 seconds
- set {speedcheck::%player%} to true
- on any move:
- player's gamemode is not creative
- player is not flying
- set {y::%player%} to the y location of player
- set {ysetback::%player%} to location of the player
- wait 5 ticks
- set {y1::%player%} to the y location of player
- wait 1 tick
- set {_diffyy::%player%} to difference between {y::%player%} and {y1::%player%}
- wait 1 tick
- player is not on ground
- if {_diffyy::%player%} >= 2:
- set {_ping} to player's ping
- teleport player to {ysetback::%player%}
- send "&c&lHydra &8>> &c%player% has failed Y-Fly. (&c%{_ping}%&c MS&f)." to all players where [player input has permission "hydra.logs"]
- on any move:
- player doesn't have speed
- if {speedcheck::%player%} is true:
- set {_loc::%player%} to the x location of player
- set {speedsetback::%player%} to location of the player
- wait 5 ticks
- set {_loc1::%player%} to the x location of player
- wait 1 tick
- set {_diffyx::%player%} to difference between {_loc::%player%} and {_loc1::%player%}
- if difference between {_loc::%player%} and {_loc1::%player%} >= 3.7:
- player's gamemode is not creative
- player is not flying
- add 1 to {speed::%player%}
- if {speed::%player%} >= 3:
- teleport player to {speedsetback::%player%}
- set {_ping} to player's ping
- send "&c&lHydra &8>> &c%player% &fhas failed Speed. (&c%{_ping}%&c MS&f) (&c%{_diffyx::%player%}% Blocks Per Second)." to all players where [player input has permission "hydra.logs"]
- add 1 to {speedalerts::%player%}
- add 1 to {alerts::%player%}
- if {alerts::%player%} >= 10:
- kick player due to "&c&lHydra &8>> &cCheating"
- on any move:
- player doesn't have speed
- if {speedcheck::%player%} is true:
- set {_locz::%player%} to the z location of player
- set {speedsetback::%player%} to location of the player
- wait 5 ticks
- set {_loc1z::%player%} to the z location of player
- wait 1 tick
- set {_diffy::%player%} to difference between {_locz::%player%} and {_loc1z::%player%}
- if difference between {_locz::%player%} and {_loc1z::%player%} >= 3.7:
- player's gamemode is not creative
- player is not flying
- add 1 to {speed::%player%}
- if {speed::%player%} >= 3:
- teleport player to {speedsetback::%player%}
- set {_ping} to player's ping
- send "&c&lHydra &8>> &c%player% &fhas failed Speed. (&c%{_ping}%&c MS&f) (&c%{_diffy::%player%}%&c Blocks Per Second&f)." to all players where [player input has permission "hydra.logs"]
- add 1 to {speedalerts::%player%}
- add 1 to {alerts::%player%}
- if {alerts::%player%} >= 10:
- kick player due to "&c&lHydra &8>> &cCheating"
- on damage:
- attacker is a player
- set {_reach} to distance between attacker and victim
- if {_reach} > 4:
- if damage cause is not a projectile:
- attacker's gamemode is not creative:
- cancel event
- set {_ping} to attacker's ping
- send "&c&lHydra &8>> &c%attacker% &fhas failed &cReach&f. (&c%{_ping}%&c MS&f)." to all players where [player input has permission "hydra.logs"]
- add 1 to {reachalerts::%attacker%}
- on damage:
- if attacker is victim:
- if damage cause is not a projectile:
- cancel event
- set {_ping} to attacker's ping
- send "&c&lHydra &8>> &c%attacker% &fhas failed SelfHurt. (&c%{_ping}%&c MS)" to all players where [player input has permission "hydra.logs"]
- on damage of a player:
- victim is not flying
- damage wasn't caused by fall, potion, lava, burning, fire, poison or wither
- victim is not burning
- victim doesn't have poison
- victim doesn't have wither:
- set {antikb::%victim%} to location of victim
- wait 10 ticks
- set {antikb2::%victim%} to location of victim
- block at victim is not cobweb:
- block at victim is not water:
- victim is not riding:
- if {antikb::%victim%} = {antikb2::%victim%}:
- set {_ping} to victim's ping
- send "&c&lHydra &8>> &c%victim% has been detected using &cAnti Knockback&f. (&c%{_ping}%&c MS&f)." to all players where [player input has permission "hydra.logs"]
- add 1 to {alerts::%victim%}
- add 1 to {antikbalerts::%victim%}
- if {alerts::%victim%} >= 10:
- kick victim due to "&c&lHydra &8>> &cCheating"
- on chat:
- wait 1 tick
- set {chatcooldown::%player%} to true
- wait 3 seconds
- set {chatcooldown::%player%} to false
- on chat:
- if {chatcooldown::%player%} is true:
- player does not have permission "hydra.chat.cooldown.bypass":
- send "{@chatCoolDownMessage}"
- on shoot:
- if projectile is an arrow:
- if difference between {bow::%shooter%} and now is less than 2 ticks:
- cancel event
- set {_ping} to shooter's ping
- loop all players:
- loop-player has permission "hydra.logs":
- send "&c&lHydra &8>> &c%shooter% has failed &cFast Bow&f. (&c%{_ping}%&c MS&f)."
- add 1 to {alerts::%shooter%}
- add 1 to {fastbowalerts::%shooter%}
- if {alerts::%shooter%} >= 10:
- kick shooter due to "&c&lHydra &8>> &cCheating"
Add Comment
Please, Sign In to add comment