LiveOverflowMod I AM NOT AFFILIATED WITH THE ORIGINAL CREATOR OF THIS MOD I ONLY UPDATED IT FOR A NEWER VERSION OF THE GAME
A Fork of the Minecraft hacked-client for the LiveOverflow Server. Contains various hacks for the challenges on the server, and some utilities.
Read all about it in my blog post, and now also Part 2!
While reading the movement code, I found that it is possible to send a position packet a maximum of 10 blocks away from the current position. But also that you can send 5 packets per tick, so you can move 50 blocks in a single tick. This gave me the idea of making a reach hack that uses this by sending multiple position packets going towards a player, hit them, and then move back. That is exactly what this hack does when you toggle the default ] (right bracket) keybind, and then click on a far away entity as if you were hitting them.
Warning: This hack is not perfect. It only works when there is a clear line of sight to the player, and sometimes gets stuck while moving meaning you end up somewhere along traveled path. But it's good enough for a proof of concept!
See Clip Reach for a better version of this hack that teleports through blocks.
- Reach.java: When enabled, you will teleport to every entity you click from a distance, and then teleported back to your original position
- ClientPlayerInteractionManagerMixin.java: Detect clicking on entities and forward it to the teleport function
- MinecraftClientMixin.java: When enabled, the client will think it can hit entities from far away to make the Minecraft UI work correctly and detect hit attempts
There is a trick to clip huge distances by sending many movement packets in a single tick, and then doing one big jump. This is implemented into the Clip Reach hack which when enabled using the default [ (left bracket) keybind, will use this to teleport upwards, then above the target, and finally down to the target. Afterward it goes back up, to your original position, and back down. This all happens without seeing any teleports on screen, for a clean Reach feeling.
Warning: Due to the required number of packets needed to be sent in a single tick, it may fail sometimes and get you stuck somewhere in the middle, often in the air. Because of this it is recommended to use a NoFall hack when trying to use this hack so you don't die :)
- ClipReach.java: When enabled, you will teleport to every entity you click from a distance, through walls, and then teleported back to your original position
- ClientPlayerInteractionManagerMixin.java: Detect clicking on entities and forward it to the teleport function
- MinecraftClientMixin.java: When enabled, the client will think it can hit entities from far away to make the Minecraft UI work correctly and detect hit attempts
This allows you to insta-mine some blocks, that were previously really close to being insta-minable. You can for example insta-mine stone and cobblestone with an Efficiency 5 Netherite Pickaxe using this hack.
- ClientPlayerInteractionMixin.java:
Send the
STOP_DESTROY_BLOCKaction packet right after starting to break a block if it is close enough to be insta-mined
This hack changed the random texture rotation code to use a completely random number every time, so it is not reversible from a screenshot. This was to be able to take screenshots and videos, while not revealing the texture rotations that can be brute-forced easily for coordinates. The same type of mod was used by LiveOverflow himself to make the challenge of finding his base harder.
- AbstractBlockMixin.java: Use a randomized hash function to generate block rotations, making it unpredictable
A lot can be done with the ability to clip through walls. There are a few commands that do useful things like flipping vertically and horizontally. There are 4 common-use commands, and 2 specific ones for challenges:
-
/hclip: Horizontal clip, through walls by teleporting up, forward and then down. Up to around 150 blocks (always flat) -
/dclip: Directional clip, into the exact direction you are looking. Up to around 150 blocks -
/autoclip [up|down]: Automatically clip through the nearest floor or ceiling, placing you at the first open air gap the player fits -
/clubmate: This trick also works on the original Club Mate challenge, it will simply teleport to the chest and open it in one tick -
ClipCommand.java: Includes all the logic for clipping through walls, as well as the registered commands
- Select
liveoverflowmod buildtask and click green arrow in - JAR in build/libs
- Select
Minecraft Clienttask and click green arrow - Minecraft will start, with logs in IntelliJ
Note: Use the ViaFabric mod to connect to any lower version server
- An example of a simple fabric mod with a Mixin: https://github.com/FabricMC/fabric-example-mod
- Getting the Paper-Server source code: https://github.com/PaperMC/Paper/blob/master/CONTRIBUTING.md