Aller au contenu principal

puzzle_block_push

A sokoban-style puzzle: the player pushes blocks across the floor until each one sits in a matching hole.

Fields

FieldTypeDescription
pushBlocksList<PushBlockDef>Pushable blocks and their starting positions.
targetHolesList<TargetHoleDef>Target holes, with position and accepted material.
allowPullVar<Boolean>Whether blocks may also be pulled backward.
pushSoundSoundPlayed when a block moves.
solveSoundSoundPlayed when every block is in place.
blockMaterialVar<Material>Material used for the pushable block visual.
holeMaterialVar<Material>Material used for the target hole visual.

PushBlockDef

FieldTypeDescription
positionVar<Position>Starting position of the pushable block.

TargetHoleDef

FieldTypeDescription
positionVar<Position>Position of the target hole.
acceptedMaterialVar<Material>Material this hole accepts. AIR accepts any block.

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

How could this be used?

A crypt floor where three sarcophagi must be slid onto their engraved slabs. Turn allowPull on if a player who pushes a block into a corner should be able to recover instead of being stuck.