attack distance limit and sight attack (definitive-anti-chea
1.12.2detect the player vision and distance attack calculating player look yaw pitch head sight vision
this new plugin uses a more accurate method to calculate the angle: https://www.spigotmc.org/resources/sight-angle-attack-calculation.85021/
and you can mix it with attack reach: https://www.spigotmc.org/resources/attack-reach.84980/
although I created 2 separate plugins with better precision, do not delete this plugin, maybe one day it can still be useful, programmers are always going back and forth to the same place and what doesn't work today can work tomorrow.
this plugin detects coast attacks by kill aurea where the player is not looking and cancels.
I've tested dozens of anti cheat from bukkit plugins and spigot plugins and I’ve never seen an no cheat that does what this plugin does.
it also limits the attack range to 2, as the normal is 2 blocks away to attack and the kill aurea can reach 4 blocks away.
I tested it on a spigot 1.12 server and used protocol support to use nodus in version 1.8 of minecraft
source: https://repl.it/@BatemanBR/SightAttack#attackdistance/start.java
sightkick is kick if the attack for kill aurea where the player is not looking yaw pitch body head in the entity target but the plugin cancell this attacks types same without kick config.
debug work with the natural minecraft distance same with the limit of the plugin in the blockdistance config. my tests was 3.4 in the survival mode same without op and desloging after remove op and 5 distance in the creative
the reach of the minecraft client depends on whether you are diagonal or not, my calculations were done horizontally because I was in a straight line so the range is greater than diagonal attacks.
I use the windows taskbar because it uses memory ram that is faster than the windows start menu that looks for in the SSD which is slower than ram memory.
Similar projects
Plugin →Let Me Despawn
Improves performance by tweaking mob despawn rules. Say bye to pesky unintentional persistent mobs.
25MSueta
JourneyMap
Real-time map used for mapping in-game or your browser as you explore.
14.7MSueta
Emotecraft
Create your own emotes in Minecraft.
7.5MSueta
Simple Tpa
A simple tpa plugin which sends requests
5.4MSueta
Common Network
Forge and Fabric Unified Networking Solution
3.9MSueta
Set Home
A lightweight plugin for players to set their homes.
3.8MSueta

