Skip to main content
NewRecommended

Shield Mechanics

Customize how shields behave when a player is hit while blocking — specifically the cooldown (stun duration) applied after a mace or axe hit.

Overview

In vanilla Minecraft, an axe hitting a blocking player always disables their shield for exactly 5 seconds (100 ticks). There is no built-in stun for maces. Shield Mechanics lets you configure a mace stun (not in vanilla), override the axe stun duration (vanilla forces 100 ticks), and toggle each weapon type separately.

All settings are configurable via the in-game GUI or config.yml.

Configuration

features:
shield-mechanics:
enabled: false
mace-stun:
enabled: true
duration-ticks: 100
axe-stun:
enabled: true
duration-ticks: 100

Configuration Options

OptionTypeDefaultDescription
enabledbooleanfalseMaster toggle for the feature
mace-stun.enabledbooleantrueApply stun when a mace hits a blocking player
mace-stun.duration-ticksinteger100Shield cooldown duration in ticks (20 ticks = 1 second)
axe-stun.enabledbooleantrueOverride axe shield stun duration
axe-stun.duration-ticksinteger100Shield cooldown duration in ticks

In-Game GUI

Open via /smp menuShield Mechanics → Right Click.

SlotItemAction
4MaceToggle mace stun on/off
3Red glassDecrease mace stun duration (Left: −5, Shift: −20 ticks)
5Lime glassIncrease mace stun duration (Left: +5, Shift: +20 ticks)
13Diamond AxeToggle axe stun on/off
12Red glassDecrease axe stun duration
14Lime glassIncrease axe stun duration

Duration is clamped between 1 and 600 ticks (0.05s – 30s).

How It Works

  • Mace stun — applied immediately on EntityDamageByEntityEvent when the victim is blocking and the attacker holds a mace.
  • Axe stun — applied one tick after the hit event resolves. This is intentional: vanilla's axe shield-disable runs server-side after the event pipeline, so scheduling 1 tick later ensures our configured duration wins over vanilla's hardcoded 100-tick value.
  • Applies to all axe tiers (wooden through netherite).
  • Works against mobs and players wielding these weapons.

Notes

  • The mace has no built-in shield-disable in vanilla — this feature adds that behavior.
  • Setting axe-stun.duration-ticks: 100 with axe-stun.enabled: true matches vanilla behavior exactly.
  • Setting axe-stun.duration-ticks lower than 100 makes shields recover faster; higher makes them locked for longer.