Command Chest

v4MC Bedrock

Description

Create a new Minecraft GUI-driven item or interface system. Interface: it shows a selection menu that looks like a chest where it has a button on the side that looks like a crafting menu tab that only people with the OP tag can open the edit menu not the chest. Interaction: they can click any item put in it to activate a command but people with the OP tag can edit the items and change the command.

Mod Wiki

Command Chest

Quickstart

  1. Craft a Command Chest at a crafting table: . Or, with permission to use commands, get one with /give @s com_command_chest_tnzwfikz:command_chest.
  2. Hold the Command Chest and use it to open its menu. Try a button such as Bread, Torch, or Daytime; selecting it runs that button’s command as you.
  3. To customize the menu, craft an Edit Menu: . An administrator must give you the OP tag—for example, /tag <player> add OP—before you can use it. Hold and use the Edit Menu, then choose Edit Items or Change Menu Look.

Overview

Command Chest is a reusable item that opens a chest-like menu of command buttons. Players use the buttons; players with the OP tag can also customize the buttons and menu appearance. The menu is an interface, not a storage chest: it does not hold items.

What It Adds

  • Command Chest: Opens the command-button menu when used. Anyone can use it.
  • Edit Menu: Opens customization options when used by a player with the OP tag.

The Command Chest starts with these buttons:

ButtonDefault action
BreadGives you 4 bread
TorchGives you 16 torches
Night VisionGives you night vision for 60 seconds
DaytimeSets the time to day
Cooked BeefGives you 4 cooked beef
Clear SkyClears the weather
IronGives you 8 iron ingots
SpeedGives you speed for 60 seconds
ArrowsGives you 16 arrows

How To Use

Hold the Command Chest and use it to open the menu, then select a button to run its command. Commands run as the player who selected the button, so @s targets that player.

Only players with the OP tag can open the editing options. Using the Edit Menu, choose:

  • Change Menu Look to switch between Original Command Chest and Server Chest.
  • Edit Items to choose a slot and edit its label, command, and icon.

The Original Command Chest view shows the first nine slots. Server Chest shows all 54 slots, including empty ones. Use that view to access slots beyond the first nine.

Crafting And Obtaining

Craft either item at a crafting table using its recipe:

  • Command Chest:
  • Edit Menu:

An administrator can grant the OP tag with /tag <player> add OP. The tag is required to edit; it is not required to open and use the Command Chest.

Abilities And Mechanics

When editing a slot, enter a label, a one-line command, and an optional icon texture location such as textures/items/torch. Labels can be 1–14 characters; commands can be up to 256 characters. A leading / is optional.

If you hold an item in your selected hotbar slot while opening the slot editor, its name and icon can be used as suggestions. Review the command and other fields before saving. Changes apply to the shared menu in the world.

Progression And Strategy

Start by trying the nine preset buttons, then have an OP-tagged player customize them for your world. To use more than nine buttons, select Server Chest and fill the additional slots; empty slots have no command to run.

How to install

Download the mod and follow the step-by-step installation guide.

This mod is licensed under the CreativeMode Mods License.