Make server control knockback

This commit is contained in:
2026-09-30 10:54:09 -03:00
parent 4fbcca6851
commit dc70ada7c4
8 changed files with 99 additions and 53 deletions
+3
View File
@@ -58,6 +58,9 @@ Players follow Minecraft's rules, with 20 health (10 hearts) and 20 hunger:
Players are living entities, like mobs, so damage works the same for both. After being hurt they can't be hurt again for
half a second, unless the new hit is harder, and then only by the difference.
A player's client moves them, except while they're knocked back: then the server moves them until they land, so it works
even when their game isn't running, like in a background tab.
`damage(amount, cause)` hurts them like anything else would. `cause` shows in the `player_damage` and `player_death`
[events](../concepts/events.md) and in the death message. Before events can change the amount or cancel it.