Skip to content

Conversation

Gingerbeard5773
Copy link
Contributor

@Gingerbeard5773 Gingerbeard5773 commented May 31, 2025

Type of change

  • Bug fix
  • New feature

Description

Adds a new module Silent Mine. Which has been known by the names "No mining animation" or "No break animation".

This module prevents block breaking animations from being visible to other players.

It works by sending packets to the server which ends up resetting the block break progress to nearby clients.

How Has This Been Tested?

Video here demonstrates Silent Mine on Oldfag.Org.

Minecraft_.1.21.4.-.Multiplayer.3rd-party.Server.2025-05-31.06-20-05.mp4

Requires two clients to test, as the breaking has to be viewed from another client.

Checklist:

  • My code follows the style guidelines of this project.
  • I have added comments to my code in more complex areas.
  • I have tested the code in both development and production environments.

@EventHandler
private void onTick(TickEvent.Pre event) {
if (mining) {
mc.getNetworkHandler().sendPacket(new PlayerActionC2SPacket(PlayerActionC2SPacket.Action.ABORT_DESTROY_BLOCK, lastBlockPos, lastDirection));
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You dont have to send the abort packet every tick while mining. You can just send it once and it will work properly.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants