BlockModelSelectorScope

Properties

Link copied to clipboard

The default model for this block under namespace:block/name or a new model with parent minecraft:block/cube_all and "all": "namespace:block/name".

Link copied to clipboard
val id: ResourceLocation

The ID of the block.

Link copied to clipboard

Functions

Link copied to clipboard

Gets the model under the given path after or throws an exception if it does not exist.

Gets the model under the given path or throws an exception if it does not exist.

Link copied to clipboard

Gets the value of the given property of the current block state or null if the current block state does not have the given property.

Link copied to clipboard

Gets the value of the given property of the current block state or throws an exception if the current block state does not have the given property.

Link copied to clipboard

Checks whether the current block state has the given property.

Link copied to clipboard