NextgenFury Posted January 13, 2017 Share Posted January 13, 2017 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 More sharing options...
NextgenFury Posted January 15, 2017 Author Share Posted January 15, 2017 So i checked files a bit and noticed files determine stack sizes by item type, such as smallitem. Would it be safe / bug free if i create a new item type for those items? And would it break the game if the mod gets removed? Link to comment Share on other sites More sharing options...
zUsername Posted January 16, 2017 Share Posted January 16, 2017 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 More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now