Here are the inventories in Minecraft 1.15.2 along with their corresponding slot numbers:
Some notes about these slots:
- clicking on blank space in an inventory with an item selected is slot 0 (sometimes triggers without an item selected)
- clicking outside of the inventory (eg. dropping items) is slot -998
Anvil Inventory:
Barrel Inventory:
Beacon Inventory:
Blast Furnace Inventory:
Cartography Table Inventory:
Crafting Table Inventory:
Dispenser Inventory:
Dropper Inventory:
Enchanting Table Inventory:
Ender Chest Inventory:
Furnace Inventory:
Grindstone Inventory:
Hopper Inventory:
Large Chest Inventory:
Loom Inventory:
Normal Inventory:
- works for both survival/creative inventories
Shulker Inventory:
Single Chest Inventory:
Smoker Inventory:
Stonecutter Inventory:
Survival Crafting Grid/Inventory:
Some notes about these slots:
- clicking on blank space in an inventory with an item selected is slot 0 (sometimes triggers without an item selected)
- clicking outside of the inventory (eg. dropping items) is slot -998
Anvil Inventory:

Barrel Inventory:

Beacon Inventory:

Blast Furnace Inventory:

Cartography Table Inventory:

Crafting Table Inventory:

Dispenser Inventory:

Dropper Inventory:

Enchanting Table Inventory:

Ender Chest Inventory:

Furnace Inventory:

Grindstone Inventory:

Hopper Inventory:

Large Chest Inventory:

Loom Inventory:

Normal Inventory:
- works for both survival/creative inventories

Shulker Inventory:

Single Chest Inventory:

Smoker Inventory:

Stonecutter Inventory:

Survival Crafting Grid/Inventory:
