Blocks interacting on the world api

This commit is contained in:
2026-10-15 12:49:44 -03:00
parent 7faa070d83
commit b43e8fe8b8
15 changed files with 493 additions and 28 deletions
+5
View File
@@ -200,6 +200,11 @@ starts it with `player.start_using(ticks)`, and the item's components hear how i
[Using Over Time](../items/index.md#using-over-time). `stop_using()` ends it without either ending, and `is_using()`
says whether they're using one. While they are, they walk at a fifth of their speed and can't sprint.
## Pushing
`player.push(x, y, z)` adds to how fast they're moving, in blocks a second, like Minecraft's `Entity.push`: a fan
blowing them along does it every tick. Their client moves them, so it's sent there and added to theirs.
## Death
When a player dies, everything they carried falls out where they died, and their tools lose durability (see