According to defines.lua the quickbar index is 2, main inventory is 1.
In sandbox mode these values appear to be switched:
[0.12.35] Inventory index wrong in sandbox
Re: [0.12.35] Inventory index wrong in sandbox
defines.inventory.player_quickbar refers to the character player quickbar. The god controller has a different index which isn't in the 0.12 defines.
In 0.13 there are:
defines.inventory.player_quickbar
and
defines.inventory.god_quickbar
In 0.13 there are:
defines.inventory.player_quickbar
and
defines.inventory.god_quickbar
If you want to get ahold of me I'm almost always on Discord.