ctx.blocks.solid(id) api
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user