Back to mods
SwingThrough project artwork

CurseForge · Minecraft mod

SwingThrough

Allows targeting (and interacting with and attacking) living entities through transparent blocks like grass, crops, and flowers.

Choose a version Pick your version below, then grab the matching file.

Quick answer

Which SwingThrough release should I use?

Updated 6 months ago
Latest stable file swingthrough-1.0.6+1.21.jar
Game version 1.21, 1.20.5, 1.20.6
Loader Fabric, NeoForge, Quilt

swingthrough-1.0.6+1.21.jar targets 1.21, 1.20.5, 1.20.6 with Fabric, NeoForge, Quilt. The project page does not say whether this file belongs on the client, dedicated server, or both. No extra mods listed for this file.

Where it goes

Is SwingThrough required on the client, server, or both?

The project page does not say whether this file belongs on the client, dedicated server, or both.

Client Source doesn’t say
Dedicated server Source doesn’t say
Loader for this release Fabric, NeoForge, Quilt
Required install it here Optional supported, not mandatory Not supported do not install here Source doesn’t say do not assume

The source does not explicitly classify this release as client-only or server-only.

What else does swingthrough-1.0.6+1.21.jar need?

swingthrough-1.0.6+1.21.jar. Change the file and its required mods may change too.

No extra mods listed for this file

This file does not list any required mods. Do not add a library just because a different file uses it.

This file does not list any required or optional mods.

Before you install it

Add SwingThrough without breaking your instance.

Built for swingthrough-1.0.6+1.21.jar. Pick another file and the loader, install side or required mods may change.

  1. 01

    Stick to this file

    Use swingthrough-1.0.6+1.21.jar. It targets 1.21, 1.20.5, 1.20.6 with Fabric, NeoForge, Quilt; another release may have different loader, side or dependency requirements.

  2. 02

    Bring the mods it needs

    This file does not list any required mods. Do not add a library just because a different file uses it.

  3. 03

    Put it on the correct side

    The project page does not say whether this file belongs on the client, dedicated server, or both.

  4. 04

    Pick the file you checked

    Use the “Get this file” button beside swingthrough-1.0.6+1.21.jar. It opens that exact file at the source.

About this project

What does SwingThrough add?

preview Allows targeting living entities through transparent blocks.
Requires Connector on neoforge.


This mod discards the block crosshair target to allow an entity to be targeted instead, when:

  • The block has empty collision
  • The entity is living and attackable
  • You're not directly riding the entity
  • The entity is within reach (exact interaction range in 1.21)

Thanks to this implementation, the block outline will also disappear while you're targeting the entity.

Technical Notes

This mod is comprised of a single mixin with about 4 lines of meaningful code:

  • 2 lines to use the full entity targeting range if the block meets the conditions
  • 2 lines to discard the block target if the full range was used and the entity meets the conditions

It performs no additional raycasts or radius searches.

Afterword

All mods are built on the work of many others; Please support the wider community.

Project description from CurseForge.

Pick your setup

SwingThrough by Minecraft version and loader

Choose the version and loader you play, then open the matching release.

67 available setups

Showing the newest 12 of 33 game versions. Older files are in the list below.

Check the dependencies, then try the file in a copied instance before changing a world you care about.

Recent files

SwingThrough versions and loaders

13 of 13 releases match

Looking for an older file? The official CurseForge project page is in Resources.