Attack Through Grass
Attack Through Grass lets a player hit mobs standing behind grass, cobwebs and other non-collidable blocks.
What it does
Normally a hit stops at the first block in the line of sight, so tall grass or a cobweb can hide a target. This mod changes that check so the attack reaches the mob behind any block whose state has no collision, such as portals, open trapdoors and single-layer snow. The mod is a single mixin with one injected method, so it leaves the rest of the game code alone.
The mod needs Fabric API on Fabric and no other dependency on Forge or NeoForge. It runs on the client only, so players install it and servers do not need it, but installing it on a server opts that server out for all clients from version 2.1.0 onward. Builds cover 1.18.2 – 26.3 for Fabric, Forge and NeoForge, with snapshot builds published. The code is open source under the MIT License.
Key features
Attacks through non-solid blocks
Hits pass through any block with no collision, so mobs behind grass or cobweb can be struck.
Works with any non-collidable block
Portals, open trapdoors and single-layer snow are all covered by the same rule.
Minimal code footprint
A single mixin with one injected method keeps the change small and straightforward to read.
Server opt-out
Installing the mod on a server disables the behavior for all clients from version 2.1.0.
Compatibility
Latest build for each game version and loader.
26.x5 of 5 versions with builds
1.21.x12 of 12 versions with builds
1.20.x6 of 6 versions with builds
1.19.x3 of 3 versions with builds
1.18.x1 of 1 version with builds
This mod also publishes snapshot builds. Snapshots are not shown in the matrix.
Requirements
Dependencies declared by the latest file for each loader.
Required 1
Use cases
Survival and combat play
Players fighting in grass fields or cobweb-filled caves can reach enemies they could not otherwise hit.
Who it’s for: Single-player players and multiplayer clients who want mobs behind grass or cobwebs to be hittable, and server owners who want to disable that behavior for their players.
How it compares
Cobweb Miner is open source under the GNU General Public License v3.0 only, with a server-required, client-optional environment and files for 1.21 – 26.3 across Fabric, Forge, NeoForge and Quilt. Swing Through Grass is server-side only, released under the MIT License and not open source, with files for 1.19.2 – 26.3. Simple Auto Attack is client-side only, open source under the MIT License and built for Fabric alone, covering 1.21.1 – 26.2.
| Mod | Loaders | Game versions | Environment | Updated |
|---|---|---|---|---|
| Attack Through Grass | Fabric, Forge and NeoForge | 1.18.2 – 26.3 | Client-side only | 2026-09-20 |
| Cobweb Miner | Fabric, Forge, NeoForge and Quilt | 1.21 – 26.3 | Server required, client optional | 2026-09-30 |
| Swing Through Grass | Fabric, Forge and NeoForge | 1.19.2 – 26.3 | Server-side only | 2026-10-04 |
| Simple Auto Attack | Fabric | 1.21.1 – 26.2 | Client-side only | 2026-09-06 |
Questions
Does Attack Through Grass need Fabric API?
Does the mod need to be on the server?
Which game versions have files?
In the catalog
Attack Through Grass is one of 29,952 Game mechanics mods on ModsFinder, and one of 19,630 Game mechanics mods for Fabric. 8,071 mods support Minecraft 26.3.
More from MianReplicate
Similar mods
What the author says
This mod ONLY needs to be installed on the CLIENT! INSTALLING ON THE SERVER OPTS OUT THE MOD FOR ALL CLIENTS. (2.1.0+ ONLY)
Official listing
- Modrinth page
- modrinth.com/mod/attack-through-grass
- Owner
- MianReplicate
- Published
- 2023-11-08
- Updated on Modrinth
- 2026-09-20
- Facts verified
- 2026-10-15
