Jump to content

Changing stack sizes


Recommended Posts

Hello hello , NextGenFury here.

I considered making myself a stacksize mod, due to i was unable to find a mod as i wanted.

After a bit research i found out :
TUNING.STACK_SIZE_SMALLITEM = 60
TUNING.STACK_SIZE_MEDITEM = 60
TUNING.STACK_SIZE_LARGEITEM = 60
So with this lua file, i can make the mod work , but the tricky part ,

So let's say that  i want to make the max Berry Bush stack 20 specificly , can i or how i do it?
When i was testing with boards , i tried adding   
TUNING.STACK_SIZE_BOARDS=40
TUNING.STACK_SIZE_PAPYRUS=40
Which didn't seem to work.

 

Thanks for reading,
Fury.

Link to comment
Share on other sites

local function MoreStack(inst)
	if not TheWorld.ismastersim then
    	return inst
    end
	if inst.components.stackable then
		inst.components.stackable.maxsize = 20
	end
end

AddPrefabPostInit("berrybush", MoreStack)
AddPrefabPostInit("berrybush2", MoreStack)
AddPrefabPostInit("berrybush_juicy", MoreStack)

 

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
  • Create New...