Make server control knockback
This commit is contained in:
@@ -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.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user