Nekoware v1 private Animations: Full Source Analysis
A two-mode cosmetic held-item animation switcher: on every UpdateEvent it writes a static int (1 for the '1.7' mode, 6 for the 'Sigma' mode) that the client's render path reads to change the swing/held-item pose.
A two-mode cosmetic held-item animation switcher: on every UpdateEvent it writes a static int (1 for the '1.7' mode, 6 for the 'Sigma' mode) that the client's render path reads to change the swing/held-item pose. It sends no packets; the vanilla C0APacketAnimation swing stream continues unchanged, so swing-packet anticheats observe an identical stream.
Architecture
The module's entire state is a public static int anim. The single UpdateEvent consumer sets it to 1 or 6 depending on which of the two modes (1.7, Sigma) is selected; any render or animation code elsewhere in the client reads Animations.anim to choose its pose. There is no per-tick work beyond the assignment, no onEnable/onDisable logic, and no packet interaction.
The swing packet is untouched
C0APacketAnimation is emitted by the vanilla swing path (attacks, block interactions, right-clicks) through EntityPlayer.swingItem, independently of how the held item is rendered. Because the module only changes the client-side pose, the C0A stream the server receives is byte-identical to vanilla. The real anticheat surface for animation cheats is therefore not this module but the adjacent class that does alter the swing stream: killaura that attacks without swinging (caught by NoSwing checks) and autoclickers that flood swings (caught by swing-frequency checks).
public Consumer<UpdateEvent> onEvent = (event) -> {
20
if (isMode("1.7"))
21
this.anim = 1;
22
23
if (isMode("Sigma"))
24
this.anim = 6;
25
};
26
}
What this file does
A static int plus one consumer. The UpdateEvent handler compares the active mode by name and writes the matching animation id into the shared static, which is the entire public contract of the module. Other Nekoware render code switches its pose off Animations.anim, so toggling the module changes the visual without any per-frame cost or any packet. The mode check is exclusive: with 1.7 selected the value is 1, with Sigma it is 6, and no other value is ever written.
anticheat Countering Checks
The anticheat code that detects or counters the techniques this module uses. Full source, with the detection mechanism explained below each box.
anticheat NoSwing (arm-swing requirement between attacks)
NoSwing.java65 lines · Java
1
/*
2
* This program is free software: you can redistribute it and/or modify
3
* it under the terms of the GNU General Public License as published by
4
* the Free Software Foundation, either version 3 of the License, or
5
* (at your option) any later version.
6
*
7
* This program is distributed in the hope that it will be useful,
8
* but WITHOUT ANY WARRANTY; without even the implied warranty of
9
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
10
* GNU General Public License for more details.
11
*
12
* You should have received a copy of the GNU General Public License
13
* along with this program. If not, see <http://www.gnu.org/licenses/>.
NCP's fight NoSwing enforces that the player moves their arm between attacks: an attack event runs NoSwing.check, and a preceding swing (C0A) rewards a decay of noSwingVL (x0.9), while an attack with no preceding swing accumulates noSwingCount and raises noSwingVL by 1 per attack, executing the configured actions when the level passes the threshold. Honest note: this module never suppresses C0A (the vanilla swing still fires on every attack), so the check stays satisfied and cannot see the pose change. It is the real detector for the animation-cheat class this module's feature sits next to (killaura attacking without arm swings), and the mechanism it relies on is exactly the C0A stream the module leaves intact.
Arc's combat NoSwing times swings against attacks. On 1.8 it runs the legacy branch: after an attack, if the time since the last swing packet exceeds max-swing-time-old (default 100ms), it fails with 'No swing animation within time'. On newer versions the check only fires when an attack landed within the last second and the swing gap still exceeds the allowed window, which avoids flagging idle players. Honest note: the check measures the C0A stream relative to attacks; Nekoware's Animations alters neither, so a player using it passes. It is the closest real swing-stream check in Arc and represents the timing-based approach to the same cheat class.
anticheat SwingFrequency (swing packet rate)
SwingFrequency.java95 lines · Java
1
package arc.check.network;
2
3
import arc.Arc;
4
import arc.check.PacketCheck;
5
import arc.check.result.CheckResult;
6
import arc.check.types.CheckType;
7
import arc.data.packet.PacketData;
8
import arc.world.WorldManager;
9
import org.bukkit.Bukkit;
10
import org.bukkit.entity.Player;
11
12
/**
13
* Checks if the player is sending too many swing packets.
14
*/
15
public final class SwingFrequency extends PacketCheck {
16
17
/**
18
* Max packets and packet kick threshold
19
*/
20
private int maxPacketsPerSecond, packetKickThreshold;
if (!WorldManager.isEnabledInWorld(player)) continue;
86
if (!exempt(player)) check(player, PacketData.get(player));
87
}
88
}, 20, 20);
89
}
90
91
@Override
92
public void unload() {
93
cancelScheduled();
94
}
95
}
How it counteracts this module
Arc's swing flood detector: a scheduled task runs every 20 ticks, counts the player's swing packets for the second, and flags 'Too many swing packets per second' once the count reaches maxPacketsPerSecond (default 50), with an optional hard kick at packetKickThreshold (default 100) and a cancel path that drops subsequent swings while flagged. This catches autoclicker and animation-spam clients that flood C0A. Honest note: the module emits zero extra swings (the client's swing rate is unchanged), so the per-second count never approaches the cap; the check is the real detector for the flood side of the animation-packet axis this module does not touch.
@CheckData(name = "NoSwingBreak", stableKey = "grim.breaking.no_swing_break", description = "Did not swing while breaking block", experimental = true)
14
public class NoSwingBreak extends Check implements BlockBreakListener, PreViaPacketReceiveListener {
15
private boolean sentAnimation;
16
private boolean sentBreak;
17
18
public NoSwingBreak(GrimPlayer player) {
19
super(player);
20
}
21
22
@Override
23
public void onBlockBreak(BlockBreak blockBreak) {
24
if (blockBreak.action != DiggingAction.CANCELLED_DIGGING) {
25
sentBreak = true;
26
}
27
}
28
29
@Override
30
public void onPreViaPacketReceive(PacketReceiveEvent event) {
31
if (event.getPacketType() == PacketType.Play.Client.ANIMATION) {
32
sentAnimation = true;
33
}
34
35
if (isTickPacket(event.getPacketType())) {
36
if (sentBreak && !sentAnimation) {
37
flag();
38
}
39
40
sentAnimation = sentBreak = false;
41
}
42
}
43
}
How it counteracts this module
Grim's breaking variant of the no-swing family: it latches sentBreak on any non-cancelled digging action and sentAnimation on any ANIMATION packet, and at each tick boundary flags if a break was sent without a swing in the same tick, resetting both latches. It targets clients that mine with packet-level speed hacks while suppressing the arm animation. Honest note: the module leaves the vanilla swing path intact, so every break still carries its C0A and the latches always pair; it is the per-tick swing-consistency check that would catch the suppression cheat this module's feature class is commonly paired with.