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.
Extra knockback from a hit. Player has 0; the destroyer and the guardian have 1.5, the hoglin and zoglin have 1.
It's just brooms that don't have a default base of 0.
| What | Meaning |
|---|---|
| ID | minecraft:attack_knockback |
| Default | 0 |
| Player | 0 |
| Boundaries | 0 to 5 |
| Seen by the client | no, server only |
| Name in English game | Attack Knockback |
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.
All attributes /attribute command
According to Minecraft 26.3, values, boundaries, and who changes them are from the code and files of the game itself.