-
Notifications
You must be signed in to change notification settings - Fork 0
Components
zNotChill edited this page Sep 13, 2025
·
2 revisions
Blossom makes it simpler and cleaner to use Adventure components.
You can use space() inside a component builder to simply add a blank space.
tooltip() is a normal text builder.
Inside a text() block, you have access to the properties:
- color
- bold
- italic
- underline
- strikethrough
- obfuscate
onClick blocks provide you with most click events:
- runCommand(String)
- suggestCommand(String)
- openUrl(String)
- changePage(Int)
- copyToClipboard(String)
- showDialog(DialogLike)
Text blocks cannot be chained within one another.
component {
text("You got a friend request!")
space() // literally just adds a blank space
text("[Accept]") {
color = Color(255, 255, 85)
onClick {
runCommand("friends accept zNotChill")
}
tooltip("Click to accept") {
underline = true
}
}
space()
text("[Deny]") {
color = Color(255, 85, 85)
onClick {
runCommand("friends deny zNotChill")
}
tooltip("Click to deny") {
underline = true
}
}
}