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:
![yWsM7Tg.png](/proxy.php?image=https%3A%2F%2Fi.imgur.com%2FyWsM7Tg.png&hash=5bc1b16251298b8312518c84686fe6ca)
Barrel Inventory:
![tyJsdSY.png](/proxy.php?image=https%3A%2F%2Fi.imgur.com%2FtyJsdSY.png&hash=ce94a3c567587517359719dee9e350cb)
Beacon Inventory:
![C9Gk8Lq.png](/proxy.php?image=https%3A%2F%2Fi.imgur.com%2FC9Gk8Lq.png&hash=4cd68653670e1f5b854afa41353f3c26)
Blast Furnace Inventory:
![9qnCTYE.png](/proxy.php?image=https%3A%2F%2Fi.imgur.com%2F9qnCTYE.png&hash=57e8e8250b886ed8f3ed79b094cd3421)
Cartography Table Inventory:
![TQ7Pnow.png](/proxy.php?image=https%3A%2F%2Fi.imgur.com%2FTQ7Pnow.png&hash=28b0be3fabf0f3574abc0d52a00f9e1c)
Crafting Table Inventory:
![6n50D3C.png](/proxy.php?image=https%3A%2F%2Fi.imgur.com%2F6n50D3C.png&hash=ca5ff1a19623f483ed2b025fa78dc4e0)
Dispenser Inventory:
![eyrrBdh.png](/proxy.php?image=https%3A%2F%2Fi.imgur.com%2FeyrrBdh.png&hash=3f384807cbcb43661dce0ba2f4f172d2)
Dropper Inventory:
![t43MBpk.png](/proxy.php?image=https%3A%2F%2Fi.imgur.com%2Ft43MBpk.png&hash=3724b3ab35d71fe37fab99fba3686f15)
Enchanting Table Inventory:
![JifNjKK.png](/proxy.php?image=https%3A%2F%2Fi.imgur.com%2FJifNjKK.png&hash=c110c9776b49fc4fcaf60b229afd027a)
Ender Chest Inventory:
![JK2cRui.png](/proxy.php?image=https%3A%2F%2Fi.imgur.com%2FJK2cRui.png&hash=87ac48d82086e9e860e680e2515dc30d)
Furnace Inventory:
![L7grjov.png](/proxy.php?image=https%3A%2F%2Fi.imgur.com%2FL7grjov.png&hash=375dee639e3e2ffe010c3b2ee1b70baf)
Grindstone Inventory:
![F1AgsPx.png](/proxy.php?image=https%3A%2F%2Fi.imgur.com%2FF1AgsPx.png&hash=caa099a96cbba5a7e06859fa2b92ba62)
Hopper Inventory:
![dp4KexS.png](/proxy.php?image=https%3A%2F%2Fi.imgur.com%2Fdp4KexS.png&hash=0dada0896848e3a0f102c254e26548ec)
Large Chest Inventory:
![QuJQMfT.png](/proxy.php?image=https%3A%2F%2Fi.imgur.com%2FQuJQMfT.png&hash=105c1cafce7d1988d785eed6990bf771)
Loom Inventory:
![qj7r2sa.png](/proxy.php?image=https%3A%2F%2Fi.imgur.com%2Fqj7r2sa.png&hash=6c4c3e23fc7d80b3c659a8b77e0722a0)
Normal Inventory:
- works for both survival/creative inventories
![8JkZqh3.png](/proxy.php?image=https%3A%2F%2Fi.imgur.com%2F8JkZqh3.png&hash=7e6d2a8c537271655832833ecb801010)
Shulker Inventory:
![fKTM57l.png](/proxy.php?image=https%3A%2F%2Fi.imgur.com%2FfKTM57l.png&hash=293ddfe7b7df6c25d51c0a45a5ec0bfd)
Single Chest Inventory:
![TPRXJHb.png](/proxy.php?image=https%3A%2F%2Fi.imgur.com%2FTPRXJHb.png&hash=de3c198553f65b9724a6a5e4c20dd767)
Smoker Inventory:
![X46jUnC.png](/proxy.php?image=https%3A%2F%2Fi.imgur.com%2FX46jUnC.png&hash=74d0f2029c4554381f2c6ce0010ff6c3)
Stonecutter Inventory:
![TQNNDlx.png](/proxy.php?image=https%3A%2F%2Fi.imgur.com%2FTQNNDlx.png&hash=eb0247466fbdec4d5d27eee39f6ba6e2)
Survival Crafting Grid/Inventory:
![JhcKS8p.png](/proxy.php?image=https%3A%2F%2Fi.imgur.com%2FJhcKS8p.png&hash=ff20b0385c8894bad0c6f2c6a82d6a0c)