Compatibility
Minecraft: Java Edition
Platforms
Links
Creators
Details
Changelog
commands
GUI
A new element, a 3d Gui, it's dimensions, size and color can be defined
require a ressource pack
function buttons:gui/open
- fields
-
dist : {Double} Distance beetween the player head and the summoned gui
-
dim : {Array of 2 int} dimensions of the gui
-
color : {RGB float array} color of the gui background
-
text_box
- text: {Json text} label of the gui
- size: {float} size scalar of the label
- dx: {float} offset of the label
-
Tags : {string array} custom tags added
-
ex: /function buttons:gui/open {dist:1,dim:[9,1],color:[1,1,1],size:0.2,text_box:{text:{text:"One line",color:"black"},dx:-0.7},Tags:[]}

function buttons:gui/update
executed by a GUI, that update himself
executed by a player, that update one of his open Gui
- fields
- Items : {Array of Minecraft Item Json} Items in the gui
- id : {minecraft item id}
- count: {int} count of the item
- Slot/slot: {byte/int} slot of the item
- components: item components
- command: {string} command executed when the owner of the gui click on this item by and at the gui
- color: {RGB float array} color of the gui
- Items : {Array of Minecraft Item Json} Items in the gui
ex: /function buttons:gui/update {Items:[{id:"diamond",slot:4,components:{"minecraft:item_name":"I am Rich!"}, command: "say I am the Gui" }],color:[0.5,0.8,1]}

function buttons:gui/close
executed by a GUI, that close himself
executed by a player, that close one of his open Gui
User Tag
When a player use click to action or gui, he have temporary the tag button.user
Bugs Fixed
If multiple UI elements are superposed, the interaction will be on the first element in crosshair (considere not the coord of each elements but the size and the plane)
Files
Metadata
Release channel
ReleaseVersion number
1.1.0Loaders
Game versions
1.21.5Downloads
50Publication date
April 24, 2025 at 8:14 AMPublisher

RacoonJohn
Member


