Entity Collision Tampering / Air Walking

Ghost_Collision_Tampering Exploits HIGH +8 score

🎮 Minecraft Gameplay Impact

Hooks entity collision calculation methods to inject artificial solid VoxelShape boxes, enabling the player to walk on empty air or stand on phantom surfaces.

🔍 Functions & APIs Analyzed

Entity.findCollisionsForMovement

Entity movement collision calculation hook.

VoxelShapes.fullCube

Generates solid 1x1x1 bounding shape for empty space.

💻 Mod Implementation (Dev Source / Mapped)

// Developer Source (Fabric / Yarn mappings)
@Mixin(Entity.class)
public class CollisionMixin {
    @Inject(method = "findCollisionsForMovement", at = @At("RETURN"), cancellable = true)
    private static void addFakeCollisions(CallbackInfoReturnable<List<VoxelShape>> cir) {
        cir.getReturnValue().add(VoxelShapes.fullCube());
    }
}

⚙️ Decompiled Representation (Vineflower View)

// Decompiled with Vineflower 1.12 (Intermediary mappings)
@Mixin({class_1297.class})
public class CollisionMixin {
    @Inject(method = {"method_74656"}, at = {@At("RETURN")}, cancellable = true)
    private static void addFakeCollisions(CallbackInfoReturnable<List<class_265>> cir) {
        cir.getReturnValue().add(class_259.method_1077());
    }
}

🛡️ Bytecode Signature & Static Detection

Matches Mixin injection into Entity collision calculation with VoxelShapes.fullCube (method_1077).