Scrap Mechanic

Scrap Mechanic

Not enough ratings
Expanded Inventories (1,010 Slots)
   
Award
Favorite
Favorited
Unfavorite
File Size
Posted
345.328 KB
25 Jun, 2022 @ 10:53pm
1 Change Note ( view )

Subscribe to download
Expanded Inventories (1,010 Slots)

In 1 collection by TheGoldNinja101
Custom Inventory Management
5 items
Description
Is your inventory too short? This is the opposite version! In this mod, your inventory is too long.

I may know what you're thinking: Why 1,010 Slots? Trust me, The extra 10 is for the hotbar.

Edit at Nov 1, 2023: If anyone wants a blocks and parts variant, I can't make a mod other than custom games that bumps the inventory size up to 1010. The reason why I can't do this is the fact I tried before and there are so many failed attempts.

Edit at Jan 12, 2024: I still cannot bump up the inventory size in Blocks and Parts, but I did find an alternative way to expand your inventory.

Edit at January 21, 2024: I have a B+P mod uploaded as an alternative way to expand your inventory, and that mod is the Pocket Dimension Bag
27 Comments
TheGoldNinja101  [author] 9 May @ 9:30am 
@hollOwsquire You haven't been reading the comments. You might be a new modder in Scrap Mechanic. Feel free to use the Official Scrap Mechanic Lua API References [scrapmechanic.com].

If you've been reading the comments here and that you're new to Scrap Mechanic Lua scripting, you might be confused on what "game.defaultInventorySize" is. It's the only thing that can be added to Game class, which you can set an integer of up to 1024 slots in all survival based inventories.

GameExample = class()
GameExample.defaultInventorySize = 1010
holl0wsquire 9 May @ 3:00am 
did some more testing and then i stopped and reverted everything back to normal and then i had just laoded up a world with your mod and it didnt work for me at all, maybe i meseed up somewhere or maybe the mod is just outdated now, not sure but if you find any more info yourself, please do keep my posted on it, much appreciated if you do
holl0wsquire 9 May @ 2:23am 
im just trying to customize it myself because i just wanna add about 20 slots and im trying to figure out where you added that code to so i can modify it myself for my survival world, please do respond because i am curious and ive been stressing myself out trying to find it and figure it out, i appreciate it very much g
Lab V3 27 Mar, 2024 @ 6:30am 
Ok thanks.
TheGoldNinja101  [author] 26 Mar, 2024 @ 3:56pm 
If you mean creating B+P variant, then no with this code. The Pocket Dimension Bag may help with that. This code only works in Custom Games (even those that you've downloaded). You're welcome to try. If anyone managed to create Extended Inventories (quite literally compared to this Custom Game), then I'll put that to that collection.
Lab V3 26 Mar, 2024 @ 9:45am 
@TheGoldNinja101
Is it possible to modyfy the Survival Game files with:
Game.defaultInventorySize = 1010 ?
TheGoldNinja101  [author] 18 Jan, 2024 @ 7:22pm 
The Pocket Dimension Bag is something that I came up with, an alternate way to expand a player's inventory since I can't expand a player's actual inventory in Blocks and Parts.
TheGoldNinja101  [author] 12 Jan, 2024 @ 11:14am 
Have you seen comments from the last page?
Eric/(PhatBallz) 12 Jan, 2024 @ 3:02am 
how do i find the file for the inventory size. i dont wanna change my other files
Funtime Gabe 2 Jan, 2024 @ 3:51pm 
well maybe you can find someone to help code it