sooooooooo.... i have a mod..... when u right click the custom npc he takes away that itemstack one at a time
itemstack.stacksize --
when you get down to one and takes that last item away instead of getting rid of the itemstack it makes some sort of unlimited itemstack of that item..
just wondering how i can make it so the itemstack will disapear and not stay as a infinite block/item
Crude, but you could simply have an if statement for if the stack is 1 to simply set it to nothing. Not really sure what that is happening for you though.
itemstack.stacksize --
when you get down to one and takes that last item away instead of getting rid of the itemstack it makes some sort of unlimited itemstack of that item..
just wondering how i can make it so the itemstack will disapear and not stay as a infinite block/item
try'd
itemstack.stacksize -= null