inventory
player.inventory functions
player.inventory.slot
Argument
Type
Description
slot_id
Number
ID of the slot to check
Returns the name of the item in the slot
player.inventory.item_information
Argument
Type
Description
slot_id
Number
ID of the slot to check
Returns item name, display name, item damage, efficiency and a table containing all enchants
player.inventory.swap
Argument
Type
Description
slot_id
Number
ID of the slot to swap
hotbar_slot
Number
Hotbar slot number where the item will be set at
Moves an item to your hotbar
player.inventory.click
Argument
Type
Description
slot_id
Number
ID of the slot to swap
mouse_click
Number
Mouse click
mode
Number
1: to hold click 0: to normal click
4: to drop item
Clicks an item in your inventory or chest
player.inventory.drop
Argument
Type
Description
slot_id
Number
ID of the slot to drop
Drops an item in your inventory
player.inventory.get_item_stack
Argument
Type
Description
slot_id
Number
ID of the slot
Returns the amount of items in the desired slot
Last updated
Was this helpful?