Update Text Component defination

This commit is contained in:
Tnze
2024-04-27 22:09:56 +08:00
parent fee324e25a
commit 79c8b35389
6 changed files with 149 additions and 90 deletions

View File

@ -4,8 +4,8 @@ import "strconv"
// ClickEvent defines an event that occurs when this component is clicked.
type ClickEvent struct {
Action string `json:"action"`
Value string `json:"value"`
Action string `json:"action" nbt:"action"`
Value string `json:"value" nbt:"value"`
}
// OpenURL create a ClickEvent opens the given URL in the default web browser.