Jump to content

Change how many items are dropped?

Recommended Posts

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

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 by CarlZalph
  • Health 1
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

  • Create New...