I had an idea on a stun, for both the attacker and defender when you successfully block a projectile or a melee attack. When a player is stunned, they cannot attack,
Let’s find out a plausible way to do this using math.
The stun time for the attacker with a melee attack is the attack damage divided by the recovery time(in ticks) times 10. The recovery time is the time it takes for the weapon to be fully loaded after an attack.
Attacker stun time = (attack damage / recovery time(in ticks) * 10
For instance, the diamond axe stun time for the attacker would be:
(9 / 20) * 10 = 4.5 seconds
Now the defender’s stun time is larger, it is the attack damage divided by the recovery time(in ticks) times 12
Defender stun time = (attack damage / recovery time(in ticks)) * 12
For a diamond axe, the defender’s stun time is:
(9 / 20) * 12 = 5.4 seconds
The defender is at a disadvantage to the attacker if they block. This discourages turtling and makes it so shields are used to block large melee attacks. You can use the stun time to splash a potion down, but you eat and drink at quarter speed.
For projectiles, the attacker gets no stun time, the recovery time is the charge time(how long you load it up), and this is multiplied by 13.
If you shoot an arrow out of a fully charged bow, the attack damage is a max of 9. It takes 22 ticks to fully charge a bow.
Defender stun time = (attack damage / load time(in ticks)) * 13
(9 / 22) * 13 = 5.85 seconds
Please sign in to leave a comment.