CobSwap
Client-side Fabric mod that places cobwebs for you in combat: left-click a block near an enemy with a sword or axe, and it swaps to your cobweb, places it, and swaps back. Adjustable delay and toggle key. No server install needed.
No ratings yet
Be the first to rate it.
Community listing page
Community listing page, reviews may not be monitored by the author.
Community voices
Reviews
Log in to review this mod
Reviews are written by ModDex members. Log in and you'll come right back to the review form.
No reviews yet. Be the first to review this project!
Get it on
Available Platforms
Compatibility
Supported Environments
Runs entirely on the client. Works on vanilla servers.
About
Project Details
For authors
Embed Badge
If you're the author of this project, you can embed a live badge anywhere that supports HTML or Markdown. It updates automatically whenever ratings change.
Use HTML for any page that supports it, or Markdown for README files and Markdown-based descriptions.
Identifiers
Platform IDs
About
Description
CobSwap
CobSwap is a client-side Fabric mod that places cobwebs for you during combat. Hold a sword or axe, left-click a block next to your opponent, and it switches to your cobweb, places it, and switches back to your weapon. It uses normal slot switching and block placement, with an adjustable delay between steps.
No server-side install is needed.
Features
- One-click cobweb placement. Left-click a block while holding a sword or axe, and CobSwap handles the swap, place and swap-back.
- Combat-aware. It only triggers when a living entity (a player or a mob) is within about 3 blocks of the placement spot and the spot is empty. Everywhere else, mining works as normal.
- Normal attacks are untouched. CobSwap only reacts to left-clicks on blocks. Hitting a player or mob works exactly as in vanilla.
- Adjustable delay. The wait between steps defaults to 2 ticks (about 100 ms) and can be set from 0 to 10 ticks. You can change it live in-game, and it is saved to
config/cobswap.json. - On/off toggle. The mod starts OFF each time you launch the game, so it never fires unexpectedly. This also stops it from placing webs while you mine with a sword.
- Rebindable keys. Every keybind is listed under Options > Controls > Key Binds > CobSwap.
- Action-bar feedback. Toggling and delay changes show a short message above your hotbar.
How it works
When CobSwap is ON, all of these must be true:
- You are holding a sword or axe in your main hand.
- You left-click a block (not an entity).
- The space next to the clicked face is empty.
- A living entity is within about 3 blocks of that space.
- A cobweb is in your hotbar (slots 1-9).
CobSwap then cancels the normal mining action, switches to your cobweb slot, waits for the delay, places the cobweb, waits again, and switches back to your original slot. If any condition fails, the click behaves as vanilla Minecraft would.
Default controls
| Action | Key |
|---|---|
| Toggle CobSwap on/off | G |
| Increase delay (+1 tick) | ] |
| Decrease delay (-1 tick) | [ |
All of these can be rebound in the Controls menu.
Requirements
- Minecraft 1.21.11
- Fabric Loader 0.19.3 or newer
- Fabric API
- Java 21
Installation
- Install Fabric Loader for Minecraft 1.21.11.
- Put Fabric API and the CobSwap jar in your
modsfolder. - Launch with the Fabric profile and check your keys in Controls.
Important notice
CobSwap automates a repeated inventory action in combat. Many multiplayer servers prohibit macros or automation, and some anti-cheat systems flag fast inventory actions even when each one is a normal game action. Check the server's rules before using this mod. If a server is strict, raise the delay with the ] key. You use this mod at your own risk.
Screenshots
Gallery
Versions
Files
Relations
Project Relations
More like this
Similar Mods
Suggestions use data such as tags, dependencies, dependents, descriptions, titles, and more to rank how much they overlap with this mod.
Stats
- Downloads
- <1,000
- Used in
- 0 modpacks
- Followers
- 0
- In stacks
- 0
- Created
- Last synced
-
Dec 4, 2026 7:01 AM UTC
New file updates sync automatically.
When ModDex last fully re-synced this project from CurseForge or Modrinth. A new file release triggers a resync usually within minutes, and every project is also re-synced on a schedule. Edits that don't ship a file, such as a new description or screenshots, are checked every few hours and can appear before the above date changes.
How syncing works
External Links
Stats
- Downloads
- <1,000
- Used in
- 0 modpacks
- Followers
- 0
- In stacks
- 0
- Created
- Last synced
-
Dec 4, 2026 7:01 AM UTC
New file updates sync automatically.
When ModDex last fully re-synced this project from CurseForge or Modrinth. A new file release triggers a resync usually within minutes, and every project is also re-synced on a schedule. Edits that don't ship a file, such as a new description or screenshots, are checked every few hours and can appear before the above date changes.
How syncing works