Download No Shield Delay — Minecraft Mods — MetaMods

No Shield Delay

Active

Downloads

0

Last update

9 months ago

Versions

1.17 — 1.21.4
Server
Fabric
Quilt
Weapons and armor
Utils

No Shield Delay

Eliminating Shield Blocking Delay in Minecraft

Have you ever noticed a strange situation where you try to block and attack, but the enemy still hits you? Even though your shield was already raised? This isn't your imagination! This delay really exists, and this mod completely eliminates it!

How the Blocking System Works

When you hold the use item button, the game creates a base "use time" that is stored and decreases every game tick while holding.

Minecraft blocks an attack only after the shield has been raised for more than 5 ticks. This is checked by comparing the difference between the current use time countdown and the item's base use time.

(from the isBlocking() method of the LivingEntity class)

return item.getMaxUseTime(this.activeItemStack) - this.itemUseTimeLeft >= 5;

Technical Implementation

This mod bypasses the limitation using mixin technology, changing the 5 constant and allowing setting any value from 0 to 5 ticks.

This project is an alternative to Revvilo's Responsive Shields for Fabric. If Revvilo ever creates their own version for Fabric, development of this project will be discontinued.


🛠 Installation and Setup

The mod is compatible with Minecraft versions 1.17 and newer. Theoretically, it might work on older versions, but this hasn't been tested.

The mod only needs to be installed on the server. Installing it on the client won't provide any benefits.

The mod doesn't require Fabric API to work — only Fabric Loader is needed.


⚙ Configuration Settings

File no-shield-delay.toml

RaiseTime

(From 0 to 5, default: 0) The number of ticks from when right-click is pressed until the game starts blocking attacks.

Enabled

(Default: true) Whether the mod's effect is enabled or disabled.

Useful Information

  • Setting RaiseTime to 0 allows shields to block attacks instantly
  • The shield raising animation on the client side takes approximately one tick. Therefore, setting RaiseTime to 1 provides a good balance between responsiveness and difficulty of blocking while attacking simultaneously.

📄 License

Copyright 2022 Quplet, Apache License 2.0. Please credit the author when using or distributing my work.

Project members
Quplet

Quplet

Developer

revvilo

revvilo

Developer

QueADV

QueADV

Created: 7 Jul 2022

ID: 3075