PlayerNeeds devcommands
inventorysize command
Syntax
| rows | Number of inventory rows, clamped to 0 through 9; leave it off to print the current count |
What it does
Sets how many rows your inventory has, up to 9. Run it with no number and it prints the current row count instead. Shrinking the inventory drops whatever no longer fits. Needs devcommands and runs host-side.
Cheat commands need the console enabled with the -console launch option, then devcommands typed once. They work in singleplayer or when you host, not on dedicated servers.
Examples
Prints the current number of rows.
Gives the character six rows of inventory space.
Related commands