FurryEskimo Posted January 31, 2021 Share Posted January 31, 2021 This is a strange case. I made bird traps stackable, but this causes them to all act as one item when dropped on the ground. Does anyone know how to make the 'drop item' option drop one item, instead of the entire stack? This may not be possible, but I figured I'd ask. I need it to be stackable in my inventory, but not the world. Link to comment Share on other sites More sharing options...
CarlZalph Posted January 31, 2021 Share Posted January 31, 2021 (edited) inst.components.stackable.forcedropsingle = true From wortox_soul.lua. Though this might not help when someone tries to put one onto one on the ground, you may need to hook some actions yourself. See actions.lua. Edited January 31, 2021 by CarlZalph actions 1 Link to comment Share on other sites More sharing options...
FurryEskimo Posted January 31, 2021 Author Share Posted January 31, 2021 @CarlZalph Once again, you prove to be the single most talented and helpful coder I've ever met. That single line of code did Exactly what I wanted! I can now keep a stack of bird traps in my inventory, and place them one at a time. 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