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.
crate_minigame; a crate references one through its mini-game field, so the whole flow is configured from the editor.
Implementations are Folia-safe: all card entities are spawned and flipped on the player’s/entity’s own scheduler.