Experimental

An early preview: docs, the API and the dashboard may change or break.

Report a problem
Typecontent.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. A table is a VanillaVisual or, with pool, a PooledVisual. A function is called once per state while content is built, with the state's property values, and returns that state's look; every state's look must be a vanilla state, or every one a pooled donor.

type BlockVisual = string | VanillaVisual | PooledVisual | ((state: { [string]: string | number | boolean }) -> (string | VanillaVisual | PooledVisual))