Remove items from the player's inventory.
Block or item type ID to remove
Number of items to remove (default 1)
True if items were removed, false if not enough in inventory
Check whether the player has at least the specified count of an item.
Block or item type ID
Minimum count required (default 1)
True if the player has enough
Get the currently selected hotbar slot index.
Set the active hotbar slot.
Swap the contents of two inventory slots.
First slot index
Second slot index
Drop all items from a slot onto the ground.
Slot index to drop
Read the contents of an inventory slot.
Slot index to query
Object with type (item/block ID) and count
Directly set the contents of an inventory slot.
Slot index
Block or item type ID
Number of items
Add items to the player's inventory (first available slot).