Knockback when attacking (attack_knockback)

Attributes

Extra knockback from a hit. Player has 0; the destroyer and the guardian have 1.5, the hoglin and zoglin have 1.

  • default 0
  • 0 to 5
  • Minecraft 26.3
My game select version

We'll remember in this browser and set up where your version is available. Open link settings are more important than this choice; the Vicki versions do not change.

On page 6 sections

Briefly

Chat command - below

  • Knockback harder
    /attribute @s minecraft:attack_knockback base set 2
  • Return to how it was
    /attribute @s minecraft:attack_knockback base reset
  • Find out your meaning
    /attribute @s minecraft:attack_knockback get

Default 0, from the player 0; the game takes between 0 and 5.

What it does

Extra knockback from a hit. Player has 0; the destroyer and the guardian have 1.5, the hoglin and zoglin have 1.

From mobs

MobBase
Zoglin1
Ravager1,5
Hoglin1
Warden1,5

It's just brooms that don't have a default base of 0.

Numbers

WhatMeaning
IDminecraft:attack_knockback
Default0
Player0
Boundaries0 to 5
Seen by the clientno, server only
Name in English gameAttack Knockback

Frequently asked questions

What does the attribute attack_knockback do?

Extra knockback from a hit. Player has 0; the destroyer and the guardian have 1.5, the hoglin and zoglin have 1.

How do you change the drop in an attack by a command?

/attribute @s minor:attack_knockback baseset < number> — for example 2. Return as it was — /attribute @s minecraft:attack_knocback base reset. You need operator's rights or chita.

What are the boundaries of attack_knockback?

By default 0, the game takes values between 0 and 5: no more or less than a command will set.

More: Fight.

According to Minecraft 26.3, values, boundaries, and who changes them are from the code and files of the game itself.