#Question about setting an item in a specific inventory/hotbar slot

4 messages · Page 1 of 1 (latest)

dull cipher
#

Hello,

I have a question about a script. How can I place an item from a starter kit into a specific inventory and hotbar slot? I have already tried using SetItemInHand, SetHeldItem and SetItemSlot, but they don't seem to be the correct functions for this.

Could someone please enlighten me?

eternal mistBOT
#

Once your ticket has been resolved, please close it with </ticket close:1054771505520717835> command!

urban fiber
#

You can do event.player.inventory.setItem(slotIndex, slotItem)

#

If it's a block, then you can do
block.inventory.setStackInSlot(slotIndex, slotItem)