this new plugin uses a more accurate method to calculate the angle: https://www.spigotmc.org/resources/sight-angle-attack-calculation.85021/
- Native Minecraft Version:
- Legacy (< 1.13)
- Tested Minecraft Versions:
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
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.