TextComponent - Click Event Of (Expression) — SkBee

Addon: SkBee · Category: Expression · Since: 1.5.0

Syntax

[the] click event of %textcomps%

Description

Set the click event of a text component.

Examples

set {_t} to text component from "Check out this cool thing at SPAWN!"
set hover event of {_t} to a new hover event showing "Clicky clicky to go to spawn!"
set click event of {_t} to a new click event to run command "/spawn"
send component {_t} to player

View source