Page 1 of 1

Modifying ammo count

Posted: Wed Dec 31, 2014 10:49 am
by Degraine
Is there a method to access the remaining count of ammo in an itemstack, and modify it?

Re: Modifying ammo count

Posted: Wed Dec 31, 2014 4:01 pm
by KexĂ­k
You can get into inventory, and there add/remove items.

Re: Modifying ammo count

Posted: Wed Dec 31, 2014 10:41 pm
by Degraine
That's not quite what I meant. You can stack up ammo items, yes, but the stack also keeps track of how many rounds are left before it should remove one of the ammo items. It's that count that I want to access.

Re: Modifying ammo count

Posted: Wed Dec 31, 2014 11:58 pm
by Rahjital
Commands for that were added in 0.11, so it's a rather new feature and most likely undocumented yet. You'll most likely have to ask the devs.

Re: Modifying ammo count

Posted: Thu Jan 01, 2015 1:45 am
by Degraine
Okay. Well, I'll go pick their brains in IRC once I'm back home.