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

Cards Mini-Game

The crate_minigame_cards entry stages a world-space opening mini-game: a grid of face-down cards spawns in front of the player; the card they click flips to reveal their reward, and the others cascade-flip to decoys.

注記

The winning reward is always drawn server-side before the mini-game starts — the animation is pure presentation and nothing the player does can change the outcome. The reward is granted exactly once, on the first click.

Mini-games are manifest entries tagged crate_minigame; a crate references one through its mini-game field, so the whole flow is configured from the editor.

FieldDefaultDescription
cardCount8Number of cards displayed (1–54).
columns4Cards per row.
spacing / distance / heightWorld placement of the card grid in front of the player.
cascadeDelayTicksDelay between decoy flips after the pick.
closeDelayTicksHow long the revealed grid lingers before cleanup.
back item / soundsCard-back item and flip/win sounds.

Implementations are Folia-safe: all card entities are spawned and flipped on the player's/entity's own scheduler.