Download SwingThrough — Minecraft Mods — MetaMods
SwingThrough

SwingThrough

Active

Downloads

0

Last update

1 year ago

Versions

1.14 — 1.21.1
Client
Fabric
Neoforge
Quilt
Game mechanics
Utils

SwingThrough

preview

This mod enables attacking and interacting with living entities through transparent blocks that have no physical collision.

How It Works

The system automatically ignores blocks with empty collision, allowing you to target mobs and other creatures behind them. The following conditions must be met for this feature to activate:

  • The block must be transparent and have no physical collision
  • The creature must be alive and attackable
  • You must not be directly riding the creature
  • The creature must be within reach distance

An interesting feature: when the system is activated, the block outline completely disappears, providing a clear view of the target.

Technical Details

The mod is implemented very efficiently using just one mixin containing approximately 4 lines of working code:

  • Two lines extend the entity targeting range when conditions are met
  • Two lines ignore the block as a target when extended range is used

It's important to note that the mod does not perform additional raycasts or radius searches, making it very lightweight and performant.

Compatibility

Requires Connector mod installation for NeoForge platform.

Project members
sisby-folk

sisby-folk

Developer

Created: 11 Jun 2023

ID: 2224