/Command-GUI-Buttons

为了能继续使用接手罢了

Primary LanguageJavaGNU General Public License v3.0GPL-3.0

Command GUI Buttons

Forked from https://github.com/joseph-garcia/command-gui-buttons

Command GUI Buttons is a fabric mod for Minecraft that allows users to create custom command buttons on their clients. Users can bring up this menu in-game with the G key, type in the Name and Command they want to create a button for, and press the + to create. It will then show up as a button on their screen to use whenever they want, as the button will automatically type and execute the command they initially entered.

Cmd GUI Demo

Create buttons for preset chat messages, commands like '/warp home', or anything else that goes in the chat box.

How to Use:

  • Bring up the menu in-game with the G key
  • Type in the Name and Command you want to save into a button
  • Press the + button

Up to 20 buttons are currently supported! More are planned.

How It Works

The list of commands are serialized into a JSON format and stored locally on the users’ systems. The mod writes any new commands into the JSON as new buttons are created, and loads the JSON at the start of the game. A local list instance exists for reading and loading the buttons each time, so that file reading is kept to a minimum.