Search the docs

Find a guide, global, type or member

TypeContentcontent.luau

BlockVisual

How the client draws a block. A string is a vanilla state such as "minecraft:red_wool" or "minecraft:oak_log[axis=y]" (it must name minecraft: and exist), or "pool:<pool>" for a donor from that pool. { state, inherit }: a vanilla state; with inherit = true each of this block's states sets its properties on the vanilla state, so they must exist there. { pool, appearance }: a donor from pool, one per distinct appearance. appearance may use {prop} placeholders for this block's property values; "" shares one donor across all states; omitted, every state gets its own donor.

type BlockVisual = string -- a vanilla state, "minecraft:red_wool", or "pool:<pool>"
	| { state: string, inherit: boolean? } -- inherit copies this block's properties onto the state
	| { pool: Pool, appearance: string? } -- "{prop}" placeholders; "" shares one donor per block