#how do i subtract an item inside a container instead of add??
1 messages · Page 1 of 1 (latest)
where? how?
In your item stack where you're creating your clone of your item and if not then try doing . Amount -1
I don't know if any of those are going to work though I'm just thinking of possible ways to do it
so in the brackets, itemInFirstSlot.typeId, 1, just change that 1 to -1?
attempting it, seeing what happens
no that broke everything, thats not the right spot
chestInventory.addItem(clone - 1) also broke everything
Then I'm not sure sorry I thought that it would be like that but I guess not but I'm sure if you keep your post open somebody who knows will help
im gonna have to scroll through showcase and maybe look at everyone elses problems to see if i can find a solution ðŸ˜