Dialog - Dynamic Action Button (Section) — SkBee
Addon: SkBee · Category: Section · Since: 3.16.0
Syntax
add dynamic action buttonDescription
Add a dynamic action button to a dialog. See [**Custom Dynmaic Action**](https://minecraft.wiki/w/Dialog#dynamic/custom) on McWiki for more specific info. This action will fire the 'Player Custom Click' event along with the id and additions. **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. - `id` = The id of the action. - `additions` = An additional NBT compound to go along with your custom dynamic action.
Examples
add dynamic action button:
label: "Spawn"
tooltip: "Teleport yoursel to spawn!"
id: "custom:teleport_to_spawn"
additions: nbt from "{some_tag:""some extra info""}"