A command that could open and close the UI of a specified entity or block entity to specified players.
Examples:
/ui @p open block 123 123 123 //opens the UI of the block located at the coordinates 123 123 123 to the nearest player
/ui @p open entity @e[limit=1,sort=nearest,type=minecraft:chest_minecart] //opens the UI of the nearest chest minecart to the nearest player
/ui @p close block 321 321 321 //If the nearest player currently has the UI of the block 321 321 321 opened, it will be closed
/ui @p close * //Closes the UI that the nearest player has currently opened
/ui @p close block|entity * //Closes the current open UI of the nearest player if it is a block|entity
/ui @p close block[type=minecraft:chest] //Closes the players current open UI if it is the one of a chest
Please sign in to leave a comment.
0 Comments