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
+3
View File
@@ -511,6 +511,9 @@ export interface BlockApi {
toughness(id: Id): number;
// the components its json lists and their params, a copy, like ItemApi.components
components(id: Id): Record<Id, unknown>;
// whether it's solid like stone: drawn in the solid layer, and a whole block to bump into in every state. glass,
// leaves, slabs and chests aren't. what passes signals on, and what wire turns corners around. false for air
solid(id: Id): boolean;
}
export interface RecipeApi {