GUI Editor

Works with

GUI is an in-game screen with which has interactive objects. It consists of text fields, images, buttons, slots etc.

GUI Properties

There are 3 properties:

  • GUI Width: The width of your GUI (in pixels)
  • GUI Height: The height of your GUI (in pixels)
  • GUI Type: 2 options: With Slots or WIthout Slots. If you select With Slots, you will be able to create slots (Input and output slots) and inventories.

GUI Components

There are 4 components:

  • Buttons: The buttons are objects with events. This event works like the normal events.
  • Images: Just images from your PC.
  • Text: Just some text. You can put some color in the text.
  • Text Label: Plain text that supports MCreator's default tags for some variables (both in-game and global MCreator's variables). The text can also be colored.

Slots and Inventory Components

To create a slot (input or output) you must first enable inventory, with the Inventory Option:

Inventory Options

Click Inventory button under Inventory Options in order to add an inventory.

  • Inventory Name: Just put a name for the inventory.
  • The number of Slots: Just put the desired number of slots you want to have in this inventory.
  • Drop upon closing: Check the box if you want to drop all items in the slots when you close the GUI. If not, just un-check it.

When you have been created an inventory, you can create slots:

Slots Options

It has 2 buttons: Input and Output Slot:

  • Input Slot: Choose it if you want to put items in there.
  • Output Slot: Choose it if you want to put items with events, not by hand.

Input slot

  • Belongs to: Select the inventory that you created earlier.
  • Custom Color: If you want to put a color in the slot, select the color. If not, skip clicking this button.
  • Limit stack input: If you want to limit the type of item that the slot accepts (Like a redstone dust or a torch), select the desired item. If not, just ignore this option.
  • Add Event: It's just self-explanatory.

Finally, just move the slot where you want it to be

Output Slot

  • Belongs to: Select the inventory that you created earlier.
  • Custom Color: If you want to put a color in the slot, select the color. If not, skip clicking this button.

Putting items in Output Slots

  1. Add an Event (In blocks, items, guns, slots, etc.)
  2. Select: Place items in GUI slot
  3. Write the ID of your Output slot (visible on the GUI, it's a number like 02)
  4. Write the name of the Inventory of your Output slot
  5. Select the item that you want to put in and select the amount.

Edit Options

These buttons will help you make a GUI:

  • Move Component: Moves the components you select (Not slots or Inventories).
  • Remove Component: Removes selected component.
  • Move Slot: Moves selected slot.
  • Remove Slot: Removes selected slot.
  • Remove Inventory: Removes selected inventory.
  • Show grid: Toggles grid used to easily align components.