Skip to main content

stamp

Displays a visual stamp effect on the screen.

Parameters

ParameterTypeDescription
assetstringAsset ID of the stamp image (e.g., "my-mod:heart")
optionsStampOptionsOptional appearance configuration

Returns

Promise<void>

Example

// Minimal -- display at default position and size
await effects.stamp("my-mod:thumbs-up");

// Full options
await effects.stamp("my-mod:heart", {
x: 100,
y: 200,
width: 80,
height: 80,
alpha: 0.9,
duration: 1.5,
});