promotional bannermobile promotional banner

SwingThrough

Allows targeting (and interacting with and attacking) living entities through transparent blocks like grass, crops, and flowers.
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.

The SwingThrough Team

profile avatar
  • 6
    Followers
  • 10
    Projects
  • 1.1M
    Downloads

More from sleepingdragoninnView all

  • Surveyor Map Framework project image

    Surveyor Map Framework

    • 182.6K
    • Mods

    Maps with friends! A world map backend with multiplayer sharing, automatic structure/POI marking, and unified mod compatibility.

    • 182.6K
    • May 10, 2026
    • Mods
    • +2
  • Tinkerer's Smithing project image

    Tinkerer's Smithing

    • 1.2K
    • Mods

    A sentimental and convenient rebalance of gear crafting, repair, enchanting, and upgrading.

    • 1.2K
    • April 6, 2026
    • Mods
    • +1
  • Portable Crafting (Standalone) project image

    Portable Crafting (Standalone)

    • 1.4K
    • Mods

    Use crafting stations (tables, smithing, anvils, stonecutters, etc) directly from your inventory.

    • 1.4K
    • April 6, 2026
    • Mods
  • Hoofprint project image

    Hoofprint

    • 35.4K
    • Mods

    A minimalist, vanilla-style, client-side world map. A frontend for Surveyor supporting map sharing, global player positions, and Xaero's migration.

    • 35.4K
    • March 30, 2026
    • Mods
  • Surveyor Map Framework project image

    Surveyor Map Framework

    • 182.6K
    • Mods

    Maps with friends! A world map backend with multiplayer sharing, automatic structure/POI marking, and unified mod compatibility.

    • 182.6K
    • May 10, 2026
    • Mods
    • +2
  • Tinkerer's Smithing project image

    Tinkerer's Smithing

    • 1.2K
    • Mods

    A sentimental and convenient rebalance of gear crafting, repair, enchanting, and upgrading.

    • 1.2K
    • April 6, 2026
    • Mods
    • +1
  • Portable Crafting (Standalone) project image

    Portable Crafting (Standalone)

    • 1.4K
    • Mods

    Use crafting stations (tables, smithing, anvils, stonecutters, etc) directly from your inventory.

    • 1.4K
    • April 6, 2026
    • Mods
  • Hoofprint project image

    Hoofprint

    • 35.4K
    • Mods

    A minimalist, vanilla-style, client-side world map. A frontend for Surveyor supporting map sharing, global player positions, and Xaero's migration.

    • 35.4K
    • March 30, 2026
    • Mods