メインコンテンツまでスキップ

puzzle_pattern

The player rebuilds a given pattern on a grid of blocks. The expected pattern can be shown as a client-side preview above the grid, or as transparent ghost blocks directly on it.

Fields

FieldTypeDescription
patternList<PatternSlotDef>Expected materials, in row-major order.
gridOriginVar<Position>World position of the block at row 0, column 0.
columnsVar<Int>Number of columns in the grid.
previewOffsetYVar<Int>Vertical offset of the client-side preview. The placement grid itself stays empty.
ghostBlocksVar<Boolean>Draw transparent ghost blocks directly on the placement grid.
toleranceVar<Int>Mismatched blocks allowed before a reset. 0 = exact match only.
correctSoundSoundPlayed on a correct placement.
wrongSoundSoundPlayed on a wrong placement.
solveSoundSoundPlayed when the pattern is complete.

PatternSlotDef

FieldTypeDescription
materialVar<Material>Material expected at this grid position.

See the shared puzzle fields for lifecycle, timing and trigger options.

How could this be used?

A mosaic the player copies from a mural on the opposite wall. Keep ghostBlocks off so the answer has to be read from the mural, and raise tolerance if the puzzle should forgive a slip.