Описание
# ShieldDisruptor
[](https://raw.githubusercontent.com/MightyKnight/ShieldDisruptor/multi-version/LICENSE)



A simple fabric mod to hide shields while not defending or to hide other offhand items (specified in the settings).
By default it hides the shield when not blocking and the totem of undying.
**Download it** from the [Modrinth](https://modrinth.com/mod/shielddisruptor) page: https://modrinth.com/mod/shielddisruptor
This is a port of the original ShieldDisruptor by [HeyZeer0](https://github.com/HeyZeer0) to newer Minecraft versions, as the original is abandoned. I'll try to maintain this as best as possible.
**Current Differences:**
- Updated to all new Minecraft versions. I offer two jar files:
- a) Newer versions over 26.1 have seperate releases, just filter on Modrinth
- b) 1.16.5 - 1.21.11: All in a single jar file!
- Superior support for **modded** shields, compatibility with FabricShieldLib shields
- Ability to specify **item tags** to hide, for example "#minecraft:banners"
- Option to also hide shields if held in the main hand
- Added German translation
- Added Config screen title and some tooltips
- Internal updates to Loom, Fabric etc. and the Gradle build system
Testing in every point release can be hard, so please report any issues or crashes on the [Issue Tracker](https://github.com/MightyKnight/ShieldDisruptor/issues).
## ⚠️ Requirements
This mod works both with the Fabric and the Quilt mod loader.
You need to have the following dependencies installed:
- [Cloth Config API](https://www.curseforge.com/minecraft/mc-mods/cloth-config) is required
- [Mod Menu](https://modrinth.com/mod/modmenu) is recommended to be able to change the settings.
## Adding hidden offhand items
This requires Mod Menu to be installed.
1. Navigate to the mod settings
2. Add the _id_ of the item to the list
You can also add whole item tags like `#minecraft:music_discs`.
This can be useful for example if another mod implements custom totems, if a tag is present just specify `#othermod:totems` instead of adding every instance individually.
For shields specifically, the config option **"Hide all Shields"** will take care of trying to block all modded shields for you by using Fabrics built-in "#c:shields" tag and supporting modded shields from [FabricShieldLib](https://modrinth.com/mod/fabricshieldlib).
## Other options
You can also add whole **item tags** like `#minecraft:music_discs`.
This can be useful for example if another mod implements custom totems, if a tag is present just specify `#othermod:totems` instead of adding every instance individually.
For shields specifically, the config option **"Hide all Shields"** will take care of trying to block all modded shields for you by using Fabrics built-in `#c:tools/shields` tag (`c:shields` before 1.20.5) and supporting modded shields from [FabricShieldLib](https://modrinth.com/mod/fabricshieldlib).
If you want to hide items in your main hand too, you can enable the **"Hide in main hand"** config as well.
## Compilation
1. Clone the the git repository from the [source code](https://github.com/MightyKnight/ShieldDisruptor) on Github.
**Note:** If you want to build for 1.16.5-1.21.11 instead of newer versions, use the [`multi-version`](https://github.com/MightyKnight/ShieldDisruptor/tree/multi-version) branch instead of cloning the default branch `current`.
2. Run `./gradlew build` in the cloned folder.
It will automatically download dependencies and compile the project to the subfolder `./build/libs`
3. The file named something like `shield-disruptor-X.X.X.jar` can then be dropped into your mods folder
Please report any issues on Github: