HomeJavaModsSwingThrough
SwingThrough
ModsJava

SwingThrough

by sleepingdragoninn · on Modrinth

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

Which build do you need?

This mod ships a separate file for every mod loader and every version of the game. Pick both, then download — the wrong build installs fine and then does nothing in the game.

Mod loader

Minecraft version

⬇ Download for 1.20.3–1.21.1 · Fabric⬇ Download for 1.18–1.20.2 · Fabric⬇ Download for 1.20.3–1.21.1 · Quilt⬇ Download for 1.18–1.20.2 · Quilt⬇ Download for 1.20.3–1.21.1 · NeoForge
I don't know my version or loader
Open the Minecraft launcher and look at the profile you play on — it names both, like fabric-loader-1.21.4. The version also shows in the bottom-right corner of the game's main menu.
No loader in the profile name? Then it's plain Minecraft, and these mods won't run — you need Fabric or NeoForge installed first.
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:

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:

It performs no additional raycasts or radius searches.

Afterword

All mods are built on the work of many others.

We made this mod for Tinkerer's Quilt - our modpack about ease of play and vanilla content.

Verified by MCModsHub

These come from our own check of the pack file, not from the source page.

Explore more