Minecraft Inventory Slot Numbers

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

  1. Minecraft Inventory Slot Numbers
  2. Minecraft Inventory Slot Numbers
  3. Minecraft Player Inventory Slot Numbers

GUI Properties

Anyone know the ID of the Helmet slot in the normal Inventory? For all windows, the slot in the upper-left corner of the player's inventory is slot n where n is the number of unique slots, and slot number -999 is always used for clicking outside the window. The default inventory window, which is never explicitly opened by the server, has 10 unique slots. A brewing stand 's bottom slots are numbered 0 to 2 from left to right, its top slot is 3 and the fuel slot is 4. A furnace 's slots are numbered 0 for the input slot, 1 for the fuel slot, and 2 for the output slot. Other blocks which hold items but don't have inventory GUIs (flower pots and jukeboxes) can only be changed with / data. The inventory is filled with air even though there is nothing there, That's why an empty inventory counts as 36 because of the 36 air blocks in each slot. However, there is not an easier way than to just loop through each slot. Otherwise, if you wanted the plugin to detect a special craftable item, it is possible to do so with ItemStack. SpigotMC - High Performance Minecraft. Solved Get item slot in a inventory. Discussion in 'Spigot Plugin Development' started by MrIvanPlays, Jun 25, 2019.

There are 5 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.
  • Render background layer: Check this box if you want a backgound (Grey-White color). If not, uncheck the box.
  • Bind GUI to block: If you want to make a Tile Entity, you have to choose the block with the option for inventory activated.

Minecraft Inventory Slot Numbers

GUI Components

There are 6 components:

  • Buttons: The buttons are objects with events. This event works like the normal events.
  • Images: Just images from your PC.
  • 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.
  • Text Input: A section where the player can write any text and can be detected and used to execute events, example uses are like a custom command block or search function.
  • Input Slot: Description below
  • Output Slot: Description below

Slots and Inventory Components

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

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.

Minecraft Inventory Slot Numbers

Input slot

  • Belongs to: Select the inventory that you created earlier.
  • Slot ID: It is the ID of this specific slot. It's necessary to don't have the same number more than one time.
  • 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

Minecraft Player Inventory Slot Numbers

  • Belongs to: Select the inventory that you created earlier.
  • Slot ID: It is the ID of this specific slot. It's necessary to don't have the same number more than one time.
  • Custom Color: If you want to put a color in the slot, select the color. If not, skip clicking this button.
  • Add Event: It's just self-explanatory.

Putting items in Output Slots

Numbers
  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:

Numbers
  • Move Component: Moves the components you select.
  • Remove Component: Removes selected component.
  • Remove Inventory: Removes selected inventory.
  • Snap components on the grid: Toggles grid used to easily align components.