Dialog - Static Action Button (Section) — SkBee

Addon: SkBee · Category: Section · Since: 3.16.0

Syntax

add static action button

Description

Add a static action button to a dialog. See [**Static Action**](https://minecraft.wiki/w/Dialog#Static_action_types) on McWiki for more detailed info. **Entries**: - `label` = The name on your button, accepts a string or text component/mini message. - `tooltip` = The hover message, accepts a string or text component/mini message. - `width` = The width of the button. Value between 1 and 1024 — Defaults to 150. - `action` = A click event, also called a [**Static Action**](https://minecraft.wiki/w/Dialog#Static_action_types). This is what happens when the player clicks the button.

Examples

add static action button:
	label: mini message from "Creative Gamemode"
	tooltip: mini message from "Switch to creative gamemode"
	width: 200
	action: click event to run command "gamemode creative"

View source