SwingThrough

SwingThrough

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

by
5.5M Downloads
fabricneoforgequiltgame-mechanicsutility
Configure a Compatible Minecraft Server

Screenshots

Preview

About this Mod

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.

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

Available Versions

1.0.6+1.20release
MC 1.16, 1.16.1, 1.16.2, 1.16.3, 1.16.4, 1.16.5, 1.17, 1.17.1, 1.18, 1.18.1, 1.18.2, 1.19, 1.19.1, 1.19.2, 1.19.3, 1.19.4, 1.20, 1.20.1, 1.20.2fabric, quilt
August 22, 2024
1.0.5+1.21release
MC 1.20.3, 1.20.4, 1.20.5, 1.20.6, 1.21, 1.21.1fabric, neoforge, quilt
August 13, 2024
1.0.5+1.20release
MC 1.15, 1.15.1, 1.15.2, 1.16, 1.16.1, 1.16.2, 1.16.3, 1.16.4, 1.16.5, 1.17, 1.17.1, 1.18, 1.18.1, 1.18.2, 1.19, 1.19.1, 1.19.2, 1.19.3, 1.19.4, 1.20, 1.20.1, 1.20.2fabric, quilt
August 13, 2024
1.0.5+1.15release
MC 1.14, 1.14.1, 1.14.2, 1.14.3, 1.14.4, 1.15, 1.15.1, 1.15.2fabric
August 13, 2024
1.0.4release
MC 1.18.2, 1.19, 1.19.1, 1.19.2, 1.19.3, 1.19.4, 1.20, 1.20.1fabric, quilt
July 3, 2023

How to Install SwingThrough on Your Client

1

Install the Mod Loader Locally

Install fabric for your local Minecraft version.

2

Download the Matching File

Choose the SwingThrough file for fabric and Minecraft 1.21.1.

3

Install Mod

Place the .jar file in your local .minecraft/mods folder and restart Minecraft. No server-side installation is required.

Compatibility

Mod Loaders

fabricneoforgequilt

Minecraft Versions

1.21.1, 1.21, 1.20.6 (+30 more)

Server-side

Unsupported

Recommended RAM

4 GB(min. 3 GB)

Frequently Asked Questions

Does SwingThrough need to be installed on the Minecraft server?

No. Modrinth marks SwingThrough as unsupported on the server side. Install it only in your local Minecraft mods folder. Your server can remain unchanged unless the mod page lists an additional dependency.

Which version and loader does SwingThrough require?

Use a file for fabric, neoforge, quilt and your exact Minecraft version. Supported versions include 1.21.1, 1.21, 1.20.6. Files for different loaders are not interchangeable.

SwingThrough is not working – what should I check?

First check the Minecraft version, loader version and required dependencies. Put the .jar file in your local .minecraft/mods folder and remove older duplicates. Because this mod is client-side, adding server RAM will not fix it.

Minecraft Server for Your Group

SwingThrough stays on your client. Host a compatible world for your group.

Recommended RAM
4 GBfrom €5.2/mo
Minimum 3 GB | per 8 players
Create Server Now
Client Compatibility Guide
NVMe SSD Storage
DDoS Protection included

Details

License
GNU Lesser General Public License v3.0 only
Server-side
Unsupported

Supported Versions

1.21.11.211.20.61.20.51.20.41.20.31.20.21.20.11.201.19.4+23 more