ctx.blocks.solid(id) api

This commit is contained in:
2026-10-20 14:22:11 -03:00
parent 987e7a0f9a
commit 0bc66c21b9
11 changed files with 115 additions and 5 deletions
+1 -1
View File
@@ -151,7 +151,7 @@ Here `block` is `{ id, x, y, z }`, without tile data, which clients never have.
`get_block`, `get_state`, `set_state`, `is_face_sturdy`, `biome_at` and `season_at` (see
[Seasons](../worldgen/biomes.md#seasons)), and only works inside rules. `ctx.blocks.components(id)` gives any block's
components and their params, like on the server, for rules that look at what's around them, like a shaft lining up with
the axle of the block it's placed against.
the axle of the block it's placed against, and `ctx.blocks.solid(id)` whether it's [solid](index.md#solid-blocks).
### Neighbors