Saltar al contenido principal

Crate Minigame Cards

Mini-jeu Caisse : Cartes

"Flip a card" mini-game. A grid of face-down cards is spawned in front of the player. Whichever card they click flips to reveal the reward that was already drawn server-side; the rest flip to decoys so the pick reads as blind. The reward is granted exactly once, on that first click.

Campos

CampoTipoPredeterminadoDescripción
cardCountInt8Nombre de cartes affichées
columnsInt4Nombre de cartes par rangée
rowsInt0Maximum number of rows (0 = automatic, maximum 10)
spacingDouble1.8Espacement entre les cartes (blocs)
forwardDistanceDouble2.5Distance des cartes devant le joueur (blocs)
verticalOffsetDouble0.0Décalage vertical de toute la grille (négatif = plus bas)
followRotationBooleanfalseFaire pivoter la grille lorsque le joueur tourne la vue
flipDurationTicksInt10Durée de l'animation de retournement (ticks)
cascadeDelayTicksInt4Délai entre le retournement des cartes leurres (ticks)
closeDelayTicksInt40Délai avant fermeture après révélation (ticks)
cardBackItemVar<Item>—Item du dos des cartes (vide = utilise celui de la caisse)
hitboxSizeDouble1.0Taille de la zone cliquable de chaque carte (blocs)
flipSoundSoundEMPTYSon joué au retournement d'une carte
winSoundSoundEMPTYSon joué à la révélation du gain

How to use it​

Link this entry in a crate's minigame field. A grid of cardCount face-down cards (at most 100) is shown in front of the player, with columns per row (1 to 10) and at most rows rows (0 means automatic, up to 10). The player clicks one card: it flips to show the reward already drawn, and the other cards flip to other rewards of the crate. The grid closes closeDelayTicks ticks later.

spacing, forwardDistance, verticalOffset and hitboxSize position the cards and their click area. followRotation is off by default so the cards stay put when the player turns, which keeps clicking stable. The card back is cardBackItem, or the crate's own cardBackItem when empty.